Skip to content

Commit

Permalink
[FIXED JENKINS-11351] expand job parameters for report search path.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssogabe committed Oct 17, 2011
1 parent 4b00ec0 commit f940f72
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/hudson/plugins/emma/EmmaPublisher.java
@@ -1,5 +1,6 @@
package hudson.plugins.emma;

import hudson.EnvVars;
import hudson.Extension;
import hudson.FilePath;
import hudson.Launcher;
Expand Down Expand Up @@ -93,7 +94,11 @@ protected static void saveCoverageReports(FilePath folder, FilePath[] files) thr
}

public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {

EnvVars env = build.getEnvironment(listener);
env.overrideAll(build.getBuildVariables());

includes = env.expand(includes);

final PrintStream logger = listener.getLogger();

FilePath[] reports;
Expand Down

0 comments on commit f940f72

Please sign in to comment.