Keep artifacts for 1 day 70/53570/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 20 Mar 2017 16:16:39 +0000 (12:16 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 20 Mar 2017 16:16:41 +0000 (12:16 -0400)
Limiting artifacts to 5 artifacts per job is too strict as for fast
moving jobs the artifact could clear before the developer has a chance
to even look at it. This makes the artifact stick around for at least
one day before clearing the artifact.

Change-Id: I9a9dba476c055c17f9ee8275ebedeacdc2cf4960
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/releng-macros.yaml

index b8a62a0a5351ea4d18d31d7a6e3df74bd07eda25..feec0b651ba2d635f2803c6a636d26d551dbdb88 100644 (file)
@@ -6,8 +6,11 @@
       - build-discarder:
           days-to-keep: '{build-days-to-keep}'
           num-to-keep: 40
-          artifact-days-to-keep: -1
-          artifact-num-to-keep: 5
+          # Need to keep artifacts for at least 1 day as some projects need to
+          # be able to validate their artifacts and only allowing limited
+          # number of artifacts could make fast moving jobs lost their
+          # artifacts before the developers can test it.
+          artifact-days-to-keep: 1
 
 - parameter:
     name: opendaylight-infra-parameters