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. /B 2018-01-26 2:24 GMT+01:00 Rijo Simon <[email protected]>: > I have a Builder plugin. In this plugin I check the status of the build > that was initiated using an api call. I want to received a filed status of > from the api and then set the Build step status as failed. But I am not > able to figure out how. Can someone help me with this please. > > I am talking about this status at the end of the build: > > [Pipeline] }[Pipeline] // node[Pipeline] End of PipelineFinished: SUCCESS > > -- > 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/4615d62e-ffcb-4544-8051-d5c8a5ad8385% > 40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/4615d62e-ffcb-4544-8051-d5c8a5ad8385%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Robert Sandell* Software Engineer CloudBees, Inc. [image: CloudBees-Logo.png] <http://www.cloudbees.com/> E: [email protected] Twitter: robert_sandell -- 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/CALzHZS2f237D5ZoQXY_MZSNricP7hY8LEu%2BN3po9LT%2BPuqzfXA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
