Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()}"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement