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!"
234 ./xci/scripts/vm/start-new-vm.sh $DISTRO
238 # skip the deployment if the patch doesn't impact the deployment
239 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
240 echo "Skipping the deployment!"
244 ssh ${DISTRO}_xci_vm "cd releng-xci/xci && ./xci-deploy.sh"
248 name: 'xci-verify-healthcheck-macro'
253 # skip the healthcheck if the patch doesn't impact the deployment
254 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
255 echo "Skipping the healthcheck!"
263 # skip the deployment if the patch doesn't impact the deployment
264 if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then
265 echo "Skipping the deployment!"
269 sudo virsh destroy ${DISTRO}_xci_vm
270 sudo virsh undefine ${DISTRO}_xci_vm
272 # this will be enabled once the xci is prepared
274 # name: 'xci-verify-healthcheck-macro'
277 # !include-raw: ../../utils/fetch_os_creds.sh
279 # !include-raw: ../functest/functest-alpine.sh