File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
core/src/main/resources/hudson/tasks/LogRotator Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ < div >
2+ < p >
3+ When enabled, Jenkins is allowed to remove the < b > last successful</ b > and
4+ < b > last stable</ b > build if they match the configured build discarder rules.
5+ </ p >
6+
7+ < p >
8+ By default, Jenkins keeps the most recent successful and stable builds,
9+ even if they are older than the configured retention limits.
10+ Enabling this option overrides that behavior.
11+ </ p >
12+
13+ < p >
14+ < b > Example:</ b > < br />
15+ If builds are configured to be deleted after 7 days, and the most recent
16+ successful build is 30 days old, it will normally be kept.
17+ With this option enabled, that build will also be removed.
18+ </ p >
19+
20+ < p >
21+ This option is also available in Pipelines using the
22+ < code > buildDiscarder(logRotator(..., removeLastBuild: true))</ code > syntax.
23+ </ p >
24+ </ div >
You can’t perform that action at this time.
0 commit comments