Skip to content

Commit

Permalink
Merge pull request #4147 from thegreyd/prep_release_archive_only
Browse files Browse the repository at this point in the history
Archive artifacts tweak
  • Loading branch information
openshift-merge-bot[bot] authored May 7, 2024
2 parents 31d0ef6 + 17f9ed8 commit 5ffce60
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 5ffce60

Please sign in to comment.