Details
-
Type:
New Feature
-
Status: Open (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Component/s: branch-api-plugin, workflow-multibranch-plugin
-
Labels:
-
Environment:Jenkins 2.88
Git Plugin 3.6.4
Branch API Plugin 2.0.15
Pipeline Multibranch 2.16
-
Similar Issues:
-
Sprint:Blue Ocean 1.5 - beta 3
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.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Mark Waite [ markewaite ] |
Attachment | branchindexing.log [ 40255 ] |
Summary | Resolve branch names collisions | Support multiple repositories in multi-branch pipeline |
Component/s | branch-api-plugin [ 18621 ] | |
Component/s | workflow-multibranch-plugin [ 21465 ] | |
Component/s | git-plugin [ 15543 ] | |
Environment |
Jenkins 2.88 Git Plugin 3.6.4 |
Jenkins 2.88 Git Plugin 3.6.4 Branch API Plugin 2.0.15 Pipeline Multibranch 2.16 |
Sprint | Blue Ocean 1.5 - beta 3 [ 491 ] |
Assignee | Andrew Bayer [ abayer ] |
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: master These would be resolved as linux/master and linux-next/master. |
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. |
Issue Type | Bug [ 1 ] | New Feature [ 2 ] |
Assignee | Andrew Bayer [ abayer ] |
Can you describe what you're envisioning in greater detail? The plugin already allows a separately named origin for each repository it clones, and allows the branch name to include that origin for disambiguation.
Are you in a freestyle job context, or a PIpeline context when reading from multiple repositories?