Git branch names of the form "foo/bar" ares escaped to "foo%2Fbar"

21 views
Skip to first unread message

Valentin Churavy

unread,
Jun 30, 2016, 5:43:02 PM6/30/16
to Jenkins Users
I am setting up a new Jenkins installation and in our project we commonly use branch names that are separated by ''/". 

I am using the https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Organization+Folder+Plugin together with https://wiki.jenkins-ci.org/display/JENKINS/Travis+YML+Plugin to setup a Pipeline and it builds a branch in a folder called workspace/Origanization/Repo/foor%2bar/.

This leads to problem with bash and with our build system. I was looking for the place in the source where this is escaped, but the Jenkis source code is not so easy to understand as a newcomer.

Any ideas to would be helpful. This is with Jenkins 2.11


Mark Waite

unread,
Jun 30, 2016, 9:23:27 PM6/30/16
to Jenkins Users
I suspect that is in the GitHub Organization Folder plugin.  I was able to duplicate the behavior you described using the GitHub Organization Folder plugin, without using the Travis YML plugin.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/85c0d347-b51a-4b6c-bd30-27ccdc321a26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Philipp Meier

unread,
Jul 1, 2016, 4:20:43 AM7/1/16
to Jenkins Users
This issue is described here https://issues.jenkins-ci.org/browse/JENKINS-30744 

As long this ugly bug is not fixed, I'll use the workaround of Joost van der Griendt posted in the ticket comments.

Valentin Churavy

unread,
Jul 1, 2016, 2:56:31 PM7/1/16
to Jenkins Users
Thanks for the hint

James Dumay

unread,
Jul 3, 2016, 9:32:25 PM7/3/16
to Jenkins Users
FWIW, we had the same problem in Blue Ocean but we've made a change in blueocean-plugin so that the encoding is unescaped. 

(The root issue is that Jenkins has to encode the name so that its safe to store in a file name on the masters file system.)
Reply all
Reply to author
Forward
0 new messages