-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.303.1
Enhanced Old Build Discarder plugin 1.4
When setting
buildDiscarder([$class: 'EnhancedOldBuildDiscarder', artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '7', numToKeepStr: '', discardOnlyOnSuccess: false, holdMaxBuilds: false]),
in properties, the build is not removed after 7 days if there is only one build remaining.
The documentation for "Days to keep builds" states:
if not empty, build records are only kept up to this number of days
so I would assume that the build should be discarded even if it is the last remaining build.