gitlab_cancel_pipeline
Cancel running GitLab CI/CD pipelines to interrupt stuck or unnecessary jobs, preventing wasted resources on in-progress work.
Instructions
Cancel a running pipeline. In-flight jobs will be interrupted.
Destructive for in-progress work. Cancelling an already-finished pipeline is a no-op.
Examples:
- "Pipeline 123 is stuck, cancel it" → pipeline_id=123
- Don't use on finished pipelines — no effect; use gitlab_retry_pipeline
if you want to rerun it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipeline_id | Yes | Pipeline ID to cancel. | |
| project_path | No | GitLab project path (e.g. 'my-org/my-repo'). When omitted, the default from GITLAB_PROJECT_PATH env var is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipeline_id | No | ||
| status | No | ||
| web_url | No | ||
| ref | No | ||
| created_at | No | ||
| status_note | No |