less retention of builds, builds were not running before but should not
authorErik Brakkee <erik@brakkee.org>
Sun, 3 Nov 2024 11:49:46 +0000 (12:49 +0100)
committerErik Brakkee <erik@brakkee.org>
Sun, 3 Nov 2024 11:49:46 +0000 (12:49 +0100)
run daily

Jenkinsfile

index 13ad14a6925011630fb8cd247c02a55e822e30cc..413811dc0625fad25c772f6040dcfecec12623fe 100644 (file)
@@ -1,9 +1,15 @@
-String cron_string = BRANCH_NAME == "trunk" ? "10 3 * * *" : ""
+String cron_string = BRANCH_NAME == "master" ? "10 3 * * *" : ""
 
 
 pipeline {
   agent {
     kubernetes agentsetup(containers: 'java8') 
+    buildDiscarder(logRotator(
+            numToKeepStr: '5',            // Number of build records to keep
+            artifactNumToKeepStr: '3',    // Number of builds for which to keep artifacts
+            daysToKeepStr: '30',          // Days to keep builds
+            artifactDaysToKeepStr: '15'   // Days to keep artifacts
+        ))
   }
   options {
     disableConcurrentBuilds()