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' */ } } }