From 347a6500879beba8d4d148bdc575c627795a31b8 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Sun, 3 Nov 2024 12:49:46 +0100 Subject: [PATCH] less retention of builds, builds were not running before but should not run daily --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 13ad14a6..413811dc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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() -- 2.31.1