3 name: 'opnfv-xci-merge'
6 # -------------------------------
8 # -------------------------------
13 # -------------------------------
15 # -------------------------------
19 kill-phase-on: FAILURE
27 kill-phase-on: FAILURE
29 # -------------------------------
30 # postmerge promotion phases
31 # -------------------------------
35 # -------------------------------
37 # -------------------------------
39 - 'xci-merge-virtual-{stream}'
40 - 'xci-merge-promote-virtual-{stream}'
41 - 'xci-merge-{distro}-virtual-{stream}'
42 - 'xci-merge-{distro}-{phase}-virtual-{stream}'
43 # -------------------------------
45 # -------------------------------
47 name: 'xci-merge-virtual-{stream}'
49 project-type: multijob
51 disabled: '{obj:disabled}'
62 - fix-workspace-permissions
69 server-name: 'gerrit.opnfv.org'
72 - comment-added-contains-event:
73 comment-contains-value: 'remerge'
75 - project-compare-type: 'ANT'
76 project-pattern: 'releng-xci'
78 - branch-compare-type: 'ANT'
79 branch-pattern: '**/{branch}'
80 disable-strict-forbidden-file-verification: 'false'
83 pattern: 'xci/scripts/vm/**'
87 pattern: 'prototypes/**'
89 pattern: 'upstream/**'
92 - project-compare-type: 'REG_EXP'
93 project-pattern: 'sfc|sdnvpn|releng-xci-scenarios'
95 - branch-compare-type: 'ANT'
96 branch-pattern: '**/{branch}'
97 disable-strict-forbidden-file-verification: 'true'
100 pattern: 'scenarios/**'
101 readable-message: true
102 custom-url: '* $JOB_NAME $BUILD_URL'
106 project: $GERRIT_PROJECT
110 default: 'xci-virtual'
118 name: FUNCTEST_SUITE_NAME
119 default: 'healthcheck'
124 name: CLEAN_DIB_IMAGES
128 default: https://gerrit.opnfv.org/gerrit/$PROJECT
129 description: 'Git URL to use on this Jenkins Slave'
132 - 'xci-merge-set-scenario-macro'
134 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
135 - description-setter:
136 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
138 name: deploy and test
139 condition: SUCCESSFUL
141 - name: 'xci-merge-opensuse-virtual-{stream}'
142 current-parameters: false
143 predefined-parameters: |
145 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
146 GERRIT_PROJECT=$GERRIT_PROJECT
147 GERRIT_BRANCH=$GERRIT_BRANCH
148 GERRIT_REFSPEC=$GERRIT_REFSPEC
149 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
150 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
152 FUNCTEST_MODE=$FUNCTEST_MODE
153 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
154 node-parameters: false
155 kill-phase-on: FAILURE
157 - name: 'xci-merge-ubuntu-virtual-{stream}'
158 current-parameters: false
159 predefined-parameters: |
161 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
162 GERRIT_PROJECT=$GERRIT_PROJECT
163 GERRIT_BRANCH=$GERRIT_BRANCH
164 GERRIT_REFSPEC=$GERRIT_REFSPEC
165 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
166 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
168 FUNCTEST_MODE=$FUNCTEST_MODE
169 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
170 node-parameters: false
171 kill-phase-on: FAILURE
173 - name: 'xci-merge-centos-virtual-{stream}'
174 current-parameters: false
175 predefined-parameters: |
177 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
178 GERRIT_PROJECT=$GERRIT_PROJECT
179 GERRIT_BRANCH=$GERRIT_BRANCH
180 GERRIT_REFSPEC=$GERRIT_REFSPEC
181 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
182 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
184 FUNCTEST_MODE=$FUNCTEST_MODE
185 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
186 node-parameters: false
190 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
193 condition: SUCCESSFUL
195 - name: 'xci-merge-promote-virtual-{stream}'
196 current-parameters: true
197 predefined-parameters: |
198 GERRIT_PROJECT=$GERRIT_PROJECT
199 GERRIT_BRANCH=$GERRIT_BRANCH
200 GERRIT_REFSPEC=$GERRIT_REFSPEC
201 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
202 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
204 FUNCTEST_MODE=$FUNCTEST_MODE
205 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
206 node-parameters: true
211 name: 'xci-merge-{distro}-virtual-{stream}'
213 project-type: multijob
215 disabled: '{obj:disabled}'
222 use-build-blocker: true
224 - 'xci-verify-{distro}-.*'
225 - 'xci-merge-{distro}-.*'
226 - 'openstack-bifrost-verify-{distro}-.*'
227 - 'xci-osa-verify-{distro}-.*'
228 - 'xci-osa-periodic-{distro}-.*'
241 - fix-workspace-permissions
248 project: $GERRIT_PROJECT
252 default: 'xci-virtual'
260 name: FUNCTEST_SUITE_NAME
261 default: 'healthcheck'
266 name: CLEAN_DIB_IMAGES
270 default: https://gerrit.opnfv.org/gerrit/$PROJECT
271 description: 'Git URL to use on this Jenkins Slave'
274 - 'xci-merge-set-scenario-macro'
276 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
277 - description-setter:
278 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
281 condition: SUCCESSFUL
283 - name: 'xci-merge-{distro}-deploy-virtual-{stream}'
284 current-parameters: true
285 predefined-parameters: |
287 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
288 GERRIT_PROJECT=$GERRIT_PROJECT
289 GERRIT_BRANCH=$GERRIT_BRANCH
290 GERRIT_REFSPEC=$GERRIT_REFSPEC
291 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
292 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
293 node-parameters: true
294 kill-phase-on: '{kill-phase-on}'
295 abort-all-job: '{abort-all-job}'
298 condition: SUCCESSFUL
300 - name: 'xci-merge-{distro}-healthcheck-virtual-{stream}'
301 current-parameters: true
302 predefined-parameters: |
304 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
305 GERRIT_PROJECT=$GERRIT_PROJECT
306 GERRIT_BRANCH=$GERRIT_BRANCH
307 GERRIT_REFSPEC=$GERRIT_REFSPEC
308 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
309 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
311 FUNCTEST_MODE=$FUNCTEST_MODE
312 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
313 node-parameters: true
314 kill-phase-on: '{kill-phase-on}'
315 abort-all-job: '{abort-all-job}'
328 - shell: !include-raw: ./xci-cleanup.sh
329 mark-unstable-if-failed: true
332 name: 'xci-merge-{distro}-{phase}-virtual-{stream}'
341 use-build-blocker: true
343 - '.*-bifrost-verify-.*'
344 - '.*-bifrost-periodic-.*'
352 default: $GERRIT_PROJECT
363 name: FUNCTEST_SUITE_NAME
364 default: 'healthcheck'
369 name: CLEAN_DIB_IMAGES
372 name: OPNFV_RELENG_DEV_PATH
376 default: https://gerrit.opnfv.org/gerrit/$PROJECT
377 description: 'Git URL to use on this Jenkins Slave'
381 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
385 - fix-workspace-permissions
391 - description-setter:
392 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
393 - 'xci-merge-{phase}-macro'
396 name: 'xci-merge-promote-virtual-{stream}'
408 default: $GERRIT_PROJECT
416 name: FUNCTEST_SUITE_NAME
417 default: 'healthcheck'
422 name: OPNFV_RELENG_DEV_PATH
425 name: LOCAL_PROMOTION_METADATA_FILE
426 default: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
428 name: REMOTE_PROMOTION_METADATA_FILE
429 default: "gs://artifacts.opnfv.org/xci/pipeline/merge/$DEPLOY_SCENARIO.properties"
432 default: https://gerrit.opnfv.org/gerrit/$PROJECT
433 description: 'Git URL to use on this Jenkins Slave'
437 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
441 - fix-workspace-permissions
444 - description-setter:
445 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
446 - 'xci-merge-promote-macro'
448 # -------------------------------
450 # -------------------------------
452 name: 'xci-merge-set-scenario-macro'
455 !include-raw: ./xci-set-scenario.sh
458 name: 'xci-merge-deploy-macro'
461 !include-raw: ./xci-start-new-vm.sh
464 !include-raw: ./xci-start-deployment.sh
467 name: 'xci-merge-healthcheck-macro'
470 !include-raw: ./xci-run-functest.sh
473 name: 'xci-merge-promote-macro'
476 !include-raw: ./xci-promote.sh