Jobs

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

Jobs do not support sorting.

Query fields

The following fields are required: Project

FieldNameOperators
Kindkind=
Pipelinepipeline=
Projectproject=
Statusstatus=
With artifactswithArtifacts=, !=

Kind

Description: Filter jobs by their kind.

Allowed value types:

  • Enum, one of bridge or build

Notes:

  • bridge jobs are trigger jobs that start downstream pipelines.
  • build jobs are regular CI/CD jobs.

Pipeline

Description: Filter jobs by the pipeline they belong to, using the pipeline IID.

Allowed value types: Number (pipeline IID)

Project

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

Allowed value types: String

Status

Description: Filter jobs 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

With artifacts

Description: Filter jobs by whether they have artifacts.

Allowed value types: Boolean (either true or false)

Display fields

FieldName (and alias)Description
ActiveactiveDisplay whether the job is active
Allow failureallowFailureDisplay whether the job is allowed to fail
CancelablecancelableDisplay whether the job can be canceled
CoveragecoverageDisplay code coverage percentage
Created atcreated, createdAtDisplay when the job was created
DurationdurationDisplay the job duration
Erased aterased, erasedAtDisplay when job artifacts were erased
Failure messagefailureMessageDisplay the failure message
Finished atfinished, finishedAtDisplay when the job finished
IDidDisplay the job ID
KindkindDisplay the job kind (bridge or build)
Manual jobmanualJobDisplay whether this is a manual job
NamenameDisplay the job name
PlayableplayableDisplay whether the job can be played
Queued atqueued, queuedAtDisplay when the job was queued
Ref namerefNameDisplay the Git ref name
RetriedretriedDisplay whether the job was retried
RetryableretryableDisplay whether the job can be retried
ScheduledscheduledDisplay whether the job is scheduled
Scheduling typeschedulingTypeDisplay the scheduling type
Short SHAshortShaDisplay the short commit SHA
SourcesourceDisplay the job source
StagestageDisplay the pipeline stage the job belongs to
Started atstarted, startedAtDisplay when the job started
StatusstatusDisplay the job status
StuckstuckDisplay whether the job is stuck
TagstagsDisplay the runner tags
TriggeredtriggeredDisplay whether the job was triggered
Web pathwebPathDisplay the web path to the job
With artifactswithArtifactsDisplay whether the job has artifacts