Aaron Levy commented on Bug JENKINS-25465

I have this issue also, at least if I understand what @metyl is saying. For me, any branch that has a "/" in the branch name, such as "dev/br1" results in an eventual ${GIT_BRANCH} value of "remotes/origin/dev/br1" (the full value of which is "refs/remotes/origin/dev/br1". The problem code here is in DefaultBuildChooser.java, in the getCandidateRevisions method starting at line 44. The logic in this method causes branches with slashes in the name to be sent to the 'else' statement at line 85, which adds the "refs/remotes" text that messes up the later ${GIT_BRANCH} value.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to