Skip to content

Commit

Permalink
[FIXED JENKINS-16967] Allow environment variables in phing properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ssogabe committed Mar 18, 2013
1 parent 0c5382a commit 720a99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/phing/PhingBuilder.java
Expand Up @@ -179,7 +179,7 @@ public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListen

Set<String> sensitiveVars = build.getSensitiveBuildVariables();
args.addKeyValuePairs("-D", build.getBuildVariables(), sensitiveVars);
args.addKeyValuePairsFromPropertyString("-D", properties, vr, sensitiveVars);
args.addKeyValuePairsFromPropertyString("-D", env.expand(properties), vr, sensitiveVars);

String expandedOptions = Util.replaceMacro(env.expand(options), vr);
if (expandedOptions == null || !expandedOptions.contains("-logger ")) {
Expand Down

0 comments on commit 720a99e

Please sign in to comment.