Skip to content

Commit

Permalink
Keep most recent NOT_BUILT build, too
Browse files Browse the repository at this point in the history
  • Loading branch information
ao-apps committed Apr 13, 2023
1 parent 233037d commit 4c461e0
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 9 deletions.
11 changes: 10 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,15 @@ pipeline {
timeout(time: 2, unit: 'HOURS')
// See https://plugins.jenkins.io/build-history-manager/
buildDiscarder(BuildHistoryManager([
[
// Keep most recent not_built build, which is useful to know which
// builds have been superseded during their quiet period.
conditions: [BuildResult(
matchNotBuilt: true
)],
matchAtMost: 1,
continueAfterMatch: false
],
[
// Keep most recent aborted build, which is useful to know what the build is waiting for
// and to see that the build is still pending in Active and Blinkenlichten views.
Expand All @@ -554,7 +563,7 @@ pipeline {
continueAfterMatch: false
],
[
// Keep most recent 50 non-aborted builds
// Keep most recent 50 success/unstable/failure builds
conditions: [BuildResult(
// All statuses except ABORTED from
// https://github.com/jenkinsci/build-history-manager-plugin/blob/master/src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/conditions/BuildResultCondition.java
Expand Down
2 changes: 1 addition & 1 deletion all
Submodule all updated 2 files
+10 −1 Jenkinsfile
+10 −1 book/Jenkinsfile
2 changes: 1 addition & 1 deletion bom
Submodule bom updated 2 files
+10 −1 Jenkinsfile
+10 −1 book/Jenkinsfile
11 changes: 10 additions & 1 deletion book/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,15 @@ pipeline {
timeout(time: 2, unit: 'HOURS')
// See https://plugins.jenkins.io/build-history-manager/
buildDiscarder(BuildHistoryManager([
[
// Keep most recent not_built build, which is useful to know which
// builds have been superseded during their quiet period.
conditions: [BuildResult(
matchNotBuilt: true
)],
matchAtMost: 1,
continueAfterMatch: false
],
[
// Keep most recent aborted build, which is useful to know what the build is waiting for
// and to see that the build is still pending in Active and Blinkenlichten views.
Expand All @@ -564,7 +573,7 @@ pipeline {
continueAfterMatch: false
],
[
// Keep most recent 50 non-aborted builds
// Keep most recent 50 success/unstable/failure builds
conditions: [BuildResult(
// All statuses except ABORTED from
// https://github.com/jenkinsci/build-history-manager-plugin/blob/master/src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/conditions/BuildResultCondition.java
Expand Down
2 changes: 1 addition & 1 deletion model
Submodule model updated 2 files
+10 −1 Jenkinsfile
+10 −1 book/Jenkinsfile
2 changes: 1 addition & 1 deletion servlet
Submodule servlet updated 2 files
+10 −1 Jenkinsfile
+10 −1 book/Jenkinsfile
2 changes: 1 addition & 1 deletion style
Submodule style updated 2 files
+10 −1 Jenkinsfile
+10 −1 book/Jenkinsfile
2 changes: 1 addition & 1 deletion taglib
Submodule taglib updated 2 files
+10 −1 Jenkinsfile
+10 −1 book/Jenkinsfile
2 changes: 1 addition & 1 deletion view
Submodule view updated 2 files
+10 −1 Jenkinsfile
+10 −1 book/Jenkinsfile

0 comments on commit 4c461e0

Please sign in to comment.