From ab0d724399e4f476f584af9bfab18b40ba60c184 Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Sun, 19 Dec 2021 13:39:47 +0000 Subject: [PATCH] Load module before cleaning --- copy/all.groovy | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/copy/all.groovy b/copy/all.groovy index 0b7d862..920c80b 100644 --- a/copy/all.groovy +++ b/copy/all.groovy @@ -54,19 +54,15 @@ pipeline { stage('Archiving artifacts') { steps { script { - artifactarchiver = load("${autobuilder.commonscripts()}/artifacts/archiver.groovy") def includes = '**/*' def excludes = "${IMPORTS}/*" echo "Archiving artifacts: Includes: ${includes} Excludes: ${excludes}" - // This does not work: artifactarchiver = load("${autobuilder.commonscripts()}/artifacts/archiver.groovy") - // This does not work: artifactarchiver.archive(artifacts: includes, excludes: excludes) - // so cleanfolders = [ IMPORTS, 'autobuild', ] cleaner.clean(cleanfolders) - artifactarchiver.archive(artifacts: includes) + archiveArtifacts(artifacts: includes) } } }