deploy stage modif

This commit is contained in:
Daphne Augier 2020-04-11 17:07:01 +02:00 committed by GitHub
parent 4548820897
commit e852f854c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

15
Jenkinsfile vendored
View file

@ -18,12 +18,15 @@ pipeline {
sh './mvnw package' sh './mvnw package'
} }
} }
stage('Deploy') {
if( env.BRANCH_NAME == 'master' ) { when {
stage('Deploy') { expression {
steps { currentBuild.result == null || currentBuild.result == 'SUCCESS'
sh './mvnw deploy' }
} }
steps {
echo "DEPLOY!"
/* sh './mvnw deploy' */
} }
} }
} }