diff --git a/Jenkinsfile b/Jenkinsfile index fc11bb3299ea..fe54ebc814fd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,6 +17,9 @@ */ properties([ + // For master keep all builds for one year + // For other branches/PRs keep at most 5 builds for at most two months + buildDiscarder(logRotator(daysToKeepStr: env.BRANCH_NAME=='master'?'365':'60', numToKeepStr: env.BRANCH_NAME=='master'?'':'5')) // max 5 build/branch/day rateLimitBuilds(throttle: [count: 5, durationName: 'day', userBoost: true]), // do not run multiple testruns on the same branch