Skip to content

Commit

Permalink
[FIXED JENKINS-19187] User variables are not set to Maven3 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Clifford Sanders committed Apr 1, 2014
1 parent e2e328e commit 1984212
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/org/jenkinsci/plugins/builduser/BuildUser.java
Expand Up @@ -46,10 +46,14 @@ public BuildUser() {

@SuppressWarnings("rawtypes")
@Override
public Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException {
public Environment setUp(final AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException {
/* noop */
return new Environment() {
};
return new Environment() {
@Override
public void buildEnvVars(Map<String, String> env) {
makeUserBuildVariables(build, env);
}
};
}


Expand Down

0 comments on commit 1984212

Please sign in to comment.