-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()