jenkinsci / jenkinsci/workflow-multibranch-plugin
[JENKINS-62538] Copying multibranch pipeline should defer scan/trigger
- Dominant language
- Java
- Stars
- 87
- Forks
- 131
- PR merge metrics
- No merged PRs in 30d
Description
Until recently, when creating a new job by copying a multibranch pipeline, the scan would not be triggered until the new job was actually saved. But now the new job incorrectly gets triggered upon copying, before we have an opportunity to change the configuration. This basically makes the "Copy from" feature useless.
For example, we commonly have multiple copies of a multibranch pipeline, each with a different branch name filter applied. So now when we try to copy an existing job, we have to manually kill all the builds that were implicitly triggered. (The issue is compounded because all the aborted builds then show up as failures in Bitbucket.)
---
Originally reported by rittneje, imported from: Copying multibranch pipeline should defer scan/trigger
Raw content of original issue
Until recently, when creating a new job by copying a multibranch pipeline, the scan would not be triggered until the new job was actually saved. But now the new job incorrectly gets triggered upon copying, before we have an opportunity to change the configuration. This basically makes the "Copy from" feature useless.
For example, we commonly have multiple copies of a multibranch pipeline, each with a different branch name filter applied. So now when we try to copy an existing job, we have to manually kill all the builds that were implicitly triggered. (The issue is compounded because all the aborted builds then show up as failures in Bitbucket.)
environment
```
Jenkins v2.222.1
Pipeline: Multibranch v2.21
```
Contributor guide
Assessment
This issue has not been assessed yet.