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}'
122 - fix-workspace-permissions
125 - description-setter:
126 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
128 - project: 'xci-deploy-{pod}-{distro}-daily-{stream}'
129 current-parameters: false
130 predefined-parameters: |
131 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
132 INSTALLER_TYPE=$INSTALLER_TYPE
133 XCI_FLAVOR=$XCI_FLAVOR
139 - project: 'xci-functest-{pod}-{distro}-daily-{stream}'
140 current-parameters: false
141 predefined-parameters: |
142 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
143 INSTALLER_TYPE=$INSTALLER_TYPE
144 XCI_FLAVOR=$XCI_FLAVOR
147 FUNCTEST_MODE=$FUNCTEST_MODE
148 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
152 build-step-failure-threshold: 'never'
153 failure-threshold: 'never'
154 unstable-threshold: 'FAILURE'
157 # yamllint disable rule:line-length
158 # yamllint enable rule:line-length
159 - email-jenkins-admins-on-failure
170 - shell: !include-raw: ./xci-cleanup.sh
171 mark-unstable-if-failed: true
174 name: 'xci-{phase}-{pod}-{distro}-daily-{stream}'
182 use-build-blocker: true
187 - '^bifrost-.*periodic.*'
188 - '^osa-.*periodic.*'
197 - fix-workspace-permissions
205 branch: '{opnfv-releng-version}'
207 name: DEPLOY_SCENARIO
208 default: 'os-nosdn-nofeature-noha'
220 default: '{slave-label}'
225 name: FUNCTEST_SUITE_NAME
226 default: 'healthcheck'
232 default: https://gerrit.opnfv.org/gerrit/$PROJECT
235 - description-setter:
236 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
237 - 'xci-daily-{phase}-macro'
239 # --------------------------
241 # --------------------------
243 name: 'xci-daily-deploy-macro'
250 cd $WORKSPACE/xci && ./xci-deploy.sh
253 name: 'xci-daily-functest-macro'
260 echo "Prepare OPNFV VM for Functest"
261 echo "---------------------------------------------------------------------------------"
262 export XCI_PATH=$WORKSPACE
263 export XCI_VENV=${XCI_PATH}/venv
264 source $XCI_VENV/bin/activate
266 declare -x "\${var}" 2>/dev/null
268 done < ${XCI_PATH}/.cache/xci.env && cd $XCI_PATH/xci && \
269 ansible-playbook -i playbooks/dynamic_inventory.py playbooks/prepare-functest.yml
272 echo "---------------------------------------------------------------------------------"
273 ssh root@192.168.122.2 "/root/run-functest.sh"