-
Improvement
-
Resolution: Fixed
-
Major
The %2F encoding of / breaks many software (msbuild for example) and can't be changed.
Being able to provide a rule to build the subproject names from the branch name instead of just encoding things would permit to give the user the power to work around their problems with this kind of software.
This would be an advanced option in which one can write something like a sed regex.
- duplicates
-
JENKINS-30744 multibranch issues if branch contains /
-
- Closed
-
- is blocked by
-
JENKINS-44360 '%' in branch name causes GitHub multi-branch job failures
-
- Open
-
-
JENKINS-44784 Branch indexing blocked by workspace cleanup hung on bad connection
-
- Resolved
-
- is duplicated by
-
JENKINS-37711 Percent encoding cause fail in Visual Studio
-
- Resolved
-
-
JENKINS-34475 github-org folder is incompatible with git flow implementations - branch names break builds
-
- Resolved
-
-
JENKINS-38706 Workspace directory names mangled in multibranch pipeline
-
- Resolved
-
-
JENKINS-34595 Multibranch Pipeline Project vs SVN branches
-
- Resolved
-
-
JENKINS-37677 Handle jobs in Multibranch projects where git branches have special characters
-
- Resolved
-
-
JENKINS-37045 Don't use "%2F" in branch directory name
-
- Resolved
-
-
JENKINS-35633 multibranch builds with visual studio incorrectly handles branches with a slash
-
- Closed
-
-
JENKINS-32239 job naming sould be configurable
-
- Resolved
-
-
JENKINS-32253 Want an option to encode slashes in branch names differently
-
- Resolved
-
-
JENKINS-42923 Multibranch job should have an option to shorten the job/script directory
-
- Resolved
-
-
JENKINS-38874 Shorten branch's folder name
-
- Closed
-
- is related to
-
JENKINS-34083 Compilation problems
-
- Resolved
-
-
JENKINS-38837 Mutibranch project plugin does not respect "Workspace Root Directory" global configuration
-
- Resolved
-
- relates to
-
JENKINS-2111 removing a job (including multibranch/org folder branches/repos) does not remove the workspace
-
- Resolved
-
-
JENKINS-30148 Allocate shorter workspace if it will be too long for reasonable use inside build
-
- Open
-
-
JENKINS-51811 KubernetesSlave should override getWorkspaceFor(TopLevelItem)
-
- Open
-
- links to
I updated my plugins recently and my builds stopped working. I tried Jesse Glick's suggestion and it worked, but branches names are now stripped (I'm ok with that).
For the record, in my case, it was failing to install packages in a python virtualenv inside working directory (path too long), during pip install -r requirements.txt:
Before plugin update (was working, 56 characters):
/var/lib/jenkins/workspace/project/project/master@script
After update (failing, 109 characters):
/var/lib/jenkins/workspace/project_project_master-0GR3K62UHM3ITQD3DYGVNX7HHRXYWN3NP946WC282P28PH4B061E@script
Adding the following line to /etc/default/jenkins:
JAVA_ARGS="-Djenkins.branch.WorkspaceLocatorImpl.PATH_MAX=30"
Results in this (working, 88 characters):
/var/lib/jenkins/workspace/r-MQDDZ79AS4LC4V4O49CTXGW52GDS8XDTMLMAIS05Q0ZHJ2NKK19N@script
Only one letter is kept from my branch but I don't really care as long as it works. Thanks for this. At this point, I would only keep generated hash.
In case it doesn't solve for other people, Using a shorter path for workspace sounds a good idea too:
But not quite sure what's the best way to achieve this.
Related SO Questions:
http://stackoverflow.com/questions/17310959/is-there-any-way-to-change-the-working-directory-of-a-jenkins-maven-build
http://stackoverflow.com/questions/21839538/change-jenkins-home-on-red-hat-linux