Ensure script objects are around when source files have been cleaned

This commit is contained in:
Dan Hawkins 2022-01-29 16:13:21 +00:00
commit 10d0019fd4

View file

@ -32,9 +32,9 @@ pipeline {
stage('Archiving artifacts') {
steps {
script {
def artifactlist = meta.generateartifacts(['**/*'])
def artifactarchiver = load("${autobuilder.commonscripts()}/artifacts/archiver.groovy")
def cleaner = load("${autobuilder.commonscripts()}/clean/clean.groovy")
cleaner.clean(['meta', 'autobuild'])
dir(IMPORTS) {
@ -48,6 +48,7 @@ pipeline {
cleaner.clean([IMPORTS])
def artifactlist = meta.generateartifacts(['**/*'])
artifactarchiver.archive(meta, artifactlist)
}
}