You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/06/11 08:48:36 UTC
[sling-tooling-jenkins] branch master updated: SLING-8480 - Enable
'discard old builds' for Sling jobs
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 <ro...@apache.org>
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'))
])
}