Get Pipeline status in API
Now, in API there are no easy possibility to understand is last commit was successful. For example, if we have 5 parallel jobs in CI, when they finish you can only get in API this five jobs and need to check each job status.
Moreover, If one of these jobs fails, and then retried to success - you need additional logic to determine which of them was last, while in web interface you have Pipeline button, which shows it nicely.
So, my proposals:
- Add field
retried
orlatest
into build object in builds list in API - Add API endpoint
pipeline
with information about commit, builds and pipeline status. - Add API field
pipeline_status
forrepository/commit
endpoint.
While there is a button in the web - I think it would not be very hard to implement in API?
~"feature proposal" api