-
Bug
-
Resolution: Fixed
-
Major
When a branch contains slash , if we try to specify such a branch in "Branch Name" field, it will not be able to fetch such branches. If we leave branch name as **, the job can fetch branch name containing slash without problem.
I am not a Java person, but this method looks suspicious in Branch.java, just trying to help debug
private static String strip(String name)
{ return name.substring(name.indexOf('/', 5) + 1); }- is duplicated by
-
JENKINS-9945 Git plugin doesn't suppport branch name containing "/"
-
- Closed
-
-
JENKINS-10575 git plugin does not support / in branch names
-
- Closed
-
- is related to
-
JENKINS-14480 Git plugin 1.1.21 cannot build branches with repository specified but no wildcards
-
- Closed
-
Hi,
I just ran into the same issue but the "use remote" workaround does not work. But maybe I forgot something.
I use Jenkins 1.515 with Git-Plugin 1.4.0 and Git-Client-Plugin 1.0.6.
The branch is named release/1.0.0.0, but I get this error, also if I use origin/release/1.0.0.0:
Fetching changes from 1 remote Git repository
Fetching upstream changes from repoName
No candidate revisions
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
java.io.FileNotFoundException: File 'C:\.jenkins\jobs\JobName\builds\2013-05-21_16-54-50\changelog.xml.temp' does not exist
at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:137)
at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1102)
at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1120)
at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:127)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1369)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
at hudson.model.Run.execute(Run.java:1575)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:241)
So if there are any hints to my issue...
BTW, anything is fine if I try to build branches like "master" or "develop"