diff --git a/copy/all.groovy b/copy/all.groovy index a3c6c32..2ed24c0 100644 --- a/copy/all.groovy +++ b/copy/all.groovy @@ -24,7 +24,16 @@ pipeline { steps { script { importer = load("${autobuilder.commonscripts()}/import/importer.groovy") - importer.artifactimport(meta, SOURCE_ARTIFACT_LOCATION, SOURCE_ARTIFACT_BUILD_JOB, SOURCE_ARTIFACT_BUILD_SELECTOR, SOURCE_ARTIFACT_RELEASE_REPO, SOURCE_ARTIFACT_RELEASE_REVISION, IMPORTS) + def copyoptions = importer.ImportOptions(this) + copyoptions.source( + SOURCE_ARTIFACT_LOCATION, + SOURCE_ARTIFACT_BUILD_JOB, + SOURCE_ARTIFACT_BUILD_SELECTOR, + SOURCE_ARTIFACT_RELEASE_REPO, + SOURCE_ARTIFACT_RELEASE_REVISION) + echo "Nested: ${NESTED_COPY}" + copyoptions.setnested((NESTED_COPY == 'True' ? true : false)) + importer.artifactimport(meta, copyoptions, IMPORTS) } } }