Files
jenkins-multibranch-project/Jenkinsfile
2017-06-18 01:44:52 +05:30

31 lines
739 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 'surefire-reports/**/*.xml'
}
}
stage('Deploy') {
steps {
withMaven (
maven: 'maven_3_5_0') {
sh 'mvn deploy'
}
}
}
}
}