Join GitHub today
[FIX JENKINS-15331] Retry failed file delete operations #1209
This changes Jenkins' strategy when doing recursive deletes so that it no longer stops iterating through a directory when it finds a file it can't delete - it'll try to delete what it can before throwing the exception.
Lastly, this behavior is now configurable (on a per-JVM basis), albeit crudely - like the existing hudson.Util.noSymlink & hudson.Util.symlinkEscapeHatch flags, these can be configured using -D options when starting the Jenkins or slave services.
(Note: This was reworked to patch the Jenkins master branch as of 12:30 GMT April 22 2014, and superceeds pull request 1183)
referenced this pull request
May 1, 2014
A workaround for file locking issues on Windows seems like a worthwhile addition. IMO this issue is the reason I'd advice even Windows shops to run their Jenkins master on Linux, which is ridiculous. As this is optional and opt-in it should be safe enough to merge.
@pjdarton Could you update your PR so it can be merged without conflicts?
I'm still aware that the code suppresses