-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
-
Windows - Jenkins 2.x
Currently, default folder that multibranch jobs generate like this: le-somebranch-ASGYKAZV7Q4KRP2NV67WCQADFFGHWAQZYCPLVZ34EWIIFVJO5HWA@script
This will cause problem for windows user who has long path in their repositories like me. In build node, I can specify a workspace directory to checkout but in this case I can not do anything else. Because the checkout will be failed on master before it can read the Jenkinsfile.
hudson.plugins.git.GitException: Could not checkout 26b0ae8980a8da3214f0256c083f5daa11c45e6d at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2101) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1139) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:130) at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:107) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:232) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:405) Caused by: hudson.plugins.git.GitException: Command "git.exe checkout -f 26b0ae8980a8da3214f0256c083f5daa11c45e6d" returned status code 1: stdout: stderr: error: unable to create file path/to/file Filename too long
- duplicates
-
JENKINS-34564 Give the ability to choose how the multibranch subprojects will be named.
- Resolved