Permalink
Browse files

[FIXED JENKINS-19187] User variables are not set to Maven3 build

  • Loading branch information...
Clifford Sanders
Clifford Sanders committed Apr 1, 2014
1 parent e2e328e commit 1984212a790660bfde9410f27394ce359077eb76
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/main/java/org/jenkinsci/plugins/builduser/BuildUser.java
@@ -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);
}
};
}


0 comments on commit 1984212

Please sign in to comment.