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

This commit is contained in:
Dan Hawkins 2019-09-15 19:02:41 +01:00
commit 8db6e6a864
2 changed files with 4 additions and 10 deletions

View file

@ -94,21 +94,15 @@ pipeline {
itemsobject.multiSelect()
]
)
echo "Chosen software version is: ${release}"
echo "Chosen items are: ${selecteditems}"
}
}
}
stage('Publish components') {
steps {
script {
def publisher = load("${autobuilder.commonscripts()}/publish/do.groovy")
(summarystring, markunstable, unstablereason) = publisher.publishhierarchy(releasemeta, ITEMS_TO_PUBLISH, customer, release, MAX_META_DEPTH)
(summarystring, markunstable, unstablereason) = publisher.publishhierarchy(releasemeta, selecteditems, customer, release, MAX_META_DEPTH)
if (markunstable) {
env.unstablereason = unstablereason
currentBuild.result = 'UNSTABLE'

View file

@ -31,7 +31,7 @@ class PublishableItemsSelection {
multiselect = new ExtendedChoiceParameterDefinition(
"name", // String name
"PT_MULTI_SELECT", // String type
"PT_CHECKBOX", // String type
menuitemsfull.join(seperator), // String value
"project name", // String projectName
"", // String propertyFile
@ -58,7 +58,7 @@ class PublishableItemsSelection {
"", // String javascript
false, // boolean saveJSONParameterToFile
false, // boolean quoteValue
3, // int visibleItemCount
100, // int visibleItemCount
"multiselect", // String description
seperator) // String multiSelectDelimiter
}