Thanks Jesse I went with throwing AbortException.

On Friday, January 26, 2018 at 7:11:28 AM UTC-8, Jesse Glick wrote:
>
> On Fri, Jan 26, 2018 at 5:46 AM, Robert Sandell <[email protected] 
> <javascript:>> wrote: 
> > 
> http://javadoc.jenkins-ci.org/hudson/model/Run.html#setResult-hudson.model.Result-
>  
> > 
> > On the run instance you got as a parameter in the perform method. 
>
> No, that is not the best style. It will interact poorly with other 
> Pipeline features. 
>
> Simpler and better to throw an `AbortException` with the message of your 
> choice. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" 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-dev/ae0647c0-8ef3-4131-92ad-ed02aa500273%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to