Hi,
There's no such concept in pipeline.
As Jesse explained: "the idea is that a Pipeline script is just a script: it runs the stuff you specified if and when you want it to. Whereas plugins contributing options to freestyle projects hardcode a lot of logic about when and whether something will happen, or make it a GUI configuration option, a Pipeline script is expected to define its own logic. We can always add convenience methods and DSLs on top of that for common usage patterns."
In your case, to do something on failure, you would typically use a try/catch/finally block.
If you are more specific on what you're trying to achieve, we might be able to help you more.
Cheers
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8b403f7e-a245-4e47-bd8f-185b5094d71a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/5sN7BR7daOs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6Y%2BdXKsAU2_0tTommH-DLjqDa1h8NGx%2B_1wRycW3odVQ%40mail.gmail.com.
Hi,
Things I am trying to define as post-action items (pass or fail).
slack updateTo view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/86731502-3669-3f2a-6a72-e392699deba4%40caspar.com.
Awesome.
This worked great.
I managed to simply wrap a try around my whole file and then a catch/finally for success and failure.
Craig, I'll look at the example. Thanks
I did figure out that I needed to use the error tag with some text during my catch block and that properly set it the status to failed.. Cool.
Where would be a good place to put this as an example in the docs for others ?
Craig, any suggestions where I might put a section for try/catch and "simulating" what was there before for others who will no doubt find themselves in similar transitions ? Any thoughts are a good place to start.
Mike
Oh.. thanks again to Craig Rodrigues and Baptiste Mathus
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/5sN7BR7daOs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAG%3DrPVfqa72x317P1OO9zZnyvmP73vPcQyoH7PsH7OVfaRTRmQ%40mail.gmail.com.
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a2bd3ac9-2a99-af64-bbee-3c403f0dfa13%40caspar.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAJc7kzRsWdJoUqKwJA7SR2VbwSPj%3DJ-ii9GwWucBqV2LdjuytA%40mail.gmail.com.
Le 5 mai 2016 9:47 PM, "Mike Caspar" <mi...@caspar.com> a écrit :
>
> Awesome.
>
> This worked great.
>
> I managed to simply wrap a try around my whole file and then a catch/finally for success and failure.
>
> Craig, I'll look at the example. Thanks
>
> I did figure out that I needed to use the error tag with some text during my catch block and that properly set it the status to failed.. Cool.
>
> Where would be a good place to put this as an example in the docs for others ?
Please add your examples there:
https://github.com/jenkinsci/pipeline-examples
Thanks a lot!
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/5sN7BR7daOs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6hy6Ut8XnLUCT5Br2JyjwzKQ6Vi%2BNyXPChCiq-JOP1nQ%40mail.gmail.com.