From: Erik Brakkee Date: Sun, 3 Nov 2024 11:49:46 +0000 (+0100) Subject: less retention of builds, builds were not running before but should not X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=347a6500879beba8d4d148bdc575c627795a31b8;p=utils less retention of builds, builds were not running before but should not run daily --- 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()