Re: [Build Flow Plugin] how to execute different rescue when job failed in guard

2014-03-13 Thread James Chapman
Jenkins, it will STILL call > build("Normal_Clean"). > So is there any other judgment I can use to handle the "Cancel" action from > Jenkins? > > Thanks, > > Hobby > > -Original Message----- > From: Hobby Tan > Sent: Thursday, March 13

RE: [Build Flow Plugin] how to execute different rescue when job failed in guard

2014-03-13 Thread Hobby Tan
ay, March 13, 2014 12:45 PM To: jenkinsci-users@googlegroups.com Subject: RE: [Build Flow Plugin] how to execute different rescue when job failed in guard Thanks James for your comments I try the following which is little different from your comment, and it can work now. def b def guard_result =FA

RE: [Build Flow Plugin] how to execute different rescue when job failed in guard

2014-03-12 Thread Hobby Tan
t: Re: [Build Flow Plugin] how to execute different rescue when job failed in guard You can use some groovy code instead... (Which probably isn't officially supported and might stop working in the future?) def resultA ignore(FAILURE) { build( "JobA" ) resultA =

Re: [Build Flow Plugin] how to execute different rescue when job failed in guard

2014-03-12 Thread James Chapman
You can use some groovy code instead... (Which probably isn't officially supported and might stop working in the future?) def resultA ignore(FAILURE) { build( "JobA" ) resultA = build.state.result } if (resultA == SUCCESS) { build( "normal_clean" ) } else { build( "faile

RE: [Build Flow Plugin] how to execute different rescue when job failed in guard

2014-03-11 Thread Hobby Tan
Anyone has idea for this ?? Thanks, Hobby From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Sent: Tuesday, March 11, 2014 12:31 AM To: jenkinsci-users@googlegroups.com Subject: [Build Flow Plugin] how to execute different rescue when job failed in gua