-
Bug
-
Resolution: Unresolved
-
Major
-
None
It seems that there are some naming problem with how gerrit-plugin is exposing the PR branches to Jenkins.
A) On BlueOcean UI PR branches are named "C-123456/2" which is problematic for two reasons: string is too long to be correctly displayed in UI, which allows only ~6 chars.
B) BlueOcean: exposed branch name exposes internals of gerrit implementation of temporary branches which is useless to the user "56/123456/2". 56/ prefix is only the last part of the original changeset and used for hashing folder name. last number is the version of the patchset. But from the logical point of view a PR/CR should be a single branch, regardless how many patchsets are build inside it. It makes sense to have a numeric only branch name, like "123456".
C) On Classic UI, the PR branch is recognised as a normal branch and not as a PR. The PR tab is not created. Clearly the Classic UI is able to display PR separately because they do this correctly for GitHub based branch sources. Even more funny is that if someone configures two SCM sources on the same multibrach project, one as Gerrit and one as GitHub, the display of PR/CR is made correct. This means that simple existence of GitHub SCM branch make the multibranch display them correctly.
- is duplicated by
-
JENKINS-58958 Use the same Jenkins workspace on a Change basis
-
- Open
-
-
JENKINS-62816 Group patchsets into a single change
-
- Open
-
[JENKINS-49897] gerrit-plugin pr branch names are incorrectly name
Component/s | New: multi-branch-project-plugin (not Pipeline) [ 21127 ] |
Component/s | New: workflow-multibranch-plugin [ 21465 ] | |
Component/s | Original: multi-branch-project-plugin (not Pipeline) [ 21127 ] |
Thanks for reporting the issue: it doesn't exactly classify as a bug IMHO. However, yes, the branch name is quite misleading.
With regards to the fact that the Gerrit change-id is an internal implementation of the branch, yes I agree. However, GitHub PRs are displayed with the PR number, which is also an internal implementation of the branch.
What I could drop is the initial prefix, which is only a namespace partitioning done by Gerrit to allow a faster execution.
Last but not least, the path number suffix. That one is REALLY NEEDED because it represents what you've build. If I want to retrigger a build of a patch-set, I need that information because I want to be sure of what I am building.
Gerrit changes are very different from GitHub PRs from that point of view.
ssbarnea what do you think?