Eliminate a copy for performance

This commit is contained in:
Dan Hawkins 2022-01-29 23:48:45 +00:00
commit cbc328915d

View file

@ -33,9 +33,19 @@ pipeline {
stage('Archiving artifacts') {
steps {
script {
cleaner.clean(['meta', 'autobuild'])
// Save the imported meta - while the unwanted meta is written to file then deleted
def stashname = 'Imported meta stash'
stash(allowEmpty: true,
includes: 'meta/**',
name: stashname,
useDefaultExcludes: false)
{
def artifactlist = meta.generateartifacts(['**/*'])
cleaner.clean(['meta', 'autobuild'])
}
unstash(name: stashname)
def artifactlist = meta.generateartifacts(['**/*'])
artifactarchiver.archive(meta, artifactlist)
}
}