Add filtered publishing

This commit is contained in:
Dan Hawkins 2019-03-19 11:48:13 +00:00
commit d868c21c17

View file

@ -143,12 +143,14 @@ def convertitemstopublish(String itemstopublishstring) {
def List paths = []
def String[] items = itemstopublishstring.split(',')
def String allpaths
for(String item : items) {
def String[] pathitems = item.split('#')
def String path = "${pathitems[0]}_${pathitems[1]}/${pathitems[2]}"
paths.add(path)
echo "Selected item to publish: ${path}"
allpaths += path
}
echo "Selected item to publish: ${allpaths}"
return paths
}