From 7e72b0522faeac82d82243c9d0bb14e0ffb48b71 Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Sat, 21 Dec 2019 21:33:11 +0000 Subject: [PATCH] GIS-1621 - Import importer from a different scope --- import/importer.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/import/importer.groovy b/import/importer.groovy index 898ee96..10d51b6 100644 --- a/import/importer.groovy +++ b/import/importer.groovy @@ -94,10 +94,6 @@ class ImportOptions { } } -ImportOptions getNewImportOptions(script) { - return new ImportOptions(script) -} - def artifactimportfrombuildjob(meta, ImportOptions importoptions, String destpath) { if (importoptions.source != 'Jenkins job artifact') { error("Import options settings have not been set for: Jenkins job artifact") @@ -259,4 +255,8 @@ def artifactimport(meta, return artifactimport(meta, importoptions, destpath) } +ImportOptions getNewImportOptions() { + return new ImportOptions(this) +} + return this;