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 jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/4615d62e-ffcb-4544-8051-d5c8a5ad8385%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.