Skip to content

Commit

Permalink
[FIX JENKINS-23693]: Checks if delete command is null
Browse files Browse the repository at this point in the history
  • Loading branch information
ydubreuil committed Aug 25, 2014
1 parent e716b89 commit a8067fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/ws_cleanup/Cleanup.java
Expand Up @@ -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);
}

Expand Down

0 comments on commit a8067fb

Please sign in to comment.