Pipelines, Jobs & Deployments

July 5, 2026 ยท View on GitHub

Pipeline + job control (trigger, retry, cancel, play manual jobs, fetch logs/artifacts), and the deployments/environments view.

!!! note "Feature toggle" Opt-in. Enable via GITLAB_TOOLSETS=pipelines (or GITLAB_TOOLSETS=all), or use the legacy USE_PIPELINE=true flag for backward compatibility.

Tools in this group


list_pipelines

๐Ÿ“– Read-only

List pipelines with filtering options

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
scopeenum (running | pending | finished | branches | tags)The scope of pipelines
statusenum (created | waiting_for_resource | preparing | pending | running | success | failed | canceled | skipped | manual | scheduled)The status of pipelines
refstringThe ref of pipelines
shastringThe SHA of pipelines
yaml_errorsbooleanReturns pipelines with invalid configurations
usernamestringThe username of the user who triggered pipelines
updated_afterstringReturn pipelines updated after the specified date
updated_beforestringReturn pipelines updated before the specified date
order_byenum (id | status | ref | updated_at | user_id)Order pipelines by
sortenum (asc | desc)Sort pipelines
pagenumberPage number for pagination (default: 1)
per_pagenumberNumber of items per page (max: 100, default: 20)

get_pipeline

๐Ÿ“– Read-only

Get details of a specific pipeline

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
pipeline_idstringโœ“The ID of the pipeline

list_deployments

๐Ÿ“– Read-only

List deployments with filtering options

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
environmentstringFilter by environment name
refstringFilter by ref
shastringFilter by commit SHA (if supported by your GitLab version)
statusstringFilter by deployment status
updated_afterstringReturn deployments updated after the specified date
updated_beforestringReturn deployments updated before the specified date
order_byenum (id | iid | created_at | updated_at | ref | status | environment)Order deployments by
sortenum (asc | desc)Sort deployments
pagenumberPage number for pagination (default: 1)
per_pagenumberNumber of items per page (max: 100, default: 20)

get_deployment

๐Ÿ“– Read-only

Get details of a specific deployment

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
deployment_idstringโœ“The ID of the deployment

list_environments

๐Ÿ“– Read-only

List environments in a project

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
namestringReturn environments with this exact name
searchstringSearch environments by name
statesenum (available | stopped)Filter environments by state
pagenumberPage number for pagination (default: 1)
per_pagenumberNumber of items per page (max: 100, default: 20)

get_environment

๐Ÿ“– Read-only

Get details of a specific environment

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
environment_idstringโœ“The ID of the environment

list_pipeline_jobs

๐Ÿ“– Read-only

List all jobs in a specific pipeline

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
pipeline_idstringโœ“The ID of the pipeline
scopeenum (created | pending | running | failed | success | canceled | skipped | manual)The scope of jobs to show
include_retriedbooleanWhether to include retried jobs
pagenumberPage number for pagination (default: 1)
per_pagenumberNumber of items per page (max: 100, default: 20)

list_pipeline_trigger_jobs

๐Ÿ“– Read-only

List trigger jobs (bridges) in a pipeline

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
pipeline_idstringโœ“The ID of the pipeline
scopeenum (canceled | canceling | created | failed | manual | pending | preparing | running | scheduled | skipped | success | waiting_for_resource)The scope of trigger jobs to show
pagenumberPage number for pagination (default: 1)
per_pagenumberNumber of items per page (max: 100, default: 20)

get_pipeline_job

๐Ÿ“– Read-only

Get details of a GitLab pipeline job number

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
job_idstringโœ“The ID of the job

get_pipeline_job_output

๐Ÿ“– Read-only

Get the output/trace of a pipeline job with optional pagination

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
job_idstringโœ“The ID of the job
limitnumberMaximum number of lines to return from the end of the log (default/max: 1000)
offsetnumberNumber of lines to skip from the end of the log (default: 0)

create_pipeline

โœ๏ธ Writes

Create a new pipeline for a branch or tag

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
refstringโœ“The branch or tag to run the pipeline on
variablesarrayAn array of variables to use for the pipeline
inputsobjectInput parameters for the pipeline (key-value pairs for spec:inputs)

retry_pipeline

โœ๏ธ Writes

Retry a failed or canceled pipeline

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
pipeline_idstringโœ“The ID of the pipeline to retry

cancel_pipeline

โœ๏ธ Writes

Cancel a running pipeline

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
pipeline_idstringโœ“The ID of the pipeline to cancel

play_pipeline_job

โœ๏ธ Writes

Run a manual pipeline job

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
job_idstringโœ“The ID of the job
job_variables_attributesarrayCustom job variables to use when running the job

retry_pipeline_job

โœ๏ธ Writes

Retry a failed or canceled pipeline job

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
job_idstringโœ“The ID of the job

cancel_pipeline_job

โœ๏ธ Writes

Cancel a running pipeline job

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
job_idstringโœ“The ID of the job
forcebooleanForce cancellation of the job

list_job_artifacts

๐Ÿ“– Read-only

List artifact files in a job's archive

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
job_idstringโœ“The ID of the job
pathstringDirectory path within the artifacts archive (defaults to root)
recursivebooleanWhether to list artifacts recursively

download_job_artifacts

๐Ÿ“– Read-only

Download job artifact archive (zip) and save to a local path

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
job_idstringโœ“The ID of the job
local_pathstringLocal directory to save the artifact archive (defaults to current directory)

get_job_artifact_file

๐Ÿ“– Read-only

Get content of a single file from a job's artifacts

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
job_idstringโœ“The ID of the job
artifact_pathstringโœ“Path to the file within the artifacts archive