Files
jenkins-multibranch-project/Jenkinsfile
2017-06-18 02:05:31 +05:30

31 lines
743 B
Groovy

pipeline {
agent any
stages {
stage('Compile') {
steps {
withMaven (
maven: 'maven_3_5_0') {
sh 'mvn clean compile'
}
}
}
stage('Test'){
steps {
withMaven (
maven: 'maven_3_5_0') {
sh 'mvn install -Dmaven.test.failure.ignore=true'
}
junit 'target/surefire-reports/*.xml'
}
}
stage('Deploy') {
steps {
withMaven (
maven: 'maven_3_5_0') {
sh 'mvn deploy'
}
}
}
}
}