java.io.IOException: Failed to mkdirs: /path/to/directory/jenkins/has/required/permissions/for/

Jenkins JIRA | Alexey Pakseykin | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I tried using "*Check out to a sub-directory*" option in Git SCM configuration with absolute path to required directory. My hope was that word "*sub-directory*" is just a hint for default behaviour until absolute path is specified. But it didn't work: {quote} java.io.IOException: Failed to mkdirs: /path/to/directory/jenkins/has/required/permissions/for/ at hudson.FilePath.mkdirs(FilePath.java:1164) at hudson.plugins.git.GitSCM.createClient(GitSCM.java:636) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:978) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:129) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1277) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Notifying upstream projects of job completion {quote} I'm using environment where all (chained and inter-related) jobs share common (absolute) local Git repositories. h2. Proposed solution The same field "*Check out to a sub-directory*" can be renamed into "*Check out to a directory*" with explanation that unless path is absolute, the specified directory is relative to workspace.

    Jenkins JIRA | 2 years ago | Alexey Pakseykin
    java.io.IOException: Failed to mkdirs: /path/to/directory/jenkins/has/required/permissions/for/
  2. 0

    I tried using "*Check out to a sub-directory*" option in Git SCM configuration with absolute path to required directory. My hope was that word "*sub-directory*" is just a hint for default behaviour until absolute path is specified. But it didn't work: {quote} java.io.IOException: Failed to mkdirs: /path/to/directory/jenkins/has/required/permissions/for/ at hudson.FilePath.mkdirs(FilePath.java:1164) at hudson.plugins.git.GitSCM.createClient(GitSCM.java:636) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:978) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:129) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1277) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Notifying upstream projects of job completion {quote} I'm using environment where all (chained and inter-related) jobs share common (absolute) local Git repositories. h2. Proposed solution The same field "*Check out to a sub-directory*" can be renamed into "*Check out to a directory*" with explanation that unless path is absolute, the specified directory is relative to workspace.

    Jenkins JIRA | 2 years ago | Alexey Pakseykin
    java.io.IOException: Failed to mkdirs: /path/to/directory/jenkins/has/required/permissions/for/
  3. 0

    [JIRA] (JENKINS-40651) Kubernetes plugin 0.10 failing to start pipeline with message failed to mkdirs

    Google Groups | 4 months ago | jr...@vendasta.com (JIRA)
    java.io.IOException: Failed to mkdirs: /home/jenkins/workspace/vendasta_CS_jenkins-build-TMVFST4Q5OYBVUZUBWZJEIQMXWFW7XCHYPMZOWVTMRKFHF6GRX3A
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] (JENKINS-40745) Kubernetes plugin mkdirs error when configuring a persistent volume claim for /home/jenkins on slave

    Google Groups | 4 months ago | jr...@vendasta.com (JIRA)
    java.io.IOException: Failed to mkdirs: /home/jenkins/workspace/vendasta_AA_develop-IEOQWSXH4FZN4YOLA4GNTUPEHK5V6WLUSFSBDOOPY2CKPWC5MHVQ
  6. 0

    [JIRA] (JENKINS-41106) Jenkins build fails with java.io.IOException: Failed to mkdirs: sometimes, not always

    Google Groups | 3 months ago | peteren...@gmail.com (JIRA)
    java.io.IOException: Failed to mkdirs: /root/workspace/alliander/aansluitconfigurator/develop@2

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Failed to mkdirs: /path/to/directory/jenkins/has/required/permissions/for/

      at hudson.FilePath.mkdirs()
    2. Hudson
      FilePath.mkdirs
      1. hudson.FilePath.mkdirs(FilePath.java:1164)
      1 frame
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.createClient(GitSCM.java:636)
      2. hudson.plugins.git.GitSCM.checkout(GitSCM.java:978)
      2 frames
    4. org.jenkinsci.plugins
      MultiSCM.checkout
      1. org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:129)
      1 frame
    5. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SCM.checkout(SCM.java:485)
      2. hudson.model.AbstractProject.checkout(AbstractProject.java:1277)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
      3 frames
    6. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
      2. hudson.model.Run.execute(Run.java:1741)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:408)
      5 frames