Return build failure_reason in pipeline's webhooks
What does this MR do and why?
Adds the failure_reason
field to the build
object that's returned in the pipeline
webhook, similarly to what we did in !74888 (merged)
The field is always present, but null
if the job hasn't failed.
I updated the docs with this field (and a couple other missing fields) and added a test.
How to set up and validate locally
- Create a pipeline webhook and point it to something that logs the requests received, like https://pipedream.com/
- Trigger a CI run
- Check the new
failure_reason
field on items inside thebuilds
array.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Albert Vaca Cintora