GitLab pipeline completed
Event id: gitlab.pipeline.completed
Shortcuts: pipeline, pipeline_completed
Fires when a GitLab CI pipeline finishes.
Useful variables
| Variable | Meaning |
|---|---|
pipeline.id | Pipeline id |
pipeline.status | Status string |
pipeline.failed | true when failed |
pipeline.ref | Branch / ref |
pipeline.sha | Commit SHA |
pipeline.url | Pipeline URL |
pipeline.source | How the pipeline was started |
project.path_with_namespace | Project 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.