GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdPipelinesPipelineIdJobs

AI-generated

Summary

Retrieve a list of jobs for a specific pipeline within a GitLab project via the GitLab API v4.

Inputs

  • Id (required) — The project ID or URL-encoded path identifying the GitLab project to query.
  • Pipeline_id (required) — The ID of the pipeline within the specified project whose jobs are to be retrieved.
  • Include_retried — Boolean flag to include retried jobs in the results.
  • Scope — Filter jobs by their status scope (e.g., pending, running, success). Can specify multiple comma-separated scopes.
  • Page — Page number for paginated results; defaults to 1.
  • Per_page — Number of jobs to return per page; defaults to 20.

Output shape

a list of job objects

The operation returns a paginated list of jobs belonging to the specified pipeline. Pagination parameters 'page' and 'per_page' control the paging. Optional filters 'include_retried' and 'scope' refine the returned job set.

Links

Discussion