Re: How to get build results from a build job in a pipeline

2017-05-17 Thread Jesse Kinross-Smith
So I was trying too hard - the try/catch isnt' needed at all. All I needed was: BuildResults = build job: 'testJob', propagate: false; notify_email(BuildResults); On Wednesday, May 17, 2017 at 10:45:27 AM UTC+8, Jesse Kinross-Smith wrote: > > How can I do this right - I want the result

Re: How to get build results from a build job in a pipeline

2017-05-17 Thread Jesse Kinross-Smith
ns) > [Pipeline] echo > Build results: [testJob2:SUCCESS, testJob1:FAILURE] > [Pipeline] echo > A job failed > [Pipeline] script > [Pipeline] { > [Pipeline] echo > TEST SIMULATE notify: [testJob2:SUCCESS, testJob1:FAILURE] > [Pipeline] } > [Pipeline] // script > [Pipel

How to get build results from a build job in a pipeline

2017-05-16 Thread Jesse Kinross-Smith
How can I do this right - I want the results from a job I run (I need to run a dozen of these in succession and will email devs if one of them fails) try{ BuildResults = build job: 'testJob'; currentBuild.result='SUCCESS'; } > catch(e){ currentBuild.result = 'FAILURE'; } finally { >