Last active
July 21, 2017 10:00
-
-
Save daipresents/e6e48615ca45c20b776fc42a5d559ed4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stage('build something'){ | |
def build_info | |
try { | |
build_info = build job: build_something | |
currentBuild.result = "SUCCESS" | |
} catch { | |
println 'Job was failed.' | |
currentBuild.result = "FAILURE" | |
} finally { | |
println "Build number: ${build_info.getNumber()}" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stage('build something'){ | |
def build_info = build job: build_something, propagate: false | |
println "Build number: ${job_info.getNumber()}" | |
currentBuild.result = job_info.getResult() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment