GitLab pipeline completed

Event id: gitlab.pipeline.completed
Shortcuts: pipeline, pipeline_completed

Fires when a GitLab CI pipeline finishes.

Useful variables

VariableMeaning
pipeline.idPipeline id
pipeline.statusStatus string
pipeline.failedtrue when failed
pipeline.refBranch / ref
pipeline.shaCommit SHA
pipeline.urlPipeline URL
pipeline.sourceHow the pipeline was started
project.path_with_namespaceProject path

Example

on:
  pipeline:
    # filter via check step on pipeline.failed when needed
steps:
  - type: check
    if: "{{pipeline.failed}} == true"
    else: stop
    then:
      - type: agent
        agent: developer
        prompt: Triage failed pipeline {{pipeline.url}} on {{pipeline.ref}}

See Triage GitLab.