Add filtered publishing

This commit is contained in:
Dan Hawkins 2019-03-19 13:42:43 +00:00
commit 36ea650ea7

View file

@ -106,7 +106,7 @@ def filteredpublish(itempathstopublish, customer) {
for (String itempath : itempathstopublish) {
def defaultsrcpath = "${releaserepofolder}/${itempath}"
def srcpaths = [ defaultsrcpath ]
if (itempath.endsWith('**') { // Convert glob wildcard paths to real paths
if (itempath.endsWith('**')) { // Convert glob wildcard paths to real paths
File srcfilepath = new File(defaultsrcpath).getParentFile()
def globpattern = '**'
echo "Finding files at base folder: ${srcfilepath} and glob filter: ${globpattern}"