From ba491613b8fe9188902681b98474f824df4bee40 Mon Sep 17 00:00:00 2001 From: Palanivelrajan Balasubramanian Date: Fri, 12 Aug 2016 09:15:10 -0400 Subject: [PATCH] Expand the inclusion and exclusion inputs. --- src/main/java/hudson/plugins/jacoco/JacocoPublisher.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/hudson/plugins/jacoco/JacocoPublisher.java b/src/main/java/hudson/plugins/jacoco/JacocoPublisher.java index 3121561b..26dfdf27 100644 --- a/src/main/java/hudson/plugins/jacoco/JacocoPublisher.java +++ b/src/main/java/hudson/plugins/jacoco/JacocoPublisher.java @@ -472,12 +472,14 @@ public void perform(@Nonnull Run run, @Nonnull FilePath filePath, @Nonnull logger.println("\n[JaCoCo plugin] Loading inclusions files.."); String[] includes = {}; if (inclusionPattern != null) { - includes = inclusionPattern.split(DIR_SEP); + String expandedInclusion = env.expand(inclusionPattern); + includes = expandedInclusion.split(DIR_SEP); logger.println("[JaCoCo plugin] inclusions: " + Arrays.toString(includes)); } String[] excludes = {}; if (exclusionPattern != null) { - excludes = exclusionPattern.split(DIR_SEP); + String expandedExclusion = env.expand(exclusionPattern); + excludes = expandedExclusion.split(DIR_SEP); logger.println("[JaCoCo plugin] exclusions: " + Arrays.toString(excludes)); }