Following a failed sync in a previous job (example: using wrong charset when syncing a unicode file), the next job's sync fails with "The process cannot access the file because it is being used by another process."
Log:
Unable to delete, trying alternative method... Unable to delete file: d:\jenkins\jbrown-win10\workspace\bugs\sync-unicode-windows
{{Unable to delete path: d:\jenkins\jbrown-win10\workspace\bugs\sync-unicode-windows\cases\syncunicode\big4.uni }}
error: d:\jenkins\jbrown-win10\workspace\bugs\sync-unicode-windows\cases\syncunicode\big4.uni: The process cannot access the file because it is being used by another process.
-----------
Workaround: restart the node that is giving the error. The cause of the previous failure needs first be determined and fixed.