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

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

    XMLWordPrintable

    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

          kainjow Kevin Wojniak created issue -
          kainjow Kevin Wojniak made changes -
          Field Original Value New Value
          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
          If the Configuration Matrix's Name field is empty, the build will immediately fail with:

          {code}
          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)
          {code}

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

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

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

          {code}
          Building remotely on ubuntu-x86_64 (linux) in workspace /home/jenkins/workspace/myproject/slaves/ubuntu-x86_64
          {code}
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          I would prohibit empty names. Are there any use-cases to support them?

          Show
          oleg_nenashev Oleg Nenashev added a comment - I would prohibit empty names. Are there any use-cases to support them?
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 160131 ] JNJira + In-Review [ 180264 ]

            People

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

              Dates

              • Created:
                Updated: