tf-a-artifacts-cleanup: First cut at job to progressively cleanup artifacts

The general and forward-looking idea is to gradually archive/delete more
and more of build's artifacts as it ages, while still accessing the build
and remaining (e.g. more important) artifacts over longer period of time,
e.g. to investigate issues or perform comparisons.

The initial version of the job just compresses tf-a-builder's build logs
older then 6 days.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Iee682916db3efac5336416b22f4aa8fbf437a989
diff --git a/tf-a-artifacts-cleanup.yaml b/tf-a-artifacts-cleanup.yaml
new file mode 100644
index 0000000..1d9ea29
--- /dev/null
+++ b/tf-a-artifacts-cleanup.yaml
@@ -0,0 +1,24 @@
+- job:
+    name: tf-a-artifacts-cleanup
+    node: master
+    project-type: freestyle
+    concurrent: true
+    disabled: false
+    defaults: global
+    Description: |
+      Gradually cleanup artifacts in TF-A builds
+    properties:
+        - build-discarder:
+            days-to-keep: 50
+            num-to-keep: 50
+        - authorization:
+            !include: authorization.yaml.inc
+    triggers:
+        - timed: 'H 0 * * *'
+    wrappers:
+        - timestamps
+    builders:
+        - shell: |
+            #!/bin/bash
+
+            find /var/lib/jenkins/jobs/tf-a-builder/builds -name build.log -mtime +6 | head -n100 | xargs -i -n1 bash -c "echo {}; gzip -9 {}"