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'
259 name: FUNCTEST_VERSION
265 name: FUNCTEST_SUITE_NAME
266 default: 'healthcheck'
271 name: CLEAN_DIB_IMAGES
275 default: https://gerrit.opnfv.org/gerrit/$PROJECT
276 description: 'Git URL to use on this Jenkins Slave'
279 - 'xci-merge-set-scenario-macro'
281 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
282 - description-setter:
283 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
286 condition: SUCCESSFUL
288 - name: 'xci-merge-{distro}-deploy-virtual-{stream}'
289 current-parameters: true
290 predefined-parameters: |
292 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
293 GERRIT_PROJECT=$GERRIT_PROJECT
294 GERRIT_BRANCH=$GERRIT_BRANCH
295 GERRIT_REFSPEC=$GERRIT_REFSPEC
296 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
297 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
298 FUNCTEST_VERSION=$FUNCTEST_VERSION
299 FUNCTEST_MODE=$FUNCTEST_MODE
300 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
301 node-parameters: true
302 kill-phase-on: '{kill-phase-on}'
303 abort-all-job: '{abort-all-job}'
306 condition: SUCCESSFUL
308 - name: 'xci-merge-{distro}-healthcheck-virtual-{stream}'
309 current-parameters: true
310 predefined-parameters: |
312 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
313 GERRIT_PROJECT=$GERRIT_PROJECT
314 GERRIT_BRANCH=$GERRIT_BRANCH
315 GERRIT_REFSPEC=$GERRIT_REFSPEC
316 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
317 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
319 FUNCTEST_VERSION=$FUNCTEST_VERSION
320 FUNCTEST_MODE=$FUNCTEST_MODE
321 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
322 node-parameters: true
323 kill-phase-on: '{kill-phase-on}'
324 abort-all-job: '{abort-all-job}'
337 - shell: !include-raw: ./xci-cleanup.sh
338 mark-unstable-if-failed: true
341 name: 'xci-merge-{distro}-{phase}-virtual-{stream}'
350 use-build-blocker: true
352 - '.*-bifrost-verify-.*'
353 - '.*-bifrost-periodic-.*'
361 default: $GERRIT_PROJECT
369 name: FUNCTEST_VERSION
375 name: FUNCTEST_SUITE_NAME
376 default: 'healthcheck'
381 name: CLEAN_DIB_IMAGES
384 name: OPNFV_RELENG_DEV_PATH
388 default: https://gerrit.opnfv.org/gerrit/$PROJECT
389 description: 'Git URL to use on this Jenkins Slave'
393 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
397 - fix-workspace-permissions
403 - description-setter:
404 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
405 - 'xci-merge-{phase}-macro'
408 name: 'xci-merge-promote-virtual-{stream}'
420 default: $GERRIT_PROJECT
428 name: FUNCTEST_SUITE_NAME
429 default: 'healthcheck'
434 name: OPNFV_RELENG_DEV_PATH
437 name: LOCAL_PROMOTION_METADATA_FILE
438 default: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
440 name: REMOTE_PROMOTION_METADATA_FILE
441 default: "gs://artifacts.opnfv.org/xci/pipeline/merge/$DEPLOY_SCENARIO.properties"
444 default: https://gerrit.opnfv.org/gerrit/$PROJECT
445 description: 'Git URL to use on this Jenkins Slave'
449 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
453 - fix-workspace-permissions
456 - description-setter:
457 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
458 - 'xci-merge-promote-macro'
460 # -------------------------------
462 # -------------------------------
464 name: 'xci-merge-set-scenario-macro'
467 !include-raw: ./xci-set-scenario.sh
470 name: 'xci-merge-deploy-macro'
473 !include-raw: ./xci-start-new-vm.sh
476 !include-raw: ./xci-start-deployment.sh
479 name: 'xci-merge-healthcheck-macro'
482 !include-raw: ./xci-run-functest.sh
485 name: 'xci-merge-promote-macro'
488 !include-raw: ./xci-promote.sh