Skip to content

Commit 04a0869

Browse files
Add help for "remove last build" in Manage Jenkins (#26153)
* Add online help for removeLastBuild option * Format help-removeLastBuild.html with Prettier * Update core/src/main/resources/hudson/tasks/LogRotator/help-removeLastBuild.html Co-authored-by: Mark Waite <mark.earl.waite@gmail.com> * Fix formatting and use correct HTML tag My suggestion used the code tag, but should have used the pre tag --------- Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
1 parent 5490f91 commit 04a0869

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<div>
2+
<p>
3+
When enabled, Jenkins is allowed to remove the
4+
<b>last successful</b>
5+
and
6+
<b>last stable</b>
7+
build if they match the configured build discarder rules.
8+
</p>
9+
10+
<p>
11+
By default, Jenkins keeps the most recent successful and stable builds, even
12+
if they are older than the configured retention limits. Enabling this option
13+
overrides that behavior.
14+
</p>
15+
16+
<p>
17+
<b>Example:</b>
18+
<br />
19+
If builds are configured to be deleted after 7 days, and the most recent
20+
successful build is 30 days old, it will normally be kept. With this option
21+
enabled, that build will also be removed.
22+
</p>
23+
24+
<p>This option is also available in Pipelines with:</p>
25+
26+
<pre>
27+
options {
28+
buildDiscarder logRotator(removeLastBuild: true)
29+
}
30+
</pre>
31+
</div>

0 commit comments

Comments
 (0)