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'
25 auto-trigger-name: 'daily-trigger-disabled'
26 deploy-scenario: 'os-odl-sfc'
30 # -------------------------------
32 # -------------------------------
37 # -------------------------------
39 # -------------------------------
43 slave-label: xci-virtual
46 slave-label: xci-virtual
49 slave-label: xci-virtual
51 # -------------------------------
53 # -------------------------------
58 # -------------------------------
60 # -------------------------------
62 - 'xci-{scenario}-{pod}-{distro}-daily-{stream}'
63 - 'xci-{phase}-{pod}-{distro}-daily-{stream}'
65 # -------------------------------
67 # -------------------------------
69 name: 'xci-{scenario}-{pod}-{distro}-daily-{stream}'
71 disabled: '{obj:disabled}'
77 use-build-blocker: true
83 - '^bifrost-.*periodic.*'
91 default: '{deploy-scenario}'
94 default: '{installer-type}'
97 default: '{xci-flavor}'
100 default: '{slave-label}'
108 name: FUNCTEST_SUITE_NAME
109 default: 'healthcheck'
115 default: https://gerrit.opnfv.org/gerrit/$PROJECT
116 description: 'Git URL to use on this Jenkins Slave'
119 - '{auto-trigger-name}'
125 - fix-workspace-permissions
128 - description-setter:
129 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
131 - project: 'xci-deploy-{pod}-{distro}-daily-{stream}'
132 current-parameters: false
133 predefined-parameters: |
134 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
135 INSTALLER_TYPE=$INSTALLER_TYPE
136 XCI_FLAVOR=$XCI_FLAVOR
138 XCI_DISTRO=$XCI_DISTRO
142 - project: 'xci-functest-{pod}-{distro}-daily-{stream}'
143 current-parameters: false
144 predefined-parameters: |
145 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
146 INSTALLER_TYPE=$INSTALLER_TYPE
147 XCI_FLAVOR=$XCI_FLAVOR
149 XCI_DISTRO=$XCI_DISTRO
150 FUNCTEST_MODE=$FUNCTEST_MODE
151 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
155 build-step-failure-threshold: 'never'
156 failure-threshold: 'never'
157 unstable-threshold: 'FAILURE'
160 # yamllint disable rule:line-length
161 # yamllint enable rule:line-length
162 - email-jenkins-admins-on-failure
165 name: 'xci-{phase}-{pod}-{distro}-daily-{stream}'
173 use-build-blocker: true
178 - '^bifrost-.*periodic.*'
179 - '^osa-.*periodic.*'
191 - fix-workspace-permissions
199 branch: '{opnfv-releng-version}'
201 name: DEPLOY_SCENARIO
202 default: 'os-nosdn-nofeature-noha'
214 default: '{slave-label}'
219 name: FUNCTEST_SUITE_NAME
220 default: 'healthcheck'
226 default: https://gerrit.opnfv.org/gerrit/$PROJECT
229 - description-setter:
230 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
231 - 'xci-daily-{phase}-macro'
233 # --------------------------
235 # --------------------------
237 name: 'xci-daily-deploy-macro'
244 cd $WORKSPACE/xci && ./xci-deploy.sh
247 name: 'xci-daily-functest-macro'
254 echo "Prepare OPNFV VM for Functest"
255 echo "---------------------------------------------------------------------------------"
256 export XCI_PATH=$WORKSPACE
257 export XCI_VENV=${XCI_PATH}/venv
258 source $XCI_VENV/bin/activate
260 declare -x "\${var}" 2>/dev/null
262 done < ${XCI_PATH}/.cache/xci.env && cd $XCI_PATH/xci && \
263 ansible-playbook -i playbooks/dynamic_inventory.py playbooks/prepare-functest.yml
266 echo "---------------------------------------------------------------------------------"
267 ssh root@192.168.122.2 "/root/run-functest.sh"