blob: df7d14a160b8cc9b0d2988b9ca18fab7c1b1ecff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
- 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:
- 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'
|