Merge "Add missing hiera vars for bifrost"
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 3 Oct 2016 12:03:36 +0000 (12:03 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Mon, 3 Oct 2016 12:03:36 +0000 (12:03 +0000)
jjb/opnfv/opnfv-utils.yml [new file with mode: 0644]

diff --git a/jjb/opnfv/opnfv-utils.yml b/jjb/opnfv/opnfv-utils.yml
new file mode 100644 (file)
index 0000000..94a99d4
--- /dev/null
@@ -0,0 +1,40 @@
+- project:
+
+    name: opnfv-utils
+
+    jobs:
+        - 'prune-docker-images'
+########################
+# job templates
+########################
+- job-template:
+    name: 'prune-docker-images'
+
+    disabled: false
+
+    concurrent: true
+
+    parameters:
+        - node:
+            name: SLAVE_NAME
+            description: Slaves to prune docker images
+            default-slaves:
+                - arm-build1
+                - arm-build2
+                - ericsson-build4
+                - ericsson-build5
+                - lf-build2
+            allowed-multiselect: true
+            ignore-offline-nodes: true
+
+    builders:
+        - description-setter:
+            description: "Built on $NODE_NAME"
+        - shell: |
+            #!/bin/bash
+
+            (docker ps -q; docker ps -aq) | sort | uniq -u | xargs --no-run-if-empty docker rm
+            docker images -f dangling=true -q | xargs --no-run-if-empty docker rmi
+
+    triggers:
+        - timed: '@midnight'