blob: 6f77cd250366295bc801dd02fe4ec757b6fe2605 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
---
- project:
name: opnfv-utils
jobs:
- 'prune-docker-images'
- 'archive-repositories'
- 'check-status-of-slaves'
########################
# 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-build3
- ericsson-build4
- 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'
- job-template:
name: 'archive-repositories'
disabled: false
concurrent: true
parameters:
- node:
name: SLAVE_NAME
description: Where to create the archive
default-slaves:
- master
allowed-multiselect: false
ignore-offline-nodes: true
triggers:
- timed: '@monthly'
builders:
- shell:
!include-raw-escape: opnfv-repo-archiver.sh
publishers:
- email-ext:
content-type: 'text'
failure: false
always: true
body:
${{FILE,path="archive-link.txt"}}
reply-to: >
helpdesk@opnfv.org
recipients: >
swinslow@linuxfoundation.org
- job-template:
name: 'check-status-of-slaves'
disabled: false
concurrent: true
parameters:
- node:
name: SLAVE_NAME
description: We don't want workspace wiped. so I just threw the script on the master
default-slaves:
- master
allowed-multiselect: false
ignore-offline-nodes: true
triggers:
- timed: '@midnight'
builders:
- shell: |
cd /opt/jenkins-ci/slavemonitor
bash slave-monitor-0.1.sh | sort
|