Update Jenkinsfile

This commit is contained in:
Édouard Gagné 2020-04-13 20:34:38 -04:00 committed by GitHub
parent c5ff2c8cd6
commit f42a949e20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
Jenkinsfile vendored
View file

@ -2,9 +2,27 @@ pipeline {
agent any
stages {
stage('Build') {
steps {
sh './mvnw clean'
}
}
stage('Test') {
steps {
sh './mvnw test'
}
}
stage('Package') {
steps {
sh './mvnw package'
}
}
stage('Deploy') {
when {
branch "master"
}
steps {
sh './mvnw deploy'
}
}
}
}