GIS-1621 - Use script prompting to obtain publishing info from user

This commit is contained in:
Dan Hawkins 2019-09-15 18:14:21 +01:00
commit 466d9ce33b

View file

@ -11,11 +11,10 @@ class PublishableItemsSelection {
def outputSelectionfromPreselect(menuitems, preselectedext) { def outputSelectionfromPreselect(menuitems, preselectedext) {
script.echo ("preselectext: ${preselectedext}") script.echo ("preselectext: ${preselectedext}")
def menuitemstemp = preselectedext.split(',') def menuitemstemp = preselectedext.split(',')
menuitemstemp = menuitemstemp*.trim()
script.echo ("Menuitemstemp: ${menuitemstemp}") script.echo ("Menuitemstemp: ${menuitemstemp}")
for (menuitem in menuitemstemp) { for (menuitem in menuitemstemp) {
menuitems.add(menuitem) menuitems.add(menuitem.trim())
} }
} }