diff --git a/core/src/main/resources/hudson/tasks/LogRotator/help-removeLastBuild.html b/core/src/main/resources/hudson/tasks/LogRotator/help-removeLastBuild.html new file mode 100644 index 000000000000..b34173434d96 --- /dev/null +++ b/core/src/main/resources/hudson/tasks/LogRotator/help-removeLastBuild.html @@ -0,0 +1,31 @@ +
+ When enabled, Jenkins is allowed to remove the + last successful + and + last stable + build if they match the configured build discarder rules. +
+ ++ By default, Jenkins keeps the most recent successful and stable builds, even + if they are older than the configured retention limits. Enabling this option + overrides that behavior. +
+ +
+ Example:
+
+ If builds are configured to be deleted after 7 days, and the most recent
+ successful build is 30 days old, it will normally be kept. With this option
+ enabled, that build will also be removed.
+
This option is also available in Pipelines with:
+ +
+options {
+ buildDiscarder logRotator(removeLastBuild: true)
+}
+
+