diff --git a/Jenkinsfile b/Jenkinsfile index 43b165c..248b92a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,27 +5,27 @@ stages { stage('Build') { steps { - echo 'Building..' - sh './build.sh' - archiveArtifacts artifacts: 'build/hello*', fingerprint: true + echo 'Building..' + sh './build.sh' + archiveArtifacts artifacts: 'build/hello*', fingerprint: true } } stage('Test') { steps { - echo 'Testing..' - sh 'make test || true' - junit 'build/*.xml' + echo 'Testing..' + sh 'make test || true' + junit 'build/*.xml' } } stage('Deploy') { - when { + when { expression { currentBuild.result == null || currentBuild.result == 'SUCCESS' } } steps { - echo 'Deploying....' - sh 'make publish' + echo 'Deploying....' + sh 'make publish' } } }