From 0326879391035840f42f5e1eb5ffc92e834c8995 Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Sun, 30 Jan 2022 00:04:18 +0000 Subject: [PATCH] Eliminate a copy for performance --- copy/all.groovy | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/copy/all.groovy b/copy/all.groovy index 14c0b35..24aacfb 100644 --- a/copy/all.groovy +++ b/copy/all.groovy @@ -39,11 +39,10 @@ pipeline { includes: 'meta/**', name: stashname, useDefaultExcludes: false) - { - def artifactlist = meta.generateartifacts(['**/*']) - cleaner.clean(['meta', 'autobuild']) - } + def artifactlist = meta.generateartifacts(['**/*']) + cleaner.clean(['meta', 'autobuild']) + unstash(name: stashname) artifactarchiver.archive(meta, artifactlist)