Eliminate a copy for performance
This commit is contained in:
parent
10d0019fd4
commit
2e74e8aa8a
1 changed files with 1 additions and 13 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue