jenkinsci / jenkinsci/branch-api-plugin

[JENKINS-47874] Support multiple repositories in multi-branch pipeline

Open
#684 11 comments 0 reactions 0 assignees View on GitHub
component:branch-api-plugin component:workflow-multibranch-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
39
Forks
154
PR merge metrics
No merged PRs in 30d

Description

Within a single job, we need to source branches from multiple repositories that we do not have control over. Currently, if the same branch name occurs in different repositories, only the first is built and subsequent identical branches are dropped.

 

I suggest that the remote name (if configured) be used to disambiguate the branches, so that they can all be built.

eg.

Remote name: linux

Branch: master

Remote Name: linux-next

Branch: master11

These would be resolved as linux/master and linux-next/master.

 

---
Originally reported by evildeece, imported from: Support multiple repositories in multi-branch pipeline


  • status: Open
  • priority: Major
  • component(s): branch-api-plugin, workflow-multibranch-plugin
  • label(s): branch, git-plugin
  • resolution: Unresolved
  • votes: 18
  • watchers: 14
  • imported: 20251211-141027

Raw content of original issue

Within a single job, we need to source branches from multiple repositories that we do not have control over. Currently, if the same branch name occurs in different repositories, only the first is built and subsequent identical branches are dropped.

 

I suggest that the remote name (if configured) be used to disambiguate the branches, so that they can all be built.

eg.
Remote name: linux
Branch: master

Remote Name: linux-next
Branch: master11

These would be resolved as linux/master and linux-next/master.

 

environment

```
Jenkins 2.88

Git Plugin 3.6.4

Branch API Plugin 2.0.15

Pipeline Multibranch 2.16
```

1 attachment

- [branchindexing.log](https://issues.jenkins.io/secure/attachment/40255/branchindexing.log)

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.