diff --git a/publish/publishitems.groovy b/publish/publishitems.groovy index 175eda7..35ac1d1 100644 --- a/publish/publishitems.groovy +++ b/publish/publishitems.groovy @@ -11,11 +11,10 @@ class PublishableItemsSelection { def outputSelectionfromPreselect(menuitems, preselectedext) { script.echo ("preselectext: ${preselectedext}") def menuitemstemp = preselectedext.split(',') - menuitemstemp = menuitemstemp*.trim() script.echo ("Menuitemstemp: ${menuitemstemp}") for (menuitem in menuitemstemp) { - menuitems.add(menuitem) + menuitems.add(menuitem.trim()) } }