We are posting the jenkins deployment job JSON to SaaS. We tried to make the build fail. But It seems the event reported is not showing the build failure. How can we post the status of build failure?
Below is JSON being posted:
I am not jenkins expert, can you please help?
Here you have full syntax for EVENTS API:
You have description and customProperties fields, maybe in one of them you will be able to add this information. Those $(BUILD_ID) are env variables from jenkins. So you will have to find out the one that is responsible for build status and put it as value to one of fields I proposed to you.
Sorry my bad:
Here is list of allowed fields in custom deployment. Maybe adding in deployment name status into brackets is solution for it... You have to play with this I think.
The variable from jenkins you need is $(BUILD_STATUS).