Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions JENKINS-FILE
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
pipeline{
agent any
stages{
stage("coode checkout from github"){
steps{
git url :"https://github.com/deepak8971/DevOpsClassCodes.git"
}
}
stage("code compile"){
steps{
sh 'mvn compile'
}
}
stage("code test"){
steps{
sh 'mvn test'
}
}
stage("code qa by pmd"){
steps{
sh 'mvn pmd:pmd'
recordIssues(tools: [pmdParser()])
}
}
stage("code qa by checkstyle"){
steps{
sh 'mvn checkstyle:checkstyle'
recordIssues(tools: [checkStyle()])
}
}
stage("code package"){
steps{
sh 'mvn package'
}
}

}
}
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
pipeline{
agent any
tools{
maven "test-maven"
//tools{
// maven "test-maven"
}
stages{
stage('Checkout'){

steps{
echo 'cloning..'
git 'https://github.com/akshu20791/DevOpsClassCodes.git'
git 'https://github.com/deepak8971/DevOpsClassCodes.git'
}
}
stage('Compile'){
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ a fast read for learning how to get started -ddd not an example on =sasdasdasdas
akshat second edi ssskk mmm
Running the example from the command hello test
-------------------hi akshat hello how are you vvvvjj
```jjjj
```jjjj hi
$ mvn jetty:runheee
```

Expand Down
1 change: 1 addition & 0 deletions test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is to test webhook trigger