From 3a538c48545dc9f8284165cab398cb940ac626af Mon Sep 17 00:00:00 2001
From: Christian Poessinger <christian@poessinger.com>
Date: Thu, 26 Dec 2019 14:17:10 +0100
Subject: Jenkins: keep 10 most recent builds

---
 Jenkinsfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'Jenkinsfile')

diff --git a/Jenkinsfile b/Jenkinsfile
index dbc18d2b..3eaa5fe8 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -62,9 +62,9 @@ def setDescription() {
     item.save()
 }
 
-/* Only keep the 10 most recent builds. */
+// Only keep the 10 most recent builds
 def projectProperties = [
-    [$class: 'BuildDiscarderProperty',strategy: [$class: 'LogRotator', numToKeepStr: '1']],
+    [$class: 'BuildDiscarderProperty',strategy: [$class: 'LogRotator', numToKeepStr: '10']],
 ]
 
 properties(projectProperties)
-- 
cgit v1.2.3