Re: Windows agent can't delete workspace

2018-03-18 Thread Mark Waite
On Sun, Mar 18, 2018 at 5:40 PM Sean Talts wrote: > Thank you both! I particularly like the idea of just deleting before the > job instead of after. I managed to get something else working too, though I > think it could be masking the problem. I now run attrib -r -s /s /d before > deleting (befor

Re: Windows agent can't delete workspace

2018-03-18 Thread Sean Talts
Thank you both! I particularly like the idea of just deleting before the job instead of after. I managed to get something else working too, though I think it could be masking the problem. I now run attrib -r -s /s /d before deleting (before the run and after, just in case). Seems to be pretty qu

Re: Windows agent can't delete workspace

2018-03-17 Thread Benjamin Lau
We've used scripting around the sysinternals handle tool[1] to make sure that everything which is touching files in the workspace is actually terminated before trying to delete the workspace. We were having more issues with this when trying to delete workspaces at the ends of jobs so in many cases

Re: Windows agent can't delete workspace

2018-03-17 Thread Christian Gagneraud
On 18 March 2018 at 03:21, Sean Talts wrote: > Hey all, > > I'm having this sudden crazy problem where my Windows agent can't delete > some files in its workspace anymore, failing all builds. It's getting a > java.nio.file.AccessDeniedException on some files that it created. You can > see the full

Windows agent can't delete workspace

2018-03-17 Thread Sean Talts
Hey all, I'm having this sudden crazy problem where my Windows agent can't delete some files in its workspace anymore, failing all builds. It's getting a java.nio.file.AccessDeniedException on some files that it created. You can see the full exceptions at the end of the log here: http://d1m1s