diff --git a/Jenkinsfile b/Jenkinsfile index c3c5416..43b165c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,16 +18,14 @@ } } stage('Deploy') { + when { + expression { + currentBuild.result == null || currentBuild.result == 'SUCCESS' + } + } steps { - echo 'Deploying....' - when { - expression { - currentBuild.result == null || currentBuild.result == 'SUCCESS' - } - } - steps { - sh 'make publish' - } + echo 'Deploying....' + sh 'make publish' } } }