Use indirect artifact archiver
This commit is contained in:
parent
ab0d724399
commit
07a8a9d6a3
1 changed files with 7 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue