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( "failed_clean" )
}


--
James

On 12 March 2014 06:50, Hobby Tan <hobby....@ericsson.com> wrote:
> 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 guard
>
>
>
> I want to execute different rescue based on job was failed or not in guard
> as below:
>
>
>
>
>
> guard{
>
>
>
>    build("JobA")
>
>    build("JobB")
>
>
>
> }rescue{
>
>
>
>    if JobA or JobB failed
>
>       failed clean
>
>    else
>
>       normal clean
>
> }
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to