From 07a8a9d6a3059f250b058b7cf1e41e97dae7e625 Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Sun, 19 Dec 2021 18:21:23 +0000 Subject: [PATCH] Use indirect artifact archiver --- copy/all.groovy | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/copy/all.groovy b/copy/all.groovy index 920c80b..518f593 100644 --- a/copy/all.groovy +++ b/copy/all.groovy @@ -54,15 +54,19 @@ pipeline { stage('Archiving artifacts') { steps { script { - def includes = '**/*' + def artifacts = ['**/*'] + def artifactarchiver = load("${autobuilder.commonscripts()}/artifacts/archiver.groovy") + def artifactlist = meta.generateartifacts(artifacts) def excludes = "${IMPORTS}/*" - echo "Archiving artifacts: Includes: ${includes} Excludes: ${excludes}" + echo "Archiving artifacts: Includes: ${artifacts} Excludes: ${excludes}" + cleanfolders = [ IMPORTS, 'autobuild', ] cleaner.clean(cleanfolders) - archiveArtifacts(artifacts: includes) + + artifactarchiver.archive(meta, artifactlist) } } }