Skip to content

Commit

Permalink
Merge pull request #799 from imod/JENKINS-17555
Browse files Browse the repository at this point in the history
Originally-Committed-As: 7e1fc28c8892244e39ab0cdf7078ab632d939e23
  • Loading branch information
olivergondza committed Sep 28, 2013
2 parents 6efd5ea + ff2c294 commit 509e9ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/hudson/maven/MavenModuleSetBuild.java
Expand Up @@ -40,6 +40,7 @@
import hudson.model.Action;
import hudson.model.Build;
import hudson.model.BuildListener;
import hudson.model.EnvironmentContributingAction;
import hudson.model.Cause.UpstreamCause;
import hudson.model.Computer;
import hudson.model.Environment;
Expand Down Expand Up @@ -634,6 +635,12 @@ protected Result doRun(final BuildListener listener) throws Exception {
}
buildEnvironments.add(e);
e.buildEnvVars(envVars); // #3502: too late for getEnvironment to do this
Collection<? extends Action> actionsFromWrapper = w.getProjectActions(project);
for (Action action : actionsFromWrapper) {
if(action instanceof EnvironmentContributingAction){ // #17555
((EnvironmentContributingAction) action).buildEnvVars(MavenModuleSetBuild.this, envVars);
}
}
}

// run pre build steps
Expand Down

0 comments on commit 509e9ad

Please sign in to comment.