Reduce the number of builds to keep the artifacts.
authorKarl Heinz Marbaise <khmarbaise@apache.org>
Thu, 27 Dec 2018 19:08:42 +0000 (20:08 +0100)
committerKarl Heinz Marbaise <khmarbaise@apache.org>
Thu, 27 Dec 2018 19:11:36 +0000 (20:11 +0100)
Jenkinsfile

index 5ca0b9a..d3dd073 100644 (file)
@@ -21,9 +21,9 @@
 
 properties(
     [
-        buildDiscarder(logRotator(artifactDaysToKeepStr: env.BRANCH_NAME == 'master' ? '30' : '7',
-                                  artifactNumToKeepStr: '10',
-                                  daysToKeepStr: env.BRANCH_NAME == 'master' ? '30' : '7',
+        buildDiscarder(logRotator(artifactDaysToKeepStr: env.BRANCH_NAME == 'master' ? '5' : '1',
+                                  artifactNumToKeepStr: '5',
+                                  daysToKeepStr: env.BRANCH_NAME == 'master' ? '10' : '5',
                                   numToKeepStr: '10')
         ),
         disableConcurrentBuilds()