Skip to content

Commit

Permalink
add jenkins file
Browse files Browse the repository at this point in the history
  • Loading branch information
TechPrimers committed Jun 17, 2017
1 parent b29df58 commit 03df67a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pipeline {
agent any

stages {
stage ('Compile Stage') {

steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn clean compile'
}
}
}

stage ('Testing Stage') {

steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn test'
}
}
}


stage ('Deployment Stage') {
steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn deploy'
}
}
}
}
}

0 comments on commit 03df67a

Please sign in to comment.