Cool.

Created a PR for a Jenkinsfile example that has a few steps and a try/catch block.

https://github.com/jenkinsci/pipeline-examples/pull/30

It would be great if someone did a quick check before putting it into master.

I had to move the mail into the try and catch blocks as putting the results into finally caused script access problems.

Mike

On 16-05-07 09:31 AM, Baptiste Mathus wrote:


Le 5 mai 2016 9:47 PM, "Mike Caspar" <m...@caspar.com <mailto:m...@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-users+unsubscr...@googlegroups.com <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6hy6Ut8XnLUCT5Br2JyjwzKQ6Vi%2BNyXPChCiq-JOP1nQ%40mail.gmail.com <https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6hy6Ut8XnLUCT5Br2JyjwzKQ6Vi%2BNyXPChCiq-JOP1nQ%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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/572E05D9.3090306%40caspar.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to