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
157 default: 'healthcheck'
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
190 - project: 'xci-functest-{pod}-{distro}-daily-{stream}'
191 current-parameters: false
192 predefined-parameters: |
193 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
194 INSTALLER_TYPE=$INSTALLER_TYPE
195 XCI_FLAVOR=$XCI_FLAVOR
197 XCI_DISTRO=$XCI_DISTRO
198 FUNCTEST_MODE=$FUNCTEST_MODE
199 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
203 build-step-failure-threshold: 'never'
204 failure-threshold: 'never'
205 unstable-threshold: 'FAILURE'
207 - project: 'xci-yardstick-{pod}-{distro}-daily-{stream}'
208 current-parameters: false
209 predefined-parameters: |
210 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
211 INSTALLER_TYPE=$INSTALLER_TYPE
212 XCI_FLAVOR=$XCI_FLAVOR
214 XCI_DISTRO=$XCI_DISTRO
218 build-step-failure-threshold: 'never'
219 failure-threshold: 'never'
220 unstable-threshold: 'FAILURE'
223 # yamllint disable rule:line-length
224 # yamllint enable rule:line-length
225 - email-jenkins-admins-on-failure
228 name: 'xci-{phase}-{pod}-{distro}-daily-{stream}'
236 use-build-blocker: true
242 - '^bifrost-.*periodic.*'
243 - '^osa-.*periodic.*'
255 - fix-workspace-permissions
263 branch: '{opnfv-releng-version}'
265 name: DEPLOY_SCENARIO
266 default: 'os-nosdn-nofeature-noha'
278 default: '{slave-label}'
283 name: FUNCTEST_SUITE_NAME
284 default: 'healthcheck'
290 default: https://gerrit.opnfv.org/gerrit/$PROJECT
293 - description-setter:
294 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
295 - 'xci-daily-{phase}-macro'
297 # --------------------------
299 # --------------------------
300 # These need to be properly fixed once the basic deployment, functest, and
301 # yardstick jobs are working outside of clean vm.
302 # One of the ugly fixes is moving test preparation step into the
303 # deployment job itself since test preparation requires some of the
304 # things from deployment job. With clean VM, this wasn't an issue
305 # since everything was on clean VM. When we move things out of clean
306 # VM, things are done in workspaces of the jobs that are different.
308 # Apart from these things, we will need to go through the scripts
309 # used for verify jobs and make them updated in order to be able to
310 # use them for jobs that don't use clean VM.
312 name: 'xci-daily-deploy-macro'
319 echo "Cleaning the leftovers from the earlier run"
320 echo "---------------------------------------------------------------------------------"
321 for vm in $(sudo virsh list --all --name | grep -v xci_vm); do
323 sudo virsh destroy $vm > /dev/null 2>&1 || true
324 sudo virsh undefine $vm > /dev/null 2>&1 || true
326 echo "---------------------------------------------------------------------------------"
328 cd $WORKSPACE/xci && ./xci-deploy.sh
330 echo "Prepare OPNFV VM for Tests"
331 echo "---------------------------------------------------------------------------------"
332 export XCI_PATH=$WORKSPACE
333 export XCI_VENV=${XCI_PATH}/venv
334 source $XCI_VENV/bin/activate
336 declare -x "\${var}" 2>/dev/null
338 done < ${XCI_PATH}/.cache/xci.env && cd ${XCI_PATH}/xci && \
339 ansible-playbook -i playbooks/dynamic_inventory.py playbooks/prepare-tests.yml
340 ssh root@192.168.122.2 "/root/prepare-tests.sh"
341 echo "---------------------------------------------------------------------------------"
344 name: 'xci-daily-functest-macro'
351 ssh root@192.168.122.2 "/root/run-functest.sh"
353 name: 'xci-daily-yardstick-macro'
360 ssh root@192.168.122.2 "/root/run-yardstick.sh"