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

Failed to mkdirs IOException if Configuration Matrix's Name is empty

    Details

    • Similar Issues:

      Description

      If the Configuration Matrix's Name field is empty, the build will immediately fail with:

      java.io.IOException: Failed to mkdirs: /ubuntu-x86_64
      	at hudson.FilePath.mkdirs(FilePath.java:1154)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1258)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
      	at hudson.model.Run.execute(Run.java:1759)
      	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      	at hudson.model.ResourceController.execute(ResourceController.java:89)
      	at hudson.model.Executor.run(Executor.java:240)
      

      The line right before makes it seem like it's trying to build in the root directory (probably creating an invalid path somehow):

      Building remotely on ubuntu-x86_64 (linux) in workspace /ubuntu-x86_64
      

      When I set the Name to "slaves" (why do I need to set a name anyways?), the line will be:

      Building remotely on ubuntu-x86_64 (linux) in workspace /home/jenkins/workspace/myproject/slaves/ubuntu-x86_64
      

        Attachments

          Activity

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              kainjow Kevin Wojniak
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: