Skip to content
Permalink
Browse files
[FIX JENKINS-23693]: Checks if delete command is null
  • Loading branch information
ydubreuil committed Aug 25, 2014
1 parent e716b89 commit a8067fbb2ca46ccfbefc65714730d62267cfb7e9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/ws_cleanup/Cleanup.java
@@ -32,7 +32,7 @@ public Cleanup(List<Pattern> patterns, boolean deleteDirs, EnvironmentVariablesN
this.patterns = (patterns == null) ? (List<Pattern>)Collections.EMPTY_LIST : patterns;
this.deleteCommand = (command == null || command.isEmpty()) ? null : command;

if (environment != null) { // allow slave environment to overwrite delete cmd
if (environment != null && deleteCommand != null) { // allow slave environment to overwrite delete cmd
this.deleteCommand = environment.getEnvVars().get(command);
}

0 comments on commit a8067fb

Please sign in to comment.