Skip to content
Snippets Groups Projects
Commit c5dba700 authored by Lars Bilke's avatar Lars Bilke
Browse files

Merge pull request #1205 from bilke/jenkins-rm-old-builds

[Jenkins] Discard old builds in pipeline jobs.
parents 8eb07c0d d0bcf5a5
No related branches found
No related tags found
No related merge requests found
......@@ -42,3 +42,5 @@ def build(buildDir, cmakeOptions, target) {
stage 'Build'
sh "cd ${buildDir} && make -j \$(nproc) ${target}"
}
properties ([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '25']]])
......@@ -26,3 +26,5 @@ def build(buildDir, cmakeOptions, target) {
stage 'Build'
sh "cd ${buildDir} && make -j \$(nproc) ${target}"
}
properties ([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '1', daysToKeepStr: '', numToKeepStr: '5']]])
......@@ -54,3 +54,5 @@ def publishTestReports(ctestPattern, gtestPattern, parseRulefile) {
step([$class: 'GitHubCommitNotifier', resultOnFailure: 'FAILURE', statusMessage: [content: 'Finished Jenkins gcc build']])
}
properties ([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '25']]])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment