From b854e0431fc39ed6114f564ae676bda131b6181f Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Sun, 15 Sep 2019 18:04:32 +0100 Subject: [PATCH] GIS-1621 - Use script prompting to obtain publishing info from user --- publish/promptingpublish.groovy | 2 +- publish/publishitems.groovy | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/publish/promptingpublish.groovy b/publish/promptingpublish.groovy index 8b2cbf6..c11b907 100644 --- a/publish/promptingpublish.groovy +++ b/publish/promptingpublish.groovy @@ -85,7 +85,7 @@ pipeline { steps { script { publishitems = load("${autobuilder.commonscripts()}/publish/publishitems.groovy") - def itemsobject = publishitems.getItems(this, releasemeta, ITEMSDEFAULTLIST, MAX_META_DEPTH) + def itemsobject = publishitems.getItems(releasemeta, ITEMSDEFAULTLIST, MAX_META_DEPTH) def selecteditems = input( message: 'Select which items from the release are to be published', ok: 'Ok', diff --git a/publish/publishitems.groovy b/publish/publishitems.groovy index 93ef05b..175eda7 100644 --- a/publish/publishitems.groovy +++ b/publish/publishitems.groovy @@ -89,4 +89,10 @@ class PublishableItemsSelection { } } +PublishableItemsSelection createItemSelector(releasemeta, String preselectedext, String metalevelsstringext) { + PublishableItemsSelection pis = new PublishableItemsSelection(this, releasemeta, preselectedext, metalevelsstringext) + + return pis +} + return this; \ No newline at end of file