Add filtered publishing
This commit is contained in:
parent
d868c21c17
commit
76f24173a3
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue