2 name: 'opnfv-xci-verify'
5 #--------------------------------
7 #--------------------------------
11 #--------------------------------
13 #--------------------------------
21 #--------------------------------
23 #--------------------------------
26 #--------------------------------
27 # patch verification phases
28 #--------------------------------
32 #--------------------------------
34 #--------------------------------
36 - 'xci-verify-{distro}-{type}-{stream}'
37 - 'xci-verify-{phase}-{type}-{stream}'
38 #--------------------------------
40 #--------------------------------
42 name: 'xci-verify-{distro}-{type}-{stream}'
44 project-type: multijob
46 disabled: '{obj:disabled}'
53 use-build-blocker: true
55 - 'xci-verify-{distro}-.*'
56 - 'bifrost-verify-{distro}-.*'
57 - 'bifrost-periodic-{distro}-.*'
58 - 'osa-verify-{distro}-.*'
59 - 'osa-periodic-{distro}-.*'
66 - fix-workspace-permissions
73 server-name: 'gerrit.opnfv.org'
75 - patchset-created-event:
76 exclude-drafts: 'false'
77 exclude-trivial-rebase: 'false'
78 exclude-no-code-change: 'true'
79 - draft-published-event
80 - comment-added-contains-event:
81 comment-contains-value: 'recheck'
82 - comment-added-contains-event:
83 comment-contains-value: 'reverify'
85 - project-compare-type: 'ANT'
86 project-pattern: '{project}'
88 - branch-compare-type: 'ANT'
89 branch-pattern: '**/{branch}'
90 disable-strict-forbidden-file-verification: 'true'
98 pattern: 'prototypes/**'
100 pattern: 'upstream/**'
102 pattern: '**/README.rst'
105 readable-message: true
113 default: 'xci-virtual'
115 name: CLEAN_DIB_IMAGES
119 default: https://gerrit.opnfv.org/gerrit/$PROJECT
120 description: 'Git URL to use on this Jenkins Slave'
123 - description-setter:
124 description: "Built on $NODE_NAME"
127 condition: SUCCESSFUL
129 - name: 'xci-verify-deploy-{type}-{stream}'
130 current-parameters: true
131 predefined-parameters: |
133 DEPLOY_SCENARIO=os-nosdn-nofeature-noha
134 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
135 node-parameters: true
136 kill-phase-on: FAILURE
140 condition: SUCCESSFUL
142 - name: 'xci-verify-healthcheck-{type}-{stream}'
143 current-parameters: true
144 predefined-parameters: |
146 DEPLOY_SCENARIO=os-nosdn-nofeature-noha
147 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
149 FUNCTEST_TIER=healthcheck
150 node-parameters: true
155 name: 'xci-verify-{phase}-{type}-{stream}'
164 use-build-blocker: true
166 - 'xci-verify-deploy-.*'
167 - 'xci-verify-healthcheck-.*'
168 - 'bifrost-verify-.*'
169 - 'bifrost-periodic-.*'
179 name: DEPLOY_SCENARIO
180 default: 'os-nosdn-nofeature-noha'
185 name: FUNCTEST_SUITE_NAME
186 default: 'healthcheck'
191 name: CLEAN_DIB_IMAGES
194 name: OPNFV_RELENG_DEV_PATH
201 default: https://gerrit.opnfv.org/gerrit/$PROJECT
202 description: 'Git URL to use on this Jenkins Slave'
208 - fix-workspace-permissions
214 - description-setter:
215 description: "Built on $NODE_NAME for $DISTRO"
216 - 'xci-verify-{phase}-macro'
218 #--------------------------------
220 #--------------------------------
222 name: 'xci-verify-deploy-macro'
227 # skip the deployment if the patch doesn't impact the deployment
228 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
229 echo "Skipping the deployment!"
235 # The start-new-vm.sh script will copy the entire releng-xci directory
236 # so lets prepare the test script now so it can be copied by the script.
237 # Please do not move it elsewhere or you would have to move it to the VM
239 cat > xci_test.sh<<EOF
241 export DISTRO=$DISTRO
242 export DEPLOY_SCENARIO=$DEPLOY_SCENARIO
243 export FUNCTEST_MODE=$FUNCTEST_MODE
244 export FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
245 export XCI_FLAVOR=$XCI_FLAVOR
246 export CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
247 export OPNFV_RELENG_DEV_PATH=$OPNFV_RELENG_DEV_PATH
248 export INSTALLER_TYPE=$INSTALLER_TYPE
249 export GIT_BASE=$GIT_BASE
250 export JENKINS_HOME=$JENKINS_HOME
256 ./xci/scripts/vm/start-new-vm.sh $DISTRO
260 # skip the deployment if the patch doesn't impact the deployment
261 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
262 echo "Skipping the deployment!"
266 ssh ${{DISTRO}}_xci_vm "cd releng-xci && ./xci_test.sh"
270 name: 'xci-verify-healthcheck-macro'
275 # skip the healthcheck if the patch doesn't impact the deployment
276 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
277 echo "Skipping the healthcheck!"
285 # skip the deployment if the patch doesn't impact the deployment
286 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
287 echo "Skipping the deployment!"
291 sudo virsh destroy ${{DISTRO}}_xci_vm
292 sudo virsh undefine ${{DISTRO}}_xci_vm
294 # this will be enabled once the xci is prepared
296 # name: 'xci-verify-healthcheck-macro'
299 # !include-raw: ../../utils/fetch_os_creds.sh
301 # !include-raw: ../functest/functest-alpine.sh