java.io.IOException: Unable to delete C:\home\duns\riscure\hg\riscure-hudson\jobs\riscure- inspector-drivers-3.0.x\workspace\.hg\hgrc

Jenkins JIRA | wiredduns | 8 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. 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
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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 C:\home\duns\riscure\hg\riscure-hudson\jobs\riscure- inspector-drivers-3.0.x\workspace\.hg\hgrc

      at hudson.Util.deleteFile()
    2. Hudson
      FilePath.deleteRecursive
      1. hudson.Util.deleteFile(Util.java:195)
      2. hudson.Util.deleteRecursive(Util.java:226)
      3. hudson.Util.deleteContentsRecursive(Util.java:161)
      4. hudson.Util.deleteRecursive(Util.java:225)
      5. hudson.Util.deleteContentsRecursive(Util.java:161)
      6. hudson.Util.deleteRecursive(Util.java:225)
      7. hudson.FilePath$6.invoke(FilePath.java:460)
      8. hudson.FilePath$6.invoke(FilePath.java:458)
      9. hudson.FilePath.act(FilePath.java:388)
      10. hudson.FilePath.deleteRecursive(FilePath.java:458)
      10 frames
    3. hudson.plugins.mercurial
      MercurialSCM.checkout
      1. hudson.plugins.mercurial.MercurialSCM.clone(MercurialSCM.java:317)
      2. hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:211)
      2 frames
    4. Hudson
      Run.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:664)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:260)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:234)
      4. hudson.model.Run.run(Run.java:793)
      4 frames
    5. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:205)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:70)
      2. hudson.model.Executor.run(Executor.java:88)
      2 frames