java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9.__rename

Jenkins JIRA | Laurent TOURREAU | 11 months 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 run Jenkins 2.0 beta binary under Windows 10. I declared a Maven installtion "M3" under Global Tool Configuration. I created the pipeline job with the following script: {code} node { git url: 'https://github.com/jglick/simple-maven-project-with-tests.git' def mvnHome = tool 'M3' bat "${mvnHome}\\bin\\mvn -B verify" } {code} I get the following error when installing Maven: {code} Started by user Administrateur [Pipeline] Allocate node : Start Running on master in C:\Program Files (x86)\Jenkins\workspace\myPipeline [Pipeline] node { [Pipeline] git Cloning the remote Git repository remote: Counting objects Receiving objects Resolving deltas Updating references Checking out Revision 7dac409d4bd2fec35a4ccde0cb424042cba671df (refs/remotes/origin/master) First time build. Skipping changelog. [Pipeline] tool Unpacking http://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3 on Jenkins [Pipeline] } //node [Pipeline] Allocate node : End [Pipeline] End of Pipeline java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9.__rename at hudson.FilePath$40.invoke(FilePath.java:1963) at hudson.FilePath$40.invoke(FilePath.java:1956) at hudson.FilePath.act(FilePath.java:990) at hudson.FilePath.act(FilePath.java:968) at hudson.FilePath.moveAllChildrenTo(FilePath.java:1956) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:80) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206) at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:622) at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:449) at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:128) at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:111) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Finished: FAILURE {code}

    Jenkins JIRA | 11 months ago | Laurent TOURREAU
    java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9.__rename
  2. 0

    I run Jenkins 2.0 beta binary under Windows 10. I declared a Maven installtion "M3" under Global Tool Configuration. I created the pipeline job with the following script: {code} node { git url: 'https://github.com/jglick/simple-maven-project-with-tests.git' def mvnHome = tool 'M3' bat "${mvnHome}\\bin\\mvn -B verify" } {code} I get the following error when installing Maven: {code} Started by user Administrateur [Pipeline] Allocate node : Start Running on master in C:\Program Files (x86)\Jenkins\workspace\myPipeline [Pipeline] node { [Pipeline] git Cloning the remote Git repository remote: Counting objects Receiving objects Resolving deltas Updating references Checking out Revision 7dac409d4bd2fec35a4ccde0cb424042cba671df (refs/remotes/origin/master) First time build. Skipping changelog. [Pipeline] tool Unpacking http://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3 on Jenkins [Pipeline] } //node [Pipeline] Allocate node : End [Pipeline] End of Pipeline java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9.__rename at hudson.FilePath$40.invoke(FilePath.java:1963) at hudson.FilePath$40.invoke(FilePath.java:1956) at hudson.FilePath.act(FilePath.java:990) at hudson.FilePath.act(FilePath.java:968) at hudson.FilePath.moveAllChildrenTo(FilePath.java:1956) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:80) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206) at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:622) at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:449) at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:128) at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:111) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Finished: FAILURE {code}

    Jenkins JIRA | 11 months ago | Laurent TOURREAU
    java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9.__rename
  3. 0

    [JIRA] [core] (JENKINS-33884) java.io.IOException: Failed to rename Maven installation directory

    Google Groups | 11 months ago | laurent@tourreau.fr (JIRA)
    java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9.__rename
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Build failed in Jenkins: ftpserver-trunk-jdk1.6-solaris #544

    mina-dev | 2 years ago | sebb
    java.io.IOException: Failed to install http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.zip to /home/jenkins/tools/maven/apache-maven-2.2.1
  6. 0

    Re: Build failed in Jenkins: ftpserver-1.0.x-jdk1.5-solaris #171

    mina-dev | 2 years ago | sebb
    java.io.IOException: Failed to install http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.zip to /home/jenkins/tools/maven/apache-maven-2.2.1

    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 rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\apache-maven-3.3.9.__rename

      at hudson.FilePath$40.invoke()
    2. Hudson
      Maven$MavenInstallation.forNode
      1. hudson.FilePath$40.invoke(FilePath.java:1963)
      2. hudson.FilePath$40.invoke(FilePath.java:1956)
      3. hudson.FilePath.act(FilePath.java:990)
      4. hudson.FilePath.act(FilePath.java:968)
      5. hudson.FilePath.moveAllChildrenTo(FilePath.java:1956)
      6. hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:80)
      7. hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
      8. hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
      9. hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
      10. hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:622)
      11. hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:449)
      11 frames
    3. org.jenkinsci.plugins
      AbstractSynchronousNonBlockingStepExecution$1$1.call
      1. org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:128)
      2. org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:111)
      3. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49)
      3 frames
    4. Hudson
      ACL.impersonate
      1. hudson.security.ACL.impersonate(ACL.java:213)
      1 frame
    5. org.jenkinsci.plugins
      AbstractSynchronousNonBlockingStepExecution$1.run
      1. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      5. java.lang.Thread.run(Unknown Source)
      5 frames