Skip to content

Commit

Permalink
[Fix JENKINS-23017] delete the tmp workdir also
Browse files Browse the repository at this point in the history
In order to not leave unlimited directories created by the polling cycle
in the tmp directory which results in reaching the system limit for
subdirectory numbers we should also delete the workdir itself and not ony its
contents.
  • Loading branch information
uhausbrand committed May 14, 2014
1 parent 6eddb7e commit d771d97
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -1183,6 +1183,7 @@ private String launchCommandWithCredentials(ArgumentListBuilder args, File workD
if (deleteWorkDir) {
try {
Util.deleteContentsRecursive(workDir);
FileUtils.deleteDirectory( workDir );
} catch (IOException ioe) {
listener.getLogger().println("Couldn't delete dir " + workDir.getAbsolutePath() + " : " + ioe);
}
Expand Down

0 comments on commit d771d97

Please sign in to comment.