jenkinsci / jenkinsci/workflow-multibranch-plugin

[JENKINS-62538] Copying multibranch pipeline should defer scan/trigger

Open
#516 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-multibranch-plugin imported-jira-issue priority:major resolution:unresolved
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


  • status: Open
  • priority: Major
  • component(s): workflow-multibranch-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251212-090250

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.