Make the default filter blank; Alter the order of build import

This commit is contained in:
Dan Hawkins 2019-07-01 09:54:24 +01:00
commit 2907eb9dc5

View file

@ -249,13 +249,16 @@ def gitsparserestore(String targetDir) {
def List convertSparseItemsString(String itemstopublish) {
def List sparsepaths = []
def String[] items = itemstopublish.split(',')
def String allpaths = ""
for(String item : items) {
sparsepaths.add(item)
allpaths += "${item}\n"
boolean nonempty = itemstopublish?.trim()
if (nonempty) {
def String[] items = itemstopublish..trim().split(',')
def String allpaths = ""
for(String item : items) {
sparsepaths.add(item)
allpaths += "${item}\n"
}
echo "Selected item to publish:\n${allpaths}"
}
echo "Selected item to publish:\n${allpaths}"
return sparsepaths
}