Discard old builds
[infra/cicd.git] / jjb / global / jjb-macros.yaml
index a14b0577f54f1264c4d06046bdedcac0e06dd36c..9630a91753560a8999cbfd9ddcd0d78d8b9c03b3 100644 (file)
           room: '{slack-channel}'
           notify-failure: True
           notify-back-to-normal: True
+
+# property to discard old builds
+- property:
+    name: logrotate
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 100
+          artifact-days-to-keep: 30
+          artifact-num-to-keep: 100