Skip to content

GitLab API | List pipeline jobs does not return jobs that have been retried

https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-jobs

API returns only initial jobs that were run, but not the jobs that were retriggered (retry)

Steps to reproduce

  • run a pipeline with random jobs
  • retry one of the jobs
  • run API call to: GET /projects/:id/pipelines/:pipeline_id/jobs

Actual behavior: only initial jobs are returned, retried jobs are not returned

Expected behavior: All jobs are returned, or at least the new (retried) ones. or possibility to filter

Edited by Oren Nahum