Add filtered publishing

This commit is contained in:
Dan Hawkins 2019-03-19 07:44:00 +00:00
commit 9fad59a8a8

View file

@ -101,6 +101,7 @@ def filteredpublish(itempathstopublish, customer) {
def dstpath = "${filteredreleaserepofolder}/${itempath}"
File dstpathfile = new File(dstpath)
def dstpathdirname = dstpathfile.getParent()
echo "Copying recursively from ${srcpath} to ${dstpath}"
copydirectory(srcpath, dstpath)
}
publish(customer, filteredreleaserepofolder)
@ -140,6 +141,7 @@ def convertitemstopublish(String itemstopublishstring) {
def String[] pathitems = item.split('#')
def String path = "${pathitems[0]}_${pathitems[1]}/${pathitems[2]}"
paths.add(path)
echo "Selected item to publish: ${path}"
}
return paths
}