-
Bug
-
Resolution: Fixed
-
Major
Our repository contains a variant of the git-flow branch naming convention, where you will see
branches such as dev/main or release/3.2
Using multibranch, strange things happen:
- dev/main gets displayed as dev%2Fmain, then on restart dev%252Fmain, then dev%25252Fmain and all history seems to be lost.
This is likely down to / being a dodgy delimiter for a project name. I tried to fix this by adjusting WorkflowBranchProjectFactory thusly:
- WorkflowJob job = new WorkflowJob((WorkflowMultiBranchProject) getOwner(), branch.getName()); + String branchName = branch.getName().replace("/", "-"); + WorkflowJob job = new WorkflowJob((WorkflowMultiBranchProject) getOwner(), branchName);
but it didn't seem to help.
Happy to try to fix if I can get a pointer as to what to look at.
- depends on
-
JENKINS-30252 Provide easy access to git branch name in multibranch workflow scripts
- Resolved
-
JENKINS-30595 Obtain SCMHead from Item
- Resolved
- is blocking
-
JENKINS-32902 Multibranch pipeline has issues with / in jobName
- Resolved
- is duplicated by
-
JENKINS-34564 Give the ability to choose how the multibranch subprojects will be named.
- Resolved
- is related to
-
JENKINS-30798 Workflow multibranch failed after rebase: IllegalStateException: could not find branch tip
- Resolved
-
JENKINS-32701 Slashes in branch names cause 'bat' workflow task to hang
- Resolved
-
JENKINS-56956 Open Blue Ocean link with / character in branch name redirects to 404
- Closed
- links to