Skip to content
Permalink
Browse files

Merge pull request #3 from wgreven/JENKINS-13348

Don't overwrite masterEnvVars.
  • Loading branch information
gboissinot committed May 28, 2013
2 parents 1a9def0 + 6e6d985 commit ad78b8f1833861e40d4c9d7a56fa7f72ede33bbc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/org/jenkinsci/lib/envinject/service/EnvVarsResolver.java
@@ -187,11 +187,11 @@ public String resolveEnvVars(AbstractBuild build, String value) throws EnvInject
assert node != null;
assert node.getRootPath() != null;
try {
Map<String, String> envVars = node.getRootPath().act(new Callable<Map<String, String>, EnvInjectException>() {
Map<String, String> envVars = new EnvVars(node.getRootPath().act(new Callable<Map<String, String>, EnvInjectException>() {
public Map<String, String> call() throws EnvInjectException {
return EnvVars.masterEnvVars;
}
});
}));

envVars.put("NODE_NAME", node.getNodeName());
envVars.put("NODE_LABELS", Util.join(node.getAssignedLabels(), " "));

0 comments on commit ad78b8f

Please sign in to comment.
You can’t perform that action at this time.