Pipelines

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

Pipelines do not support sorting.

Query fields

The following fields are required: Project

FieldName (and alias)Operators
Authorauthor=
Projectproject=
Refref=
Scopescope=
SHAsha=
Sourcesource=
Statusstatus=
Updated atupdated, updatedAt=, >, <, >=, <=

Author

Description: Filter pipelines by the user who triggered them.

Allowed value types:

  • String
  • User (for example, @username)

Project

Description: Specify the project to query pipelines from. This field is required.

Allowed value types: String

Ref

Description: Filter pipelines by the Git ref (branch or tag name) they ran on.

Allowed value types: String

Scope

Description: Filter pipelines by their scope.

Allowed value types:

  • Enum, one of branches, tags, finished, pending, or running

SHA

Description: Filter pipelines by the commit SHA.

Allowed value types: String

Source

Description: Filter pipelines by what triggered them.

Allowed value types: String

Status

Description: Filter pipelines by their CI/CD status.

Allowed value types:

  • Enum, one of canceled, canceling, created, failed, manual, pending, preparing, running, scheduled, skipped, success, waiting_for_callback, or waiting_for_resource

Updated at

Description: Filter pipelines by when they were last updated.

Allowed value types:

  • AbsoluteDate (in the format YYYY-MM-DD)
  • RelativeDate (in the format <sign><digit><unit>, where sign is +, -, or omitted, digit is an integer, and unit is one of d (days), w (weeks), m (months) or y (years))

Notes:

  • For the = operator, the time range is considered from 00:00 to 23:59 in the user’s time zone.
  • >= and <= operators are inclusive of the dates being queried, whereas > and < are not.

Display fields

FieldName (and alias)Description
ActiveactiveDisplay whether the pipeline is active
CancelablecancelableDisplay whether the pipeline can be canceled
ChildchildDisplay whether this is a child pipeline
Committed atcommitted, committedAtDisplay the commit timestamp
CompletecompleteDisplay whether the pipeline is complete
Compute minutescomputeMinutesDisplay the compute minutes used
Config sourceconfigSourceDisplay the pipeline configuration source
CoveragecoverageDisplay code coverage percentage
Created atcreated, createdAtDisplay when the pipeline was created
DurationdurationDisplay the pipeline duration
Failed jobs countfailedJobsCountDisplay the number of failed jobs
Failure reasonfailureReasonDisplay the reason for pipeline failure
Finished atfinished, finishedAtDisplay when the pipeline finished
IDidDisplay the pipeline ID
IIDiidDisplay the pipeline internal ID
LatestlatestDisplay whether this is the latest pipeline for the ref
NamenameDisplay the pipeline name
PathpathDisplay the pipeline path
RefrefDisplay the Git ref (branch or tag)
RetryableretryableDisplay whether the pipeline can be retried
SHAshaDisplay the commit SHA
SourcesourceDisplay what triggered the pipeline
Started atstarted, startedAtDisplay when the pipeline started
StatusstatusDisplay the pipeline status
StuckstuckDisplay whether the pipeline is stuck
Total jobstotalJobsDisplay the total number of jobs
Updated atupdated, updatedAtDisplay when the pipeline was last updated
WarningswarningsDisplay pipeline warnings
YAML errorsyamlErrorsDisplay whether the pipeline has YAML errors
YAML error messagesyamlErrorMessagesDisplay YAML error messages