This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
The following commit(s) were added to refs/heads/master by this push:
new 5085543 SLING-8480 - Enable 'discard old builds' for Sling jobs
5085543 is described below
commit 508554322d23b54107e54c44aff7d37be0662d3e
Author: Robert Munteanu <[email protected]>
AuthorDate: Tue Jun 11 10:47:58 2019 +0200
SLING-8480 - Enable 'discard old builds' for Sling jobs
Keep at most 10 jobs.
---
src/org/apache/sling/jenkins/SlingJenkinsHelper.groovy | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/org/apache/sling/jenkins/SlingJenkinsHelper.groovy
b/src/org/apache/sling/jenkins/SlingJenkinsHelper.groovy
index 19d1547..2c5c9d4 100644
--- a/src/org/apache/sling/jenkins/SlingJenkinsHelper.groovy
+++ b/src/org/apache/sling/jenkins/SlingJenkinsHelper.groovy
@@ -83,7 +83,8 @@ def runWithErrorHandling(Closure build) {
jobTriggers.add(upstream(upstreamProjects:
upstreamProjectsCsv, threshold: hudson.model.Result.SUCCESS))
properties([
- pipelineTriggers(jobTriggers)
+ pipelineTriggers(jobTriggers),
+ buildDiscarder(logRotator(numToKeepStr: '10'))
])
}