diff --git a/copy/all.groovy b/copy/all.groovy index a6431da..14c0b35 100644 --- a/copy/all.groovy +++ b/copy/all.groovy @@ -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) } }