Add filtered publishing

This commit is contained in:
Dan Hawkins 2019-03-19 13:15:54 +00:00
commit f9a078c895

View file

@ -105,7 +105,9 @@ def copydirectory(File dirFrom, File dirTo) {
def filteredpublish(itempathstopublish, customer) {
for (String itempath : itempathstopublish) {
// Convert glob wildcard paths to real paths
echo "Finding files at base folder: ${releaserepofolder} and glob filter: ${itempath}"
def srcpaths = new FileNameFinder().getFileNames(releaserepofolder, itempath)
echo "Paths found: ${srcpaths}"
for (String srcpath: srcpaths) {
def File srcpathfile = new File(srcpath)
def dstpath = "${filteredreleaserepofolder}/${itempath}"