add jenkins file

This commit is contained in:
TechPrimers
2017-06-18 02:18:34 +05:30
parent b29df58464
commit 03df67aeee

32
Jenkinsfile vendored Normal file
View File

@@ -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'
}
}
}
}
}