Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[FIXED JENKINS-30735] Expand environment variabes in file pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed May 25, 2016
1 parent c1f8298 commit 2ad35a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/hudson/plugins/dry/DryPublisher.java
Expand Up @@ -15,6 +15,7 @@
import hudson.model.Action;
import hudson.model.BuildListener;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.plugins.analysis.core.BuildResult;
import hudson.plugins.analysis.core.FilesParser;
import hudson.plugins.analysis.core.HealthAwarePublisher;
Expand Down Expand Up @@ -118,7 +119,8 @@ public BuildResult perform(final Run<?, ?> build, final FilePath workspace, fina
InterruptedException, IOException {
logger.log("Collecting duplicate code analysis files...");

FilesParser dryCollector = new FilesParser(PLUGIN_NAME, StringUtils.defaultIfEmpty(getPattern(), DEFAULT_DRY_PATTERN),
FilesParser dryCollector = new FilesParser(PLUGIN_NAME,
StringUtils.defaultIfEmpty(expandFilePattern(getPattern(), build.getEnvironment(TaskListener.NULL)), DEFAULT_DRY_PATTERN),
new DuplicationParserRegistry(getNormalThreshold(), getHighThreshold(), workspace.getRemote(),
getDefaultEncoding()),
shouldDetectModules(), isMavenBuild(build));
Expand Down

0 comments on commit 2ad35a7

Please sign in to comment.