7 - 'prune-docker-images'
8 - 'archive-repositories'
9 - 'check-status-of-slaves'
10 - 'ansible-build-server'
11 - 'generate-artifacts-index-pages'
13 ########################
15 ########################
17 name: 'prune-docker-images'
26 description: Slaves to prune docker images
34 allowed-multiselect: true
35 ignore-offline-nodes: true
39 description: "Built on $NODE_NAME"
40 # yamllint disable rule:line-length
43 sudo systemctl restart docker
44 (docker ps -q; docker ps -aq) | sort | uniq -u | xargs --no-run-if-empty docker rm
45 docker images -f dangling=true -q | xargs --no-run-if-empty docker rmi
48 # yamllint enable rule:line-length
53 name: 'archive-repositories'
62 description: Where to create the archive
65 allowed-multiselect: false
66 ignore-offline-nodes: true
73 !include-raw-escape: opnfv-repo-archiver.sh
81 ${{FILE,path="archive-link.txt"}}
85 tbramwell@linuxfoundation.org
86 swinslow@linuxfoundation.org
90 name: 'check-status-of-slaves'
98 description: 'script lives on master node'
101 allowed-multiselect: false
102 ignore-offline-nodes: true
116 bash slave-monitor-0.1.sh
119 name: 'ansible-build-server'
121 project-type: freestyle
129 description: Build Servers
136 allowed-multiselect: true
137 ignore-offline-nodes: true
149 - description-setter:
150 description: '$NODE_NAME'
152 - run-ansible-build-server-playbook
156 name: install-ansible
159 # Install ansible here
160 if [ -f /etc/centos-release ] \
161 || [ -f /etc/redhat-release ] \
162 || [ -f /etc/system-release ]; then
163 sudo yum -y install ansible
165 if [ -f /etc/debian_version ] \
166 || grep -qi ubuntu /etc/lsb-release \
167 || grep -qi ubuntu /etc/os-release; then
168 sudo apt-get -y install ansible
173 name: run-ansible-build-server-playbook
177 sudo ansible-playbook -i \
178 $WORKSPACE/utils/build-server-ansible/inventory.ini \
179 $WORKSPACE/utils/build-server-ansible/main.yml
183 name: 'generate-artifacts-index-pages'
185 project-type: freestyle
194 description: Build Servers
208 - generate-artifact-html
212 name: generate-artifact-html
216 ./artifacts.opnfv.org.sh