Skip to content

Commit

Permalink
Merge pull request #91 from ndeloof/JENKINS-43222
Browse files Browse the repository at this point in the history
[JENKINS-43222] run docker cli with full environment for running commands on node.
  • Loading branch information
jglick committed Apr 13, 2017
2 parents c849a62 + fcd3ea3 commit 5d1c03b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -153,7 +153,7 @@ public static class Execution extends AbstractStepExecutionImpl {
Optional<String> containerId = dockerClient.getContainerIdIfContainerized();
if (containerId.isPresent()) {
listener.getLogger().println(node.getDisplayName() + " seems to be running inside container " + containerId.get());
final Collection<String> mountedVolumes = dockerClient.getVolumes(envHost, containerId.get());
final Collection<String> mountedVolumes = dockerClient.getVolumes(env, containerId.get());
final String[] dirs = {ws, tmp};
for (String dir : dirs) {
// check if there is any volume which contains the directory
Expand Down

0 comments on commit 5d1c03b

Please sign in to comment.