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}-.*'
228 - 'openstack-bifrost-verify-{distro}-.*'
229 - 'xci-osa-verify-{distro}-.*'
230 - 'xci-osa-periodic-{distro}-.*'
243 - fix-workspace-permissions
250 project: $GERRIT_PROJECT
254 default: 'xci-virtual'
262 name: FUNCTEST_SUITE_NAME
263 default: 'healthcheck'
268 name: CLEAN_DIB_IMAGES
272 default: https://gerrit.opnfv.org/gerrit/$PROJECT
273 description: 'Git URL to use on this Jenkins Slave'
276 - 'xci-merge-set-scenario-macro'
278 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
279 - description-setter:
280 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
283 condition: SUCCESSFUL
285 - name: 'xci-merge-{distro}-deploy-virtual-{stream}'
286 current-parameters: true
287 predefined-parameters: |
289 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
290 GERRIT_PROJECT=$GERRIT_PROJECT
291 GERRIT_BRANCH=$GERRIT_BRANCH
292 GERRIT_REFSPEC=$GERRIT_REFSPEC
293 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
294 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
295 node-parameters: true
296 kill-phase-on: '{kill-phase-on}'
297 abort-all-job: '{abort-all-job}'
300 condition: SUCCESSFUL
302 - name: 'xci-merge-{distro}-healthcheck-virtual-{stream}'
303 current-parameters: true
304 predefined-parameters: |
306 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
307 GERRIT_PROJECT=$GERRIT_PROJECT
308 GERRIT_BRANCH=$GERRIT_BRANCH
309 GERRIT_REFSPEC=$GERRIT_REFSPEC
310 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
311 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
313 FUNCTEST_MODE=$FUNCTEST_MODE
314 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
315 node-parameters: true
316 kill-phase-on: '{kill-phase-on}'
317 abort-all-job: '{abort-all-job}'
330 - shell: !include-raw: ./xci-cleanup.sh
331 mark-unstable-if-failed: true
334 name: 'xci-merge-{distro}-{phase}-virtual-{stream}'
343 use-build-blocker: true
345 - '.*-bifrost-verify-.*'
346 - '.*-bifrost-periodic-.*'
354 default: $GERRIT_PROJECT
365 name: FUNCTEST_SUITE_NAME
366 default: 'healthcheck'
371 name: CLEAN_DIB_IMAGES
374 name: OPNFV_RELENG_DEV_PATH
378 default: https://gerrit.opnfv.org/gerrit/$PROJECT
379 description: 'Git URL to use on this Jenkins Slave'
383 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
387 - fix-workspace-permissions
393 - description-setter:
394 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
395 - 'xci-merge-{phase}-macro'
398 name: 'xci-merge-promote-virtual-{stream}'
410 default: $GERRIT_PROJECT
418 name: FUNCTEST_SUITE_NAME
419 default: 'healthcheck'
424 name: OPNFV_RELENG_DEV_PATH
427 name: LOCAL_PROMOTION_METADATA_FILE
428 default: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
430 name: REMOTE_PROMOTION_METADATA_FILE
431 default: "gs://artifacts.opnfv.org/xci/pipeline/merge/$DEPLOY_SCENARIO.properties"
434 default: https://gerrit.opnfv.org/gerrit/$PROJECT
435 description: 'Git URL to use on this Jenkins Slave'
439 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
443 - fix-workspace-permissions
446 - description-setter:
447 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
448 - 'xci-merge-promote-macro'
450 # -------------------------------
452 # -------------------------------
454 name: 'xci-merge-set-scenario-macro'
457 !include-raw: ./xci-set-scenario.sh
460 name: 'xci-merge-deploy-macro'
463 !include-raw: ./xci-start-new-vm.sh
466 !include-raw: ./xci-start-deployment.sh
469 name: 'xci-merge-healthcheck-macro'
472 !include-raw: ./xci-run-functest.sh
475 name: 'xci-merge-promote-macro'
478 !include-raw: ./xci-promote.sh