GIS-1621 - Allow installer builder handle a list of artifact keys or a single string

This commit is contained in:
Dan Hawkins 2019-07-31 08:03:54 +01:00
commit 09e3bfcd0c

View file

@ -29,7 +29,7 @@ def Map artifactsImporter(meta, artifactDetails, installerDetails) {
def importer = load("${autobuilder.commonscripts()}/import/importer.groovy")
for (installer in toBuild) {
def artifactKeys = installerDetails.get(installer)[1]
if (obj instanceof java.lang.Integer) {
if (artifactKeys instanceof java.lang.String) {
artifactKeys = [ artifactKeys ]
}
for (artifactKey in artifactKeys) {