Skip to content
Permalink
Browse files
[FIXED JENKINS-11351] expand job parameters for report search path.
  • Loading branch information
ssogabe committed Oct 17, 2011
1 parent 4b00ec0 commit f940f726d6b005a2b5d37f154d2e89b43059e8bb
Showing with 6 additions and 1 deletion.
  1. +6 −1 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;
@@ -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;

0 comments on commit f940f72

Please sign in to comment.