t; [Pipeline] }
> [Pipeline] // stage
> [Pipeline] stage
> [Pipeline] { (Declarative: Post Actions)
> [Pipeline] echo
> Build results: [testJob2:SUCCESS, testJob1:FAILURE]
> [Pipeline] echo
> A job failed
> [Pipeline] script
> [Pipeline] {
> [Pipeline] echo
> TEST SIMU
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
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 {
> notify_em