The source project of this merge request has been removed.
Allow to retrieve all jobs for a given pipeline
What does this MR do?
Fixes #272627 (closed).
Important: This MR does not fully restore pre-GitLab 13.5 behavior. It only makes all jobs reachable again (on demand). GitLab versions prior 13.5 returned jobs in "ORDER BY id ASC" order (oldest first), starting from GitLab 13.5 jobs are returned in "ORDER BY id DESC" order (newest first).
:id/pipelines/:pipeline_id/jobs
and :id/pipelines/:pipeline_id/bridges
endpoints are extended with a new parameter - include_retried
. By default its value is false
and retired jobs are not included into a reposnse. In order to get retired jobs include_retried
parameter has to be set to true
explicitly.
Edited by Alexander Kutelev