7 - 'prune-docker-images'
8 - 'check-status-of-slaves'
9 - 'ansible-build-server'
10 - 'generate-artifacts-index-pages'
12 ########################
14 ########################
16 name: 'prune-docker-images'
25 description: Slaves to prune docker images
29 allowed-multiselect: true
30 ignore-offline-nodes: true
34 description: "Built on $NODE_NAME"
35 # yamllint disable rule:line-length
38 sudo systemctl restart docker
39 (docker ps -q; docker ps -aq) | sort | uniq -u | xargs --no-run-if-empty docker rm
40 docker images -f dangling=true -q | xargs --no-run-if-empty docker rmi
43 # yamllint enable rule:line-length
48 name: 'check-status-of-slaves'
56 description: 'script lives on master node'
59 allowed-multiselect: false
60 ignore-offline-nodes: true
74 bash slave-monitor-0.1.sh
77 name: 'ansible-build-server'
79 project-type: freestyle
87 description: Build Servers
91 allowed-multiselect: true
92 ignore-offline-nodes: true
104 - description-setter:
105 description: '$NODE_NAME'
107 - run-ansible-build-server-playbook
111 name: install-ansible
114 # Install ansible here
115 if [ -f /etc/centos-release ] \
116 || [ -f /etc/redhat-release ] \
117 || [ -f /etc/system-release ]; then
118 sudo yum -y install ansible
120 if [ -f /etc/debian_version ] \
121 || grep -qi ubuntu /etc/lsb-release \
122 || grep -qi ubuntu /etc/os-release; then
123 sudo apt-get -y install ansible
128 name: run-ansible-build-server-playbook
132 sudo ansible-playbook -i \
133 $WORKSPACE/utils/build-server-ansible/inventory.ini \
134 $WORKSPACE/utils/build-server-ansible/main.yml
138 name: 'generate-artifacts-index-pages'
140 project-type: freestyle
149 description: Build Servers
163 - generate-artifact-html
167 name: generate-artifact-html
171 ./artifacts.opnfv.org.sh