Are you using the Scripted or Declarative way to write your Pipeline ?
If you are in Declarative mode, I think that you can easily do that with
the *post *section => see https://jenkins.io/doc/book/pipeline/syntax#post

2017-06-28 7:06 GMT+02:00 Максим <[email protected]>:

> Hi!
> Perhaps you can use try-catch blocks.
> And run your job in a catch block
>
> вт, 27 июн. 2017 г. в 21:40, Kishor Ramanan <[email protected]>:
>
>> Hi,
>>
>> Is there a way where I can trigger a job based on the failure condition
>> of other job?
>>
>> I am using pipeline as of now, during the last step if pipeline fails, I
>> want to execute a specific set of job.
>>
>> Thanks
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/jenkinsci-users/ce1a300c-be24-4c94-8b71-
>> 62042e1d85af%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/ce1a300c-be24-4c94-8b71-62042e1d85af%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
>
> С уважением, Сёмочкин Максим.
> Twitter: maksim77
> +7 926 9056085 <+7%20926%20905-60-85>
>
> --
> 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CANJG3dJjovR7VcpCkNNm7XVm9%
> 3DLCpiPB1Xi_gZgrghkwVz9bJw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CANJG3dJjovR7VcpCkNNm7XVm9%3DLCpiPB1Xi_gZgrghkwVz9bJw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPO77c1mB2gQWii4qfPgLa0rccGqyqyawOU_6z%3DW6p%3Dn1dURWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to