Skip to content

Commit

Permalink
Merge pull request #4271 from Ximinhan/fix-diskspace
Browse files Browse the repository at this point in the history
limit logrotator to 15 days and clean workspace
  • Loading branch information
openshift-merge-bot[bot] authored Oct 17, 2024
2 parents 7acc2bd + 0c228b0 commit 8a12b0a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions jobs/build/scan-for-kernel-bugs/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ node {
disableResume(),
buildDiscarder(
logRotator(
artifactDaysToKeepStr: "",
artifactDaysToKeepStr: '15',
artifactNumToKeepStr: "",
daysToKeepStr: "",
daysToKeepStr: '15',
numToKeepStr: "")),
[
$class: "ParametersDefinitionProperty",
Expand Down Expand Up @@ -92,13 +92,7 @@ node {
currentBuild.result = "FAILURE"
throw err
} finally {
commonlib.safeArchiveArtifacts([
"artcd_working/email/**",
"artcd_working/**/*.json",
"artcd_working/**/*.log",
"artcd_working/**/*.yaml",
"artcd_working/**/*.yml",
])
commonlib.safeArchiveArtifacts(["artcd_working/*.log"])
buildlib.cleanWorkspace()
}
}
Expand Down

0 comments on commit 8a12b0a

Please sign in to comment.