7 # -------------------------------
9 # -------------------------------
12 opnfv-releng-version: master
15 # -------------------------------
17 # -------------------------------
19 - 'os-nosdn-nofeature-noha':
20 deploy-scenario: 'os-nosdn-nofeature'
23 - 'os-nosdn-osm-noha':
24 deploy-scenario: 'os-nosdn-osm'
27 - 'os-odl-nofeature-noha':
28 deploy-scenario: 'os-odl-nofeature'
31 - 'os-odl-bgpvpn-noha':
32 deploy-scenario: 'os-odl-bgpvpn'
36 deploy-scenario: 'os-odl-sfc'
39 - 'k8-nosdn-nofeature-noha':
40 deploy-scenario: 'k8-nosdn-nofeature'
41 installer-type: 'kubespray'
43 - 'k8-canal-nofeature-noha':
44 deploy-scenario: 'k8-canal-nofeature'
45 installer-type: 'kubespray'
47 - 'k8-calico-nofeature-noha':
48 deploy-scenario: 'k8-calico-nofeature'
49 installer-type: 'kubespray'
51 - 'k8-contiv-nofeature-noha':
52 deploy-scenario: 'k8-contiv-nofeature'
53 installer-type: 'kubespray'
55 - 'k8-flannel-nofeature-noha':
56 deploy-scenario: 'k8-flannel-nofeature'
57 installer-type: 'kubespray'
59 - 'k8-nosdn-istio-noha':
60 deploy-scenario: 'k8-nosdn-istio'
61 installer-type: 'kubespray'
64 # -------------------------------
66 # -------------------------------
71 # -------------------------------
73 # -------------------------------
77 slave-label: xci-virtual
80 slave-label: xci-virtual
83 slave-label: xci-virtual
85 # -------------------------------
87 # -------------------------------
93 # -------------------------------
95 # -------------------------------
97 - 'xci-{scenario}-{pod}-{distro}-daily-{stream}'
98 - 'xci-{phase}-{pod}-{distro}-daily-{stream}'
100 # -------------------------------
102 # -------------------------------
104 name: 'xci-{scenario}-{pod}-{distro}-daily-{stream}'
106 disabled: '{obj:disabled}'
112 use-build-blocker: true
120 - '^bifrost-.*periodic.*'
121 - '^osa-.*periodic.*'
122 blocking-level: 'NODE'
130 name: DEPLOY_SCENARIO
131 default: '{deploy-scenario}'
134 default: '{installer-type}'
137 default: '{xci-flavor}'
140 default: '{slave-label}'
142 node-eligibility: 'ignore-offline'
147 name: FUNCTEST_VERSION
153 name: FUNCTEST_SUITE_NAME
160 default: https://gerrit.opnfv.org/gerrit/$PROJECT
161 description: 'Git URL to use on this Jenkins Slave'
167 - fix-workspace-permissions
170 - description-setter:
171 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
173 - project: 'xci-deploy-{pod}-{distro}-daily-{stream}'
174 current-parameters: false
175 predefined-parameters: |
176 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
177 INSTALLER_TYPE=$INSTALLER_TYPE
178 XCI_FLAVOR=$XCI_FLAVOR
180 XCI_DISTRO=$XCI_DISTRO
181 FUNCTEST_VERSION=$FUNCTEST_VERSION
182 FUNCTEST_MODE=$FUNCTEST_MODE
183 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
187 - project: 'xci-functest-{pod}-{distro}-daily-{stream}'
188 current-parameters: false
189 predefined-parameters: |
190 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
191 INSTALLER_TYPE=$INSTALLER_TYPE
192 XCI_FLAVOR=$XCI_FLAVOR
194 XCI_DISTRO=$XCI_DISTRO
195 FUNCTEST_VERSION=$FUNCTEST_VERSION
196 FUNCTEST_MODE=$FUNCTEST_MODE
197 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
201 build-step-failure-threshold: 'never'
202 failure-threshold: 'never'
203 unstable-threshold: 'FAILURE'
205 - project: 'xci-yardstick-{pod}-{distro}-daily-{stream}'
206 current-parameters: false
207 predefined-parameters: |
208 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
209 INSTALLER_TYPE=$INSTALLER_TYPE
210 XCI_FLAVOR=$XCI_FLAVOR
212 XCI_DISTRO=$XCI_DISTRO
216 build-step-failure-threshold: 'never'
217 failure-threshold: 'never'
218 unstable-threshold: 'FAILURE'
221 # yamllint disable rule:line-length
222 # yamllint enable rule:line-length
223 - email-jenkins-admins-on-failure
226 name: 'xci-{phase}-{pod}-{distro}-daily-{stream}'
234 use-build-blocker: true
240 - '^bifrost-.*periodic.*'
241 - '^osa-.*periodic.*'
242 blocking-level: 'NODE'
253 - fix-workspace-permissions
261 branch: '{opnfv-releng-version}'
263 name: DEPLOY_SCENARIO
264 default: 'os-nosdn-nofeature-noha'
276 default: '{slave-label}'
278 node-eligibility: 'ignore-offline'
280 name: FUNCTEST_VERSION
286 name: FUNCTEST_SUITE_NAME
293 default: https://gerrit.opnfv.org/gerrit/$PROJECT
296 - description-setter:
297 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
298 - 'xci-daily-{phase}-macro'
300 # --------------------------
302 # --------------------------
303 # These need to be properly fixed once the basic deployment, functest, and
304 # yardstick jobs are working outside of clean vm.
305 # One of the ugly fixes is moving test preparation step into the
306 # deployment job itself since test preparation requires some of the
307 # things from deployment job. With clean VM, this wasn't an issue
308 # since everything was on clean VM. When we move things out of clean
309 # VM, things are done in workspaces of the jobs that are different.
311 # Apart from these things, we will need to go through the scripts
312 # used for verify jobs and make them updated in order to be able to
313 # use them for jobs that don't use clean VM.
315 name: 'xci-daily-deploy-macro'
322 echo "Cleaning the leftovers from the earlier run"
323 echo "---------------------------------------------------------------------------------"
324 for vm in $(sudo virsh list --all --name | grep -v xci_vm); do
326 sudo virsh destroy $vm > /dev/null 2>&1 || true
327 sudo virsh undefine $vm > /dev/null 2>&1 || true
328 sudo killall -r vbmc > /dev/null 2>&1 || true
329 sudo rm -rf /root/.vbmc > /dev/null 2>&1 || true
331 echo "---------------------------------------------------------------------------------"
333 cd $WORKSPACE/xci && ./xci-deploy.sh
335 echo "Prepare OPNFV VM for Tests"
336 echo "---------------------------------------------------------------------------------"
337 export XCI_PATH=$WORKSPACE
338 export XCI_VENV=${XCI_PATH}/venv
339 source $XCI_VENV/bin/activate
341 declare -x "\${var}" 2>/dev/null
343 done < ${XCI_PATH}/.cache/xci.env && cd ${XCI_PATH}/xci && \
344 ansible-playbook -i playbooks/dynamic_inventory.py playbooks/prepare-tests.yml
345 ssh root@192.168.122.2 "/root/prepare-tests.sh"
346 echo "---------------------------------------------------------------------------------"
349 name: 'xci-daily-functest-macro'
355 ssh root@192.168.122.2 "/root/run-functest.sh"
358 case ${DEPLOY_SCENARIO[0]} in
360 FUNCTEST_LOG=/root/functest-results/functest.log
363 FUNCTEST_LOG=/root/functest-results/functest-kubernetes.log
366 echo "Unable to determine the installer. Exiting!"
372 echo "---------------------------------------------------------------------------------"
373 ssh root@192.168.122.2 "cat $FUNCTEST_LOG"
374 echo "---------------------------------------------------------------------------------"
375 exit ${functest_exit}
377 name: 'xci-daily-yardstick-macro'
384 ssh root@192.168.122.2 "/root/run-yardstick.sh"