7 # -------------------------------
9 # -------------------------------
12 opnfv-releng-version: master
15 # -------------------------------
17 # -------------------------------
19 - 'os-nosdn-nofeature-noha':
20 auto-trigger-name: 'daily-trigger-disabled'
21 deploy-scenario: 'os-nosdn-nofeature'
24 - 'os-nosdn-osm-noha':
25 auto-trigger-name: 'daily-trigger-disabled'
26 deploy-scenario: 'os-nosdn-osm'
29 - 'os-odl-nofeature-noha':
30 auto-trigger-name: 'daily-trigger-disabled'
31 deploy-scenario: 'os-odl-nofeature'
34 - 'os-odl-bgpvpn-noha':
35 auto-trigger-name: 'daily-trigger-disabled'
36 deploy-scenario: 'os-odl-bgpvpn'
40 auto-trigger-name: 'daily-trigger-disabled'
41 deploy-scenario: 'os-odl-sfc'
44 - 'k8-nosdn-nofeature-noha':
45 auto-trigger-name: 'daily-trigger-disabled'
46 deploy-scenario: 'k8-nosdn-nofeature'
47 installer-type: 'kubespray'
49 - 'k8-canal-nofeature-noha':
50 auto-trigger-name: 'daily-trigger-disabled'
51 deploy-scenario: 'k8-canal-nofeature'
52 installer-type: 'kubespray'
54 - 'k8-calico-nofeature-noha':
55 auto-trigger-name: 'daily-trigger-disabled'
56 deploy-scenario: 'k8-calico-nofeature'
57 installer-type: 'kubespray'
59 - 'k8-contiv-nofeature-noha':
60 auto-trigger-name: 'daily-trigger-disabled'
61 deploy-scenario: 'k8-contiv-nofeature'
62 installer-type: 'kubespray'
64 - 'k8-flannel-nofeature-noha':
65 auto-trigger-name: 'daily-trigger-disabled'
66 deploy-scenario: 'k8-flannel-nofeature'
67 installer-type: 'kubespray'
69 - 'k8-nosdn-istio-noha':
70 auto-trigger-name: 'daily-trigger-disabled'
71 deploy-scenario: 'k8-nosdn-istio'
72 installer-type: 'kubespray'
75 # -------------------------------
77 # -------------------------------
82 # -------------------------------
84 # -------------------------------
88 slave-label: xci-virtual
91 slave-label: xci-virtual
94 slave-label: xci-virtual
96 # -------------------------------
98 # -------------------------------
104 # -------------------------------
106 # -------------------------------
108 - 'xci-{scenario}-{pod}-{distro}-daily-{stream}'
109 - 'xci-{phase}-{pod}-{distro}-daily-{stream}'
111 # -------------------------------
113 # -------------------------------
115 name: 'xci-{scenario}-{pod}-{distro}-daily-{stream}'
117 disabled: '{obj:disabled}'
123 use-build-blocker: true
131 - '^bifrost-.*periodic.*'
132 - '^osa-.*periodic.*'
138 name: DEPLOY_SCENARIO
139 default: '{deploy-scenario}'
142 default: '{installer-type}'
145 default: '{xci-flavor}'
148 default: '{slave-label}'
156 name: FUNCTEST_SUITE_NAME
163 default: https://gerrit.opnfv.org/gerrit/$PROJECT
164 description: 'Git URL to use on this Jenkins Slave'
167 - '{auto-trigger-name}'
173 - fix-workspace-permissions
176 - description-setter:
177 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
179 - project: 'xci-deploy-{pod}-{distro}-daily-{stream}'
180 current-parameters: false
181 predefined-parameters: |
182 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
183 INSTALLER_TYPE=$INSTALLER_TYPE
184 XCI_FLAVOR=$XCI_FLAVOR
186 XCI_DISTRO=$XCI_DISTRO
187 FUNCTEST_MODE=$FUNCTEST_MODE
188 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
192 - project: 'xci-functest-{pod}-{distro}-daily-{stream}'
193 current-parameters: false
194 predefined-parameters: |
195 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
196 INSTALLER_TYPE=$INSTALLER_TYPE
197 XCI_FLAVOR=$XCI_FLAVOR
199 XCI_DISTRO=$XCI_DISTRO
200 FUNCTEST_MODE=$FUNCTEST_MODE
201 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
205 build-step-failure-threshold: 'never'
206 failure-threshold: 'never'
207 unstable-threshold: 'FAILURE'
209 - project: 'xci-yardstick-{pod}-{distro}-daily-{stream}'
210 current-parameters: false
211 predefined-parameters: |
212 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
213 INSTALLER_TYPE=$INSTALLER_TYPE
214 XCI_FLAVOR=$XCI_FLAVOR
216 XCI_DISTRO=$XCI_DISTRO
220 build-step-failure-threshold: 'never'
221 failure-threshold: 'never'
222 unstable-threshold: 'FAILURE'
225 # yamllint disable rule:line-length
226 # yamllint enable rule:line-length
227 - email-jenkins-admins-on-failure
230 name: 'xci-{phase}-{pod}-{distro}-daily-{stream}'
238 use-build-blocker: true
244 - '^bifrost-.*periodic.*'
245 - '^osa-.*periodic.*'
257 - fix-workspace-permissions
265 branch: '{opnfv-releng-version}'
267 name: DEPLOY_SCENARIO
268 default: 'os-nosdn-nofeature-noha'
280 default: '{slave-label}'
285 name: FUNCTEST_SUITE_NAME
292 default: https://gerrit.opnfv.org/gerrit/$PROJECT
295 - description-setter:
296 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
297 - 'xci-daily-{phase}-macro'
299 # --------------------------
301 # --------------------------
302 # These need to be properly fixed once the basic deployment, functest, and
303 # yardstick jobs are working outside of clean vm.
304 # One of the ugly fixes is moving test preparation step into the
305 # deployment job itself since test preparation requires some of the
306 # things from deployment job. With clean VM, this wasn't an issue
307 # since everything was on clean VM. When we move things out of clean
308 # VM, things are done in workspaces of the jobs that are different.
310 # Apart from these things, we will need to go through the scripts
311 # used for verify jobs and make them updated in order to be able to
312 # use them for jobs that don't use clean VM.
314 name: 'xci-daily-deploy-macro'
321 echo "Cleaning the leftovers from the earlier run"
322 echo "---------------------------------------------------------------------------------"
323 for vm in $(sudo virsh list --all --name | grep -v xci_vm); do
325 sudo virsh destroy $vm > /dev/null 2>&1 || true
326 sudo virsh undefine $vm > /dev/null 2>&1 || true
328 echo "---------------------------------------------------------------------------------"
330 cd $WORKSPACE/xci && ./xci-deploy.sh
332 echo "Prepare OPNFV VM for Tests"
333 echo "---------------------------------------------------------------------------------"
334 export XCI_PATH=$WORKSPACE
335 export XCI_VENV=${XCI_PATH}/venv
336 source $XCI_VENV/bin/activate
338 declare -x "\${var}" 2>/dev/null
340 done < ${XCI_PATH}/.cache/xci.env && cd ${XCI_PATH}/xci && \
341 ansible-playbook -i playbooks/dynamic_inventory.py playbooks/prepare-tests.yml
342 ssh root@192.168.122.2 "/root/prepare-tests.sh"
343 echo "---------------------------------------------------------------------------------"
346 name: 'xci-daily-functest-macro'
352 ssh root@192.168.122.2 "/root/run-functest.sh"
355 case ${DEPLOY_SCENARIO[0]} in
357 FUNCTEST_LOG=/root/functest-results/functest.log
360 FUNCTEST_LOG=/root/functest-results/functest-kubernetes.log
363 echo "Unable to determine the installer. Exiting!"
369 echo "---------------------------------------------------------------------------------"
370 ssh root@192.168.122.2 "cat $FUNCTEST_LOG"
371 echo "---------------------------------------------------------------------------------"
372 exit ${functest_exit}
374 name: 'xci-daily-yardstick-macro'
381 ssh root@192.168.122.2 "/root/run-yardstick.sh"