jenkinsci / jenkinsci/workflow-multibranch-plugin

[JENKINS-65900] Cloning multibranch pipeline job scans before changes can be made

Open
#526 4 comments 0 reactions 0 assignees View on GitHub
component:workflow-multibranch-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
87
Forks
131
PR merge metrics
No merged PRs in 30d

Description

When a multibranch pipeline job is cloned it gets scanned immediately - even before the job configuration is saved. As a result builds may be kicked off that would of otherwise been ignored after the user had a chance to modify the git branch configuration such as changing the branch include filter.

Expected Behavior

New job is not scanned until after the configuration is applied/saved.

Actual Behavior

A scan is started and new builds are launched before the user has a chance to modify the job configuration.

Steps to Reproduce



  1. Create a multibranch pipeline job with some branches. Run a scan and let builds complete.

  2. Clone the job that was created above. Do not click save.

  3. In another tab look at the build queue and agent build executor status. Observe builds are being immediately launched.

---
Originally reported by mrichar2, imported from: Cloning multibranch pipeline job scans before changes can be made


  • status: Open
  • priority: Minor
  • component(s): workflow-multibranch-plugin
  • resolution: Unresolved
  • votes: 2
  • watchers: 4
  • imported: 20251212-090250

Raw content of original issue

When a multibranch pipeline job is cloned it gets scanned immediately - even before the job configuration is saved. As a result builds may be kicked off that would of otherwise been ignored after the user had a chance to modify the git branch configuration such as changing the branch include filter.

Expected Behavior
New job is not scanned until after the configuration is applied/saved.

Actual Behavior
A scan is started and new builds are launched before the user has a chance to modify the job configuration.

Steps to Reproduce



  1. Create a multibranch pipeline job with some branches. Run a scan and let builds complete.

  2. Clone the job that was created above. Do not click save.

  3. In another tab look at the build queue and agent build executor status. Observe builds are being immediately launched.


environment

```
jenkins 2.277.3

workflow-multibranch 2.22
```

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.