Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Change condition for success.
Browse files Browse the repository at this point in the history
It appears currentBuild.result can be null if the build is passing.
Ref. https://jenkins.io/doc/book/pipeline/jenkinsfile/#deploy
  • Loading branch information
francoilol committed Nov 3, 2017
1 parent 0a7345d commit 1154574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ node('lisk-nano') {
if (env.CHANGE_BRANCH != null) {
pr_branch = " (${env.CHANGE_BRANCH})"
}
if (currentBuild.result == 'SUCCESS') {
if (currentBuild.result == null || currentBuild.result == 'SUCCESS') {
/* delete all files on success */
deleteDir()
/* notify of success if previous build failed */
Expand Down

0 comments on commit 1154574

Please sign in to comment.