It's definitely java.exe. I see a hold on that folder using a utility called handle.exe <https://technet.microsoft.com/en-us/sysinternals/handle.aspx> from Sysinternals. I am troubleshooting now. I am getting around the problem by not using "Delete workspace before build starts" option and setting my Subversion setting to "Always check out a fresh copy." This essentially is the same as deleting the workspace. The odd thing is that the hold is only on the folder and not the files that are in the folder. That's why the "Delete workspace before build starts fails" because it also tries to remove the job's workspace folder.
On Wed, Jun 21, 2017 at 3:04 PM, Mark Waite <mark.earl.wa...@gmail.com> wrote: > Interesting that it only happens every other job. > > You might consider https://superuser.com/questions/117902/find-out- > which-process-is-locking-a-file-or-folder-in-windows as a starting point > to confirm that the process locking the file (or directory) is java.exe > that is running Jenkins. If it is not, then whatever process is holding > the lock is the one you'll need to stop at the end of the job. > > If the lock is held by the java.exe which is running Jenkins, then I think > you'll need to bisect the changes from what was working previously to now, > so that you can identify the plugin (or core) that introduced the change. > Once you've isolated it, then report a bug on that component. > > Mark Waite > > On Wed, Jun 21, 2017 at 11:57 AM t3knoid <t3kn...@gmail.com> wrote: > >> I recently updated to Jenkins 2.65 and some of my plugins. Now every time >> I try to build a job that has been working all along, the job fails when >> trying to clean the workspace. It only happens after every other job. I can >> get around the issue by restarting the slave service (Windows). This is >> obviously not a solution. How can I go about checking what is causing the >> lock on the folder? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jenkinsci-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/ >> msgid/jenkinsci-users/ed2ab916-7923-4355-9b3f- >> 2e625de0d360%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-users/ed2ab916-7923-4355-9b3f-2e625de0d360%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/jenkinsci-users/RCbxvLaN_ls/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-users/CAO49JtHiAz%3DHf5P%3DAbG8P% > 2BZZvj7sGMU9pKSyPJ2%3DBa8%3DVMU2hA%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHiAz%3DHf5P%3DAbG8P%2BZZvj7sGMU9pKSyPJ2%3DBa8%3DVMU2hA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAL-k20XHeE%3DCzDg-gw%2Bdb6sSQksnWBV_-%3DdZ-KPfi18anAfLww%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.