2 name: 'opnfv-xci-verify'
5 #--------------------------------
7 #--------------------------------
11 #--------------------------------
13 #--------------------------------
24 #--------------------------------
26 #--------------------------------
29 #--------------------------------
30 # patch verification phases
31 #--------------------------------
35 #--------------------------------
37 #--------------------------------
39 - 'xci-verify-{distro}-{type}-{stream}'
40 - 'xci-verify-{phase}-{type}-{stream}'
41 #--------------------------------
43 #--------------------------------
45 name: 'xci-verify-{distro}-{type}-{stream}'
47 project-type: multijob
49 disabled: '{obj:disabled}'
56 use-build-blocker: true
58 - 'xci-verify-{distro}-.*'
59 - 'bifrost-verify-{distro}-.*'
60 - 'bifrost-periodic-{distro}-.*'
61 - 'osa-verify-{distro}-.*'
62 - 'osa-periodic-{distro}-.*'
69 - fix-workspace-permissions
76 server-name: 'gerrit.opnfv.org'
78 - patchset-created-event:
79 exclude-drafts: 'false'
80 exclude-trivial-rebase: 'false'
81 exclude-no-code-change: 'true'
82 - draft-published-event
83 - comment-added-contains-event:
84 comment-contains-value: 'recheck'
85 - comment-added-contains-event:
86 comment-contains-value: 'reverify'
88 - project-compare-type: 'ANT'
89 project-pattern: '{project}'
91 - branch-compare-type: 'ANT'
92 branch-pattern: '**/{branch}'
93 disable-strict-forbidden-file-verification: 'true'
101 pattern: 'prototypes/**'
103 pattern: 'upstream/**'
105 pattern: '**/README.rst'
108 readable-message: true
110 successful: {skip-vote}
112 unstable: {skip-vote}
113 notbuilt: {skip-vote}
121 default: 'xci-virtual'
123 name: CLEAN_DIB_IMAGES
127 default: https://gerrit.opnfv.org/gerrit/$PROJECT
128 description: 'Git URL to use on this Jenkins Slave'
131 - description-setter:
132 description: "Built on $NODE_NAME"
135 condition: SUCCESSFUL
137 - name: 'xci-verify-deploy-{type}-{stream}'
138 current-parameters: true
139 predefined-parameters: |
141 DEPLOY_SCENARIO=os-nosdn-nofeature-noha
142 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
143 node-parameters: true
144 kill-phase-on: FAILURE
148 condition: SUCCESSFUL
150 - name: 'xci-verify-healthcheck-{type}-{stream}'
151 current-parameters: true
152 predefined-parameters: |
154 DEPLOY_SCENARIO=os-nosdn-nofeature-noha
155 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
157 FUNCTEST_TIER=healthcheck
158 node-parameters: true
163 name: 'xci-verify-{phase}-{type}-{stream}'
172 use-build-blocker: true
174 - 'xci-verify-deploy-.*'
175 - 'xci-verify-healthcheck-.*'
176 - 'bifrost-verify-.*'
177 - 'bifrost-periodic-.*'
187 name: DEPLOY_SCENARIO
188 default: 'os-nosdn-nofeature-noha'
193 name: FUNCTEST_SUITE_NAME
194 default: 'healthcheck'
199 name: CLEAN_DIB_IMAGES
202 name: OPNFV_RELENG_DEV_PATH
209 default: https://gerrit.opnfv.org/gerrit/$PROJECT
210 description: 'Git URL to use on this Jenkins Slave'
216 - fix-workspace-permissions
222 - description-setter:
223 description: "Built on $NODE_NAME for $DISTRO"
224 - 'xci-verify-{phase}-macro'
226 #--------------------------------
228 #--------------------------------
230 name: 'xci-verify-deploy-macro'
235 # skip the deployment if the patch doesn't impact the deployment
236 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
237 echo "Skipping the deployment!"
243 # The start-new-vm.sh script will copy the entire releng-xci directory
244 # so lets prepare the test script now so it can be copied by the script.
245 # Please do not move it elsewhere or you would have to move it to the VM
247 cat > xci_test.sh<<EOF
249 export DISTRO=$DISTRO
250 export DEPLOY_SCENARIO=$DEPLOY_SCENARIO
251 export FUNCTEST_MODE=$FUNCTEST_MODE
252 export FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
253 export XCI_FLAVOR=$XCI_FLAVOR
254 export CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
255 export OPNFV_RELENG_DEV_PATH=/home/devuser/releng-xci/
256 export INSTALLER_TYPE=$INSTALLER_TYPE
257 export GIT_BASE=$GIT_BASE
258 export JENKINS_HOME=$JENKINS_HOME
263 chmod a+x xci_test.sh
265 ./xci/scripts/vm/start-new-vm.sh $DISTRO
269 # skip the deployment if the patch doesn't impact the deployment
270 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
271 echo "Skipping the deployment!"
275 ssh ${DISTRO}_xci_vm "cd releng-xci && ./xci_test.sh"
279 name: 'xci-verify-healthcheck-macro'
284 # skip the healthcheck if the patch doesn't impact the deployment
285 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
286 echo "Skipping the healthcheck!"
294 # skip the deployment if the patch doesn't impact the deployment
295 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
296 echo "Skipping the deployment!"
300 sudo virsh destroy ${DISTRO}_xci_vm
301 sudo virsh undefine ${DISTRO}_xci_vm
303 # this will be enabled once the xci is prepared
305 # name: 'xci-verify-healthcheck-macro'
308 # !include-raw: ../../utils/fetch_os_creds.sh
310 # !include-raw: ../functest/functest-alpine.sh