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
84 - '^bifrost-.*periodic.*'
92 default: '{deploy-scenario}'
95 default: '{installer-type}'
98 default: '{xci-flavor}'
101 default: '{slave-label}'
109 name: FUNCTEST_SUITE_NAME
110 default: 'healthcheck'
116 default: https://gerrit.opnfv.org/gerrit/$PROJECT
117 description: 'Git URL to use on this Jenkins Slave'
120 - '{auto-trigger-name}'
126 - fix-workspace-permissions
129 - description-setter:
130 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
132 - project: 'xci-deploy-{pod}-{distro}-daily-{stream}'
133 current-parameters: false
134 predefined-parameters: |
135 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
136 INSTALLER_TYPE=$INSTALLER_TYPE
137 XCI_FLAVOR=$XCI_FLAVOR
139 XCI_DISTRO=$XCI_DISTRO
143 - project: 'xci-functest-{pod}-{distro}-daily-{stream}'
144 current-parameters: false
145 predefined-parameters: |
146 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
147 INSTALLER_TYPE=$INSTALLER_TYPE
148 XCI_FLAVOR=$XCI_FLAVOR
150 XCI_DISTRO=$XCI_DISTRO
151 FUNCTEST_MODE=$FUNCTEST_MODE
152 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
156 build-step-failure-threshold: 'never'
157 failure-threshold: 'never'
158 unstable-threshold: 'FAILURE'
161 # yamllint disable rule:line-length
162 # yamllint enable rule:line-length
163 - email-jenkins-admins-on-failure
166 name: 'xci-{phase}-{pod}-{distro}-daily-{stream}'
174 use-build-blocker: true
180 - '^bifrost-.*periodic.*'
181 - '^osa-.*periodic.*'
193 - fix-workspace-permissions
201 branch: '{opnfv-releng-version}'
203 name: DEPLOY_SCENARIO
204 default: 'os-nosdn-nofeature-noha'
216 default: '{slave-label}'
221 name: FUNCTEST_SUITE_NAME
222 default: 'healthcheck'
228 default: https://gerrit.opnfv.org/gerrit/$PROJECT
231 - description-setter:
232 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
233 - 'xci-daily-{phase}-macro'
235 # --------------------------
237 # --------------------------
238 # These need to be properly fixed once the basic deployment and functest
239 # jobs are working outside of clean vm.
240 # One of the ugly fixes is moving functest preparation step into the
241 # deployment job itself since functest preparation requires some of the
242 # things from deployment job. With clean VM, this wasn't an issue
243 # since everything was on clean VM. When we move things out of clean
244 # VM, things are done in workspaces of the jobs that are different.
246 # Apart from these things, we will need to go through the scripts
247 # used for verify jobs and make them updated in order to be able to
248 # use them for jobs that don't use clean VM.
250 name: 'xci-daily-deploy-macro'
257 cd $WORKSPACE/xci && ./xci-deploy.sh
259 echo "Prepare OPNFV VM for Functest"
260 echo "---------------------------------------------------------------------------------"
261 export XCI_PATH=$WORKSPACE
262 export XCI_VENV=${XCI_PATH}/venv
263 source $XCI_VENV/bin/activate
265 declare -x "\${var}" 2>/dev/null
267 done < ${XCI_PATH}/.cache/xci.env && cd ${XCI_PATH}/xci && \
268 ansible-playbook -i playbooks/dynamic_inventory.py playbooks/prepare-functest.yml
271 echo "---------------------------------------------------------------------------------"
274 name: 'xci-daily-functest-macro'
281 ssh root@192.168.122.2 "/root/run-functest.sh"