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