Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. stage('build something'){
  2. def build_info
  3.  
  4. try {
  5. build_info = build job: build_something
  6. currentBuild.result = "SUCCESS"
  7.  
  8. } catch {
  9. println 'Job was failed.'
  10. currentBuild.result = "FAILURE"
  11.  
  12. } finally {
  13. println "Build number: ${build_info.getNumber()}"
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement