From 2e74e8aa8a46d71f74ee1c660fc1e3de5251d0ea Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Sat, 29 Jan 2022 23:14:04 +0000 Subject: [PATCH] Eliminate a copy for performance --- copy/all.groovy | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/copy/all.groovy b/copy/all.groovy index ea56044..5bf9590 100644 --- a/copy/all.groovy +++ b/copy/all.groovy @@ -15,7 +15,6 @@ pipeline { stage('Import source artifacts') { steps { script { - IMPORTS = 'imports' def copyoptions = importer.getNewImportOptions() copyoptions.source( SOURCE_ARTIFACT_LOCATION, @@ -25,7 +24,7 @@ pipeline { SOURCE_ARTIFACT_RELEASE_REVISION) echo "Nested: ${NESTED_COPY}" copyoptions.setnested(NESTED_COPY == 'true') - importer.artifactimport(meta, copyoptions, IMPORTS) + importer.artifactimport(meta, copyoptions, WORKSPACE) } } } @@ -37,17 +36,6 @@ pipeline { def cleaner = load("${autobuilder.commonscripts()}/clean/clean.groovy") cleaner.clean(['meta', 'autobuild']) - dir(IMPORTS) { - fileOperations([ - fileCopyOperation(excludes: '', - flattenFiles: false, - includes: '**/*', - targetLocation: WORKSPACE) - ]) - } - - cleaner.clean([IMPORTS]) - def artifactlist = meta.generateartifacts(['**/*']) artifactarchiver.archive(meta, artifactlist) }