Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52604

Multibranch with spaces in repo path fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • p4-plugin

      Using multibranch pipeline with Helix branches with no spaces in path succeeds both scanning and building:

      //repo/project/*

      Using multibranch pipeline with Helix branches with spaces in path scans repo and finds Jenkinsfile, but fails build with invalid client view

      //repo/project with spaces/*

      Using multibranch pipeline with Helix branches with spaces in path with double quotes fails to scan repo with error text below:

      "//repo/project with spaces/*"

      ERROR: [Mon Jul 16 17:40:22 CDT 2018] Could not fetch branches from source 77c0ab9e-896d-4de3-b455-285738e171e9java.io.IOException: P4JAVA: Error(s):"//repo/project with spaces/"//... - must create client '____CLIENT_UNSET____' to access local files.
      at org.jenkinsci.plugins.p4.scm.AbstractP4ScmSource.retrieve(AbstractP4ScmSource.java:172) at jenkins.scm.api.SCMSource.retrieve(SCMSource.java:357) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:267) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:633) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1024) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)[Mon Jul 16 17:40:22 CDT 2018] Finished branch indexing. Indexing took 35 msFATAL: Failed to recompute children of stsjava.io.IOException: P4JAVA: Error(s):"//repo/project with spaces/"//... - must create client '___CLIENT_UNSET____' to access local files.
      at org.jenkinsci.plugins.p4.scm.AbstractP4ScmSource.retrieve(AbstractP4ScmSource.java:172) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:357) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:267) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:633) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1024) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)Finished: FAILURE

            p4paul Paul Allen
            pollockm Matt Pollock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: