add jenkins file

This commit is contained in:
TechPrimers
2017-06-18 01:39:40 +05:30
parent 9aa42af627
commit 8ccb23d357

11
Jenkinsfile vendored
View File

@@ -4,18 +4,27 @@ pipeline {
stages {
stage('Compile') {
steps {
withMaven (
maven: 'maven_3_5_0') {
sh 'mvn clean compile'
}
}
}
stage('Test'){
steps {
sh 'mvn install -Dmaven.test.failure.ignore=true'
withMaven (
maven: 'maven_3_5_0') {
sh 'mvn install -Dmaven.test.failure.ignore=true'
}
junit 'reports/**/*.xml'
}
}
stage('Deploy') {
steps {
withMaven (
maven: 'maven_3_5_0') {
sh 'mvn deploy'
}
}
}
}