-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins 2.429
When terminating a Jenkins pipeline build, I expect any child build triggered by this pipeline to be terminated as well, however, the child build continues running even after the parent has been terminated,
I'm not sure if this is a bug or a feature - if the latter, how can I ensure that the child pipeline is terminated as well?
Repro Steps:
- Create a Jenkins pipeline (my/pipeline) that trigger a child pipeline using `build(job: "my/child/pipeline", propagate: false, wait: true)`.
- Run the pipeline and terminate it after the child pipeline is triggered (in my case I'm using `Jenkins.instance.getItemByFullName('my/pipeline').getBuild('1234').doTerm()` to terminate part of other automation)
Expected Result:
The termination of the parent pipeline should also terminate any child pipelines
Actual Result:
The parent pipeline is terminated, but the child pipeline is not terminated