Skip to content

Commit

Permalink
Revert "Revert "Archive artifacts tweak" (#4154)"
Browse files Browse the repository at this point in the history
This reverts commit 23f285e.
  • Loading branch information
thegreyd authored May 9, 2024
1 parent 7ad4f94 commit 92f07c8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
14 changes: 10 additions & 4 deletions jobs/build/prepare-release/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,16 @@ node {
} finally {
commonlib.safeArchiveArtifacts([
"artcd_working/email/**",
"artcd_working/**/*.json",
"artcd_working/**/*.log",
"artcd_working/**/*.yaml",
"artcd_working/**/*.yml",
"artcd_working/doozer_working/*.log",
"artcd_working/doozer_working/*.yaml",
"artcd_working/doozer_working/*.yml"
"artcd_working/elliott_working/*.log",
"artcd_working/elliott_working/*.yaml",
"artcd_working/elliott_working/*.yml"
"artcd_working/*.json",
"artcd_working/*.log",
"artcd_working/*.yaml",
"artcd_working/*.yml",
])
buildlib.cleanWorkspace()
}
Expand Down
8 changes: 3 additions & 5 deletions jobs/build/tag-rpms/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@ node {
throw err
} finally {
commonlib.safeArchiveArtifacts([
"artcd_working/email/**",
"artcd_working/**/*.json",
"artcd_working/**/*.log",
"artcd_working/**/*.yaml",
"artcd_working/**/*.yml",
"artcd_working/doozer_working/*.log",
"artcd_working/doozer_working/*.yaml",
"artcd_working/doozer_working/*.yml"
])
buildlib.cleanWorkspace()
}
Expand Down
4 changes: 2 additions & 2 deletions pipeline-scripts/buildlib.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,8 @@ def watch_brew_task_and_retry(name, taskId, brewUrl) {
}
}

def cleanWorkspace() {
cleanWs(cleanWhenFailure: false, notFailBuild: true)
def cleanWorkspace(cleanWhenFailure=true) {
cleanWs(cleanWhenFailure: cleanWhenFailure, notFailBuild: true)
dir("${workspace}@tmp") {
deleteDir()
}
Expand Down

0 comments on commit 92f07c8

Please sign in to comment.