Issue
When a Jenkins job's branch contains a slash in its Branch name, the task ends with an error.
Affected Products & Versions
Tested and reported with xlr-jenkins-plugin-23.1.1.jar
Cause
In Jenkins, when a branch name contains slashes, they are converted to %2F (URL encoding for /). However, in the Jenkins plugin script, the branch name is used directly to compare with job names.
The comparison fails if the branch name contains a slash, because Jenkins would have stored it as %2F instead of /.
Steps to Recreate
Create a Jenkins Build task and try to add the branch name as /new/main.
Workaround/Resolution Action
The workaround, for now, is to use %2F instead of /. We are planning to release a new version of the plugin that will fix this issue. Please check our Release notes for further information.
Comments
Please sign in to leave a comment.