I seem to be getting the same:
started
ERROR: Failed to clean the workspace
java.io.IOException: Unable to delete C:\home\duns\.....\hg\hudson\jobs\.....\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:321)
at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:215)
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
This happens ONLY on our Windows XP machine, not under MacOS X. I am sure it is Windows
related. Maven pre-2.x had related problems (stand-alone, not under Hudson) trying to delete
the target directory.
Hope this helps. Not sure what to do, all jobs fail at this time.
1. does this problem happen consistently, or randomly?
2. any chance you were running other processes at the same time working on this
directory?
3. If this file still exists, what's the file permission?