Skip to content

Commit e6f2d36

Browse files
committed
Add online help for removeLastBuild option
1 parent 665e565 commit e6f2d36

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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>

0 commit comments

Comments
 (0)