Add filtered publishing

This commit is contained in:
Dan Hawkins 2019-03-19 13:04:43 +00:00
commit b822e39e2a

View file

@ -104,8 +104,8 @@ def copydirectory(File dirFrom, File dirTo) {
def filteredpublish(itempathstopublish, customer) {
for (String itempath : itempathstopublish) {
def srcpathglob = "${releaserepofolder}/${itempath}"
def srcpaths = new FileNameFinder().getFileNames(srcpathglob)
// Convert glob wildcard paths to real paths
def srcpaths = new FileNameFinder().getFileNames(releaserepofolder, itempath)
for (String srcpath: srcpaths) {
def File srcpathfile = new File(srcpath)
def dstpath = "${filteredreleaserepofolder}/${itempath}"