Draft: Cascade parent/child pipeline cancellation
What does this MR do and why?
Issue: #273378 (closed)
This MR makes all child pipeline jobs and pipeline jobs cancel when a given pipeline is cancelled.
Screenshots or screen recordings
How to set up and validate locally
- Setup a first project with a .gitlab-ci.yml that looks like:
job-1:
trigger:
include:
- project: 'root/child'
ref: 'main'
file: '.gitlab-ci.yml'
job-2:
script: sleep 100
- Setup a second project with the path
root/child
with a.gitlab-ci.yml
that looks like:
job-1:
script: sleep 100
- Run the pipeline for the first project
- Confirm the pipeline for the second child project is running
- Cancel the pipeline for the first project
- Observe that the jobs/pipelines in the first and second project both have the status of
canceled
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #273378 (closed)
Edited by Allison Browne