Skip to content

Commit

Permalink
Fixed environment variables injection.
Browse files Browse the repository at this point in the history
Resolves: https://issues.jenkins-ci.org/browse/JENKINS-19177

Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>
  • Loading branch information
oleg-nenashev committed Sep 4, 2013
1 parent 73b1e3a commit 483d18a
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -112,9 +112,8 @@ public void buildEnvVars(Map<String, String> env) {
for (CustomTool tool : customTools()) {
if (tool.hasVersions()) {
ToolVersion version = ToolVersion.getEffectiveToolVersion(tool, buildEnv, node);
if (version != null && !buildEnv.containsKey(version.getVariableName())) {
String envStr = version.getVariableName()+"="+version.getDefaultVersion();
buildEnv.addLine(envStr);
if (version != null && !env.containsKey(version.getVariableName())) {
env.put(version.getVariableName(), version.getDefaultVersion());
}
}
}
Expand Down

0 comments on commit 483d18a

Please sign in to comment.