Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gboissinot committed Aug 26, 2012
1 parent 8b24dac commit 1adb475
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -15,6 +15,7 @@
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.logging.Level;
Expand Down Expand Up @@ -159,6 +160,13 @@ public EnvInjectJobProperty getEnvInjectJobProperty(AbstractBuild build) {
public Map<String, String> getEnvVarsPreviousSteps(AbstractBuild build, EnvInjectLogger logger) throws IOException, InterruptedException, EnvInjectException {
Map<String, String> result = new HashMap<String, String>();

List<Environment> environmentList = build.getEnvironments();
for (Environment e : environmentList) {
if (e != null) {
e.buildEnvVars(result);
}
}

EnvInjectPluginAction envInjectAction = build.getAction(EnvInjectPluginAction.class);
if (envInjectAction != null) {
result.putAll(getCurrentInjectedEnvVars(envInjectAction));
Expand Down

0 comments on commit 1adb475

Please sign in to comment.