java.io.IOException: Unable to delete D:\Programs\hudson\jobs\Anagram\workspace\.hg\hgrc

Jenkins JIRA | peterpis | 9 years ago
  1. 0

    the following error: ERROR: Failed to clean the workspace java.io.IOException: Unable to delete C:\home\duns\riscure\hg\riscure-hudson\jobs\riscure- inspector-drivers-3.0.x\workspace\.hg\hgrc at hudson.Util.deleteFile(Util.java:195) at hudson.Util.deleteRecursive(Util.java:226) at hudson.Util.deleteContentsRecursive(Util.java:161) at hudson.Util.deleteRecursive(Util.java:225) at hudson.Util.deleteContentsRecursive(Util.java:161) at hudson.Util.deleteRecursive(Util.java:225) at hudson.FilePath$6.invoke(FilePath.java:460) at hudson.FilePath$6.invoke(FilePath.java:458) at hudson.FilePath.act(FilePath.java:388) at hudson.FilePath.deleteRecursive(FilePath.java:458) at hudson.plugins.mercurial.MercurialSCM.clone(MercurialSCM.java:317) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:211) at hudson.model.AbstractProject.checkout(AbstractProject.java:664) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:260) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:234) at hudson.model.Run.run(Run.java:793) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:205) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88) finished: FAILURE happens because the .hg/hgrc file is not closed, while Hudson is checking if the workspace can be updated or needs a clone. It happens on "branches" since these (probably) need to be re-checked out. Add a r.close() statement to the HrRc.java file, ctor: HgRc(Reader input, File hgrc) and things start to work.

    Jenkins JIRA | 8 years ago | wiredduns
    java.io.IOException: Unable to delete C:\home\duns\riscure\hg\riscure-hudson\jobs\riscure- inspector-drivers-3.0.x\workspace\.hg\hgrc
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    the following error: ERROR: Failed to clean the workspace java.io.IOException: Unable to delete C:\home\duns\riscure\hg\riscure-hudson\jobs\riscure- inspector-drivers-3.0.x\workspace\.hg\hgrc at hudson.Util.deleteFile(Util.java:195) at hudson.Util.deleteRecursive(Util.java:226) at hudson.Util.deleteContentsRecursive(Util.java:161) at hudson.Util.deleteRecursive(Util.java:225) at hudson.Util.deleteContentsRecursive(Util.java:161) at hudson.Util.deleteRecursive(Util.java:225) at hudson.FilePath$6.invoke(FilePath.java:460) at hudson.FilePath$6.invoke(FilePath.java:458) at hudson.FilePath.act(FilePath.java:388) at hudson.FilePath.deleteRecursive(FilePath.java:458) at hudson.plugins.mercurial.MercurialSCM.clone(MercurialSCM.java:317) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:211) at hudson.model.AbstractProject.checkout(AbstractProject.java:664) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:260) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:234) at hudson.model.Run.run(Run.java:793) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:205) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88) finished: FAILURE happens because the .hg/hgrc file is not closed, while Hudson is checking if the workspace can be updated or needs a clone. It happens on "branches" since these (probably) need to be re-checked out. Add a r.close() statement to the HrRc.java file, ctor: HgRc(Reader input, File hgrc) and things start to work.

    Jenkins JIRA | 8 years ago | wiredduns
    java.io.IOException: Unable to delete C:\home\duns\riscure\hg\riscure-hudson\jobs\riscure- inspector-drivers-3.0.x\workspace\.hg\hgrc
  4. 0

    Hudson and gitosis

    Stack Overflow | 5 years ago | Jon
    java.io.IOException: Unable to delete C:\Documents and Settings\hudson\.hudson\jobs\<job>\workspace

    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 D:\Programs\hudson\jobs\Anagram\workspace\.hg\hgrc

      at hudson.Util.deleteFile()
    2. Hudson
      FilePath.deleteRecursive
      1. hudson.Util.deleteFile(Util.java:140)
      2. hudson.Util.deleteRecursive(Util.java:148)
      3. hudson.Util.deleteContentsRecursive(Util.java:119)
      4. hudson.Util.deleteRecursive(Util.java:147)
      5. hudson.Util.deleteContentsRecursive(Util.java:119)
      6. hudson.Util.deleteRecursive(Util.java:147)
      7. hudson.FilePath$5.invoke(FilePath.java:342)
      8. hudson.FilePath$5.invoke(FilePath.java:340)
      9. hudson.FilePath.act(FilePath.java:280)
      10. hudson.FilePath.deleteRecursive(FilePath.java:340)
      10 frames
    3. hudson.plugins.mercurial
      MercurialSCM.checkout
      1. hudson.plugins.mercurial.MercurialSCM.clone(MercurialSCM.java:183)
      2. hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:125)
      2 frames
    4. Hudson
      Executor.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:518)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
      4. hudson.model.Run.run(Run.java:579)
      5. hudson.model.Build.run(Build.java:103)
      6. hudson.model.ResourceController.execute(ResourceController.java:66)
      7. hudson.model.Executor.run(Executor.java:62)
      7 frames