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 # -------------------------------
103 # -------------------------------
105 # -------------------------------
107 - 'xci-{scenario}-{pod}-{distro}-daily-{stream}'
108 - 'xci-{phase}-{pod}-{distro}-daily-{stream}'
110 # -------------------------------
112 # -------------------------------
114 name: 'xci-{scenario}-{pod}-{distro}-daily-{stream}'
116 disabled: '{obj:disabled}'
122 use-build-blocker: true
130 - '^bifrost-.*periodic.*'
131 - '^osa-.*periodic.*'
137 name: DEPLOY_SCENARIO
138 default: '{deploy-scenario}'
141 default: '{installer-type}'
144 default: '{xci-flavor}'
147 default: '{slave-label}'
155 name: FUNCTEST_SUITE_NAME
156 default: 'healthcheck'
162 default: https://gerrit.opnfv.org/gerrit/$PROJECT
163 description: 'Git URL to use on this Jenkins Slave'
166 - '{auto-trigger-name}'
172 - fix-workspace-permissions
175 - description-setter:
176 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
178 - project: 'xci-deploy-{pod}-{distro}-daily-{stream}'
179 current-parameters: false
180 predefined-parameters: |
181 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
182 INSTALLER_TYPE=$INSTALLER_TYPE
183 XCI_FLAVOR=$XCI_FLAVOR
185 XCI_DISTRO=$XCI_DISTRO
189 - project: 'xci-functest-{pod}-{distro}-daily-{stream}'
190 current-parameters: false
191 predefined-parameters: |
192 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
193 INSTALLER_TYPE=$INSTALLER_TYPE
194 XCI_FLAVOR=$XCI_FLAVOR
196 XCI_DISTRO=$XCI_DISTRO
197 FUNCTEST_MODE=$FUNCTEST_MODE
198 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
202 build-step-failure-threshold: 'never'
203 failure-threshold: 'never'
204 unstable-threshold: 'FAILURE'
207 # yamllint disable rule:line-length
208 # yamllint enable rule:line-length
209 - email-jenkins-admins-on-failure
212 name: 'xci-{phase}-{pod}-{distro}-daily-{stream}'
220 use-build-blocker: true
226 - '^bifrost-.*periodic.*'
227 - '^osa-.*periodic.*'
239 - fix-workspace-permissions
247 branch: '{opnfv-releng-version}'
249 name: DEPLOY_SCENARIO
250 default: 'os-nosdn-nofeature-noha'
262 default: '{slave-label}'
267 name: FUNCTEST_SUITE_NAME
268 default: 'healthcheck'
274 default: https://gerrit.opnfv.org/gerrit/$PROJECT
277 - description-setter:
278 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
279 - 'xci-daily-{phase}-macro'
281 # --------------------------
283 # --------------------------
284 # These need to be properly fixed once the basic deployment and functest
285 # jobs are working outside of clean vm.
286 # One of the ugly fixes is moving functest preparation step into the
287 # deployment job itself since functest preparation requires some of the
288 # things from deployment job. With clean VM, this wasn't an issue
289 # since everything was on clean VM. When we move things out of clean
290 # VM, things are done in workspaces of the jobs that are different.
292 # Apart from these things, we will need to go through the scripts
293 # used for verify jobs and make them updated in order to be able to
294 # use them for jobs that don't use clean VM.
296 name: 'xci-daily-deploy-macro'
303 echo "Cleaning the leftovers from the earlier run"
304 echo "---------------------------------------------------------------------------------"
305 for vm in $(sudo virsh list --all --name | grep -v xci_vm); do
307 sudo virsh destroy $vm > /dev/null 2>&1 || true
308 sudo virsh undefine $vm > /dev/null 2>&1 || true
310 echo "---------------------------------------------------------------------------------"
312 cd $WORKSPACE/xci && ./xci-deploy.sh
314 echo "Prepare OPNFV VM for Functest"
315 echo "---------------------------------------------------------------------------------"
316 export XCI_PATH=$WORKSPACE
317 export XCI_VENV=${XCI_PATH}/venv
318 source $XCI_VENV/bin/activate
320 declare -x "\${var}" 2>/dev/null
322 done < ${XCI_PATH}/.cache/xci.env && cd ${XCI_PATH}/xci && \
323 ansible-playbook -i playbooks/dynamic_inventory.py playbooks/prepare-tests.yml
326 echo "---------------------------------------------------------------------------------"
329 name: 'xci-daily-functest-macro'
336 ssh root@192.168.122.2 "/root/run-functest.sh"