GitLab Pipelines Get

GitLab Pipelines Get

Certified

Get a GitLab CI/CD pipeline

Reads one pipeline of the project and returns its status, ref, commit, timing and URL.

yaml
type: io.kestra.plugin.gitlab.pipelines.Get

Read a pipeline and log its status.

yaml
id: gitlab_pipeline_get
namespace: company.team

tasks:
  - id: get_pipeline
    type: io.kestra.plugin.gitlab.pipelines.Get
    token: "{{ secret('GITLAB_TOKEN') }}"
    projectId: "12345"
    pipelineId: 987654

  - id: log_status
    type: io.kestra.plugin.core.log.Log
    message: "Pipeline {{ outputs.get_pipeline.id }} on {{ outputs.get_pipeline.ref }} is {{ outputs.get_pipeline.status }}"
Properties

Pipeline ID

Global ID of the pipeline (the id output of Create or List, not the project-scoped iid).

Project ID or path

Numeric project ID or URL-encoded project path rendered from the context to build API endpoints.

Access token used for API calls

GitLab Personal/Project/Group Access Token sent as the PRIVATE-TOKEN header; requires scopes that cover the requested API operations. See the GitLab Authentication docs.

Default/api/v4/projects

Projects API path

Projects API prefix appended before the project ID; defaults to /api/v4/projects. Override when fronting GitLab with a proxy or custom base path.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
Defaulthttps://gitlab.com

GitLab API base URL

Base URL of the GitLab instance; defaults to https://gitlab.com. Override for self-hosted installations.

Formatdate-time

Creation time

Duration in seconds

Time the pipeline spent running; empty while it is still running.

Formatdate-time

Finish time

Empty while the pipeline is still running.

Pipeline ID

Global ID of the pipeline, used in the pipeline API endpoints.

Pipeline IID

ID of the pipeline within its project, as shown in the GitLab UI (#12).

Project ID

Numeric ID of the project the pipeline belongs to.

Git ref

Branch or tag the pipeline runs for.

Commit SHA

SHA of the commit the pipeline runs for.

Pipeline source

What started the pipeline, for example push, web, api, schedule or merge_request_event.

Formatdate-time

Start time

Empty while the pipeline has not started.

Pipeline status

One of created, waiting_for_resource, preparing, pending, running, canceling, success, failed, canceled, skipped, manual or scheduled.

Formatdate-time

Last update time

Pipeline URL

Link to the pipeline in the GitLab UI.