Skip to content
Permalink
Browse files

Fix JENKINS-16575 and JENKINS-16566

  • Loading branch information
gboissinot committed Feb 3, 2013
1 parent e0585e4 commit 6c2027615675ae7fbf666067acc60eabbba7cfa2
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/main/java/org/jenkinsci/lib/envinject/EnvInjectAction.java
@@ -48,15 +48,14 @@ public void overrideAll(Map<String, String> all) {
@SuppressWarnings({"unused", "unchecked"})
public Map<String, String> getEnvMap() {
if (envMap == null) {

//Try to fill the envMap from the build injected environment
//file (injectedEnvVars.txt by default).
try {
envMap = getEnvironment(build);
Map<String, String> result = getEnvironment(build);
return result == null ? null : UnmodifiableMap.decorate(result);
} catch (EnvInjectException e) {
return null;
}
return envMap;
}

return UnmodifiableMap.decorate(envMap);

0 comments on commit 6c20276

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