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
32 allowed-multiselect: true
33 ignore-offline-nodes: true
37 description: "Built on $NODE_NAME"
38 # yamllint disable rule:line-length
41 sudo systemctl restart docker
42 (docker ps -q; docker ps -aq) | sort | uniq -u | xargs --no-run-if-empty docker rm
43 docker images -f dangling=true -q | xargs --no-run-if-empty docker rmi
46 # yamllint enable rule:line-length
51 name: 'check-status-of-slaves'
59 description: 'script lives on master node'
62 allowed-multiselect: false
63 ignore-offline-nodes: true
77 bash slave-monitor-0.1.sh
80 name: 'ansible-build-server'
82 project-type: freestyle
90 description: Build Servers
96 allowed-multiselect: true
97 ignore-offline-nodes: true
109 - description-setter:
110 description: '$NODE_NAME'
112 - run-ansible-build-server-playbook
116 name: install-ansible
119 # Install ansible here
120 if [ -f /etc/centos-release ] \
121 || [ -f /etc/redhat-release ] \
122 || [ -f /etc/system-release ]; then
123 sudo yum -y install ansible
125 if [ -f /etc/debian_version ] \
126 || grep -qi ubuntu /etc/lsb-release \
127 || grep -qi ubuntu /etc/os-release; then
128 sudo apt-get -y install ansible
133 name: run-ansible-build-server-playbook
137 sudo ansible-playbook -i \
138 $WORKSPACE/utils/build-server-ansible/inventory.ini \
139 $WORKSPACE/utils/build-server-ansible/main.yml
143 name: 'generate-artifacts-index-pages'
145 project-type: freestyle
154 description: Build Servers
168 - generate-artifact-html
172 name: generate-artifact-html
176 ./artifacts.opnfv.org.sh