Eliminate a copy for performance

This commit is contained in:
Dan Hawkins 2022-01-29 23:14:04 +00:00
commit 2e74e8aa8a

View file

@ -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)
}