java.io.IOException: Unable to delete <destination>

Jenkins JIRA | Luke Robertson | 3 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

    version 1.2 When two builds attempt to archive the same output at the project level at the same time, the following output can be seen: [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at PROJECT level <source> to <destination> FATAL: HTML Publisher failure java.io.IOException: Unable to delete <destination> at hudson.Util.deleteFile(Util.java:239) at hudson.Util.deleteRecursive(Util.java:289) at hudson.Util.deleteContentsRecursive(Util.java:200) at hudson.Util.deleteRecursive(Util.java:280) at hudson.FilePath$11.invoke(FilePath.java:920) at hudson.FilePath$11.invoke(FilePath.java:918) at hudson.FilePath.act(FilePath.java:852) at hudson.FilePath.act(FilePath.java:834) at hudson.FilePath.deleteRecursive(FilePath.java:918) at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:209) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:718) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:693) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:640) at hudson.model.Run.execute(Run.java:1527) at hudson.model.Run.run(Run.java:1448) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:60) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) This is likely due to the setting of "BuildStepMonitor.NONE" meaning that each build does not wait for the previous one to complete before processing it's post-build steps. I believe this is correct when archiving is at the BUILD level as there is no clash of file access but for PROJECT level this should be changed to BuildStepMonitor.BUILD (if I have understood the javadoc's correctly)

    Jenkins JIRA | 3 years ago | Luke Robertson
    java.io.IOException: Unable to delete <destination>
  2. 0

    version 1.2 When two builds attempt to archive the same output at the project level at the same time, the following output can be seen: [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at PROJECT level <source> to <destination> FATAL: HTML Publisher failure java.io.IOException: Unable to delete <destination> at hudson.Util.deleteFile(Util.java:239) at hudson.Util.deleteRecursive(Util.java:289) at hudson.Util.deleteContentsRecursive(Util.java:200) at hudson.Util.deleteRecursive(Util.java:280) at hudson.FilePath$11.invoke(FilePath.java:920) at hudson.FilePath$11.invoke(FilePath.java:918) at hudson.FilePath.act(FilePath.java:852) at hudson.FilePath.act(FilePath.java:834) at hudson.FilePath.deleteRecursive(FilePath.java:918) at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:209) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:718) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:693) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:640) at hudson.model.Run.execute(Run.java:1527) at hudson.model.Run.run(Run.java:1448) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:60) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) This is likely due to the setting of "BuildStepMonitor.NONE" meaning that each build does not wait for the previous one to complete before processing it's post-build steps. I believe this is correct when archiving is at the BUILD level as there is no clash of file access but for PROJECT level this should be changed to BuildStepMonitor.BUILD (if I have understood the javadoc's correctly)

    Jenkins JIRA | 3 years ago | Luke Robertson
    java.io.IOException: Unable to delete <destination>
  3. 0

    Hudson and gitosis

    Stack Overflow | 6 years ago | Jon
    java.io.IOException: Unable to delete C:\Documents and Settings\hudson\.hudson\jobs\&lt;job&gt;\workspace
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Failed to clean up temp dirs

    GitHub | 2 years ago | RZhou94
    java.io.IOException: Failed to clean up temp dirs
  6. 0

    Unable to delete unicode files during workspace cleanup

    Google Groups | 4 years ago | grayaii
    java.io.IOException: Unable to delete /.../XmlParseUtilityTestFiles/��ҿ]

    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

      Unable to delete <destination>

      at hudson.Util.deleteFile()
    2. Hudson
      FilePath.deleteRecursive
      1. hudson.Util.deleteFile(Util.java:239)
      2. hudson.Util.deleteRecursive(Util.java:289)
      3. hudson.Util.deleteContentsRecursive(Util.java:200)
      4. hudson.Util.deleteRecursive(Util.java:280)
      5. hudson.FilePath$11.invoke(FilePath.java:920)
      6. hudson.FilePath$11.invoke(FilePath.java:918)
      7. hudson.FilePath.act(FilePath.java:852)
      8. hudson.FilePath.act(FilePath.java:834)
      9. hudson.FilePath.deleteRecursive(FilePath.java:918)
      9 frames
    3. htmlpublisher
      HtmlPublisher.perform
      1. htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:209)
      1 frame
    4. Hudson
      Run.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:718)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:693)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:640)
      6. hudson.model.Run.execute(Run.java:1527)
      7. hudson.model.Run.run(Run.java:1448)
      7 frames
    5. com.tikal.jenkins
      MultiJobBuild.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:60)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:237)
      2 frames