jenkinsci / jenkinsci/branch-api-plugin
[JENKINS-47874] Support multiple repositories in multi-branch pipeline
- 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
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: masterRemote Name: linux-next
Branch: master11These 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
Assessment
This issue has not been assessed yet.