[ https://issues.jenkins-ci.org/browse/JENKINS-3053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161683#comment-161683 ]
pjdarton commented on JENKINS-3053: ----------------------------------- The usual cause of this sort of problem on Windows is either the Windows Search service indexing the files that Hudson/Jenkins is trying to delete, or the Anti-Virus trying to check the files that Hudson/Jenkins is trying to delete. However, I've found that on Windows 7, configuring both of those to leave well alone isn't enough to prevent this. JENKINS-10905 is reporting the same kind of issue. > Unable to delete SCM files > -------------------------- > > Key: JENKINS-3053 > URL: https://issues.jenkins-ci.org/browse/JENKINS-3053 > Project: Jenkins > Issue Type: Bug > Components: subversion > Affects Versions: current > Environment: Platform: PC, OS: All > Reporter: jfdionne > > When our projects are under source code management(in our case SVN) an error > occurs while trying to delete the associated project workspace before the > checkout. This always leads to a failed project and it forces us to do the > remove workspace and checkout directly from the execute shell. It happens > randomly, file permissions allow us to delete the files and there is no other > concurrent process that could have a handle on these files. > Hudson is at the latest version on a Windows Server Enterprise 2007 machine. > started > FATAL: Unable to delete > D:\hudson_config\jobs\Trunk\workspace\trunk\win32\DebuggingApps\obj\netborder_win32_vc8\DetermineAddress.obj > java.io.IOException: Unable to delete > D:\hudson_config\jobs\Trunk\workspace\trunk\win32\DebuggingApps\obj\netborder_win32_vc8\DetermineAddress.obj > at hudson.Util.deleteFile(Util.java:212) > at hudson.Util.deleteRecursive(Util.java:244) > at hudson.Util.deleteContentsRecursive(Util.java:178) > at hudson.Util.deleteRecursive(Util.java:243) > at hudson.Util.deleteContentsRecursive(Util.java:178) > at hudson.Util.deleteRecursive(Util.java:243) > at hudson.Util.deleteContentsRecursive(Util.java:178) > at hudson.Util.deleteRecursive(Util.java:243) > at hudson.Util.deleteContentsRecursive(Util.java:178) > at hudson.Util.deleteRecursive(Util.java:243) > at hudson.Util.deleteContentsRecursive(Util.java:178) > at hudson.Util.deleteRecursive(Util.java:243) > at hudson.Util.deleteContentsRecursive(Util.java:178) > at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:460) > at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:405) > at hudson.FilePath.act(FilePath.java:389) > at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:398) > at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:347) > at hudson.model.AbstractProject.checkout(AbstractProject.java:681) > at > hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:264) > at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:238) > at hudson.model.Run.run(Run.java:842) > at hudson.model.Build.run(Build.java:88) > at hudson.model.ResourceController.execute(ResourceController.java:70) > at hudson.model.Executor.run(Executor.java:90) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira