Add filtered publishing

This commit is contained in:
Dan Hawkins 2019-03-19 11:54:08 +00:00
commit 76f24173a3

View file

@ -1,3 +1,5 @@
import groovy.io.FileType
markunstable = false
unstablereason = ""
@ -143,14 +145,14 @@ def convertitemstopublish(String itemstopublishstring) {
def List paths = []
def String[] items = itemstopublishstring.split(',')
def String allpaths
def String allpaths = ""
for(String item : items) {
def String[] pathitems = item.split('#')
def String path = "${pathitems[0]}_${pathitems[1]}/${pathitems[2]}"
paths.add(path)
allpaths += path
allpaths += "${path}\n"
}
echo "Selected item to publish: ${allpaths}"
echo "Selected item to publish:\n${allpaths}"
return paths
}