From e852f854c638d2d05b411d2c34e1b105c5b6213e Mon Sep 17 00:00:00 2001 From: Daphne Augier <35980232+daphneaugier@users.noreply.github.com> Date: Sat, 11 Apr 2020 17:07:01 +0200 Subject: [PATCH] deploy stage modif --- Jenkinsfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ee2063341..cb030b09a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,12 +18,15 @@ pipeline { sh './mvnw package' } } - - if( env.BRANCH_NAME == 'master' ) { - stage('Deploy') { - steps { - sh './mvnw deploy' - } + stage('Deploy') { + when { + expression { + currentBuild.result == null || currentBuild.result == 'SUCCESS' + } + } + steps { + echo "DEPLOY!" +/* sh './mvnw deploy' */ } } }