blob: 717bb3cbce8b2a358af32a6f82ae9a8964d267a4 (
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
39
|
- 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-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'
|