On Mon, Aug 25, 2014 at 3:29 PM, Björn Berg <[email protected]> wrote:
> In my plugin I want to provide an option for marking a build as unstable 
> instead of failed - but only if my plugin failed the job. Previous failures 
> should always fail the build. How may I achieve this?

build.setResult(Result.UNSTABLE);

will leave it as FAILED if it was that already.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to