
GitLab Pipelines Get
CertifiedGet a GitLab CI/CD pipeline
GitLab Pipelines Get
Get a GitLab CI/CD pipeline
Reads one pipeline of the project and returns its status, ref, commit, timing and URL.
type: io.kestra.plugin.gitlab.pipelines.GetExamples
Read a pipeline and log its status.
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
pipelineId *integerstring
Pipeline ID
Global ID of the pipeline (the id output of Create or List, not the project-scoped iid).
projectId *string
Project ID or path
Numeric project ID or URL-encoded project path rendered from the context to build API endpoints.
token *string
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.
apiPath string
/api/v4/projectsProjects 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
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.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset 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.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150url string
https://gitlab.comGitLab API base URL
Base URL of the GitLab instance; defaults to https://gitlab.com. Override for self-hosted installations.
Outputs
createdAt string
date-timeCreation time
duration integer
Duration in seconds
Time the pipeline spent running; empty while it is still running.
finishedAt string
date-timeFinish time
Empty while the pipeline is still running.
id integer
Pipeline ID
Global ID of the pipeline, used in the pipeline API endpoints.
iid integer
Pipeline IID
ID of the pipeline within its project, as shown in the GitLab UI (#12).
projectId integer
Project ID
Numeric ID of the project the pipeline belongs to.
ref string
Git ref
Branch or tag the pipeline runs for.
sha string
Commit SHA
SHA of the commit the pipeline runs for.
source string
Pipeline source
What started the pipeline, for example push, web, api, schedule or merge_request_event.
startedAt string
date-timeStart time
Empty while the pipeline has not started.
status string
Pipeline status
One of created, waiting_for_resource, preparing, pending, running, canceling, success, failed, canceled, skipped, manual or scheduled.
updatedAt string
date-timeLast update time
webUrl string
Pipeline URL
Link to the pipeline in the GitLab UI.