Skip to content
Permalink
Browse files
Fixed environment variables injection.
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 483d18a532ab411fa40457f89cacf2c87cd046e4
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/main/java/com/cloudbees/jenkins/plugins/customtools/CustomToolInstallWrapper.java
@@ -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());
}
}
}

0 comments on commit 483d18a

Please sign in to comment.