Skip to content

Commit

Permalink
[FIXES JENKINS-14951] Set environment on matrix parent build
Browse files Browse the repository at this point in the history
If the build is a MatrixBuild, build wrappers are not invoked for the
parent, only for the individual MatrixRuns. In order for the environment
variables to be available to the parent (e.g. for post-build steps), we
must inject the environment into the parent directly during the aggregator
startBuild().
  • Loading branch information
kbriggs committed Oct 23, 2013
1 parent aa70ca2 commit a207a9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/lookout/jenkins/EnvironmentScript.java
Expand Up @@ -202,6 +202,7 @@ public boolean startBuild() throws InterruptedException, IOException {
}

build.addAction(new PersistedEnvironment(env));
build.getEnvironments().add(env);
return true;
}
};
Expand Down

0 comments on commit a207a9f

Please sign in to comment.