Skip to content

Commit

Permalink
[JENKINS-43222] run docker cli with full environment for running comm…
Browse files Browse the repository at this point in the history
…ands on node.
  • Loading branch information
ndeloof committed Mar 30, 2017
1 parent c849a62 commit 85018f1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -124,7 +124,7 @@ public static class Execution extends AbstractStepExecutionImpl {

@Override public boolean start() throws Exception {
EnvVars envReduced = new EnvVars(env);
EnvVars envHost = computer.getEnvironment();
EnvVars envHost = computer.buildEnvironment(TaskListener.NULL);
envReduced.entrySet().removeAll(envHost.entrySet());
LOGGER.log(Level.FINE, "reduced environment: {0}", envReduced);
workspace.mkdirs(); // otherwise it may be owned by root when created for -v
Expand Down

0 comments on commit 85018f1

Please sign in to comment.