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}-.*'
227 - 'openstack-bifrost-verify-{distro}-.*'
228 - 'xci-osa-verify-{distro}-.*'
229 - 'xci-osa-periodic-{distro}-.*'
242 - fix-workspace-permissions
249 project: $GERRIT_PROJECT
253 default: 'xci-virtual'
261 name: FUNCTEST_SUITE_NAME
262 default: 'healthcheck'
267 name: CLEAN_DIB_IMAGES
271 default: https://gerrit.opnfv.org/gerrit/$PROJECT
272 description: 'Git URL to use on this Jenkins Slave'
275 - 'xci-merge-set-scenario-macro'
277 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
278 - description-setter:
279 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
282 condition: SUCCESSFUL
284 - name: 'xci-merge-{distro}-deploy-virtual-{stream}'
285 current-parameters: true
286 predefined-parameters: |
288 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
289 GERRIT_PROJECT=$GERRIT_PROJECT
290 GERRIT_BRANCH=$GERRIT_BRANCH
291 GERRIT_REFSPEC=$GERRIT_REFSPEC
292 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
293 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
294 node-parameters: true
295 kill-phase-on: '{kill-phase-on}'
296 abort-all-job: '{abort-all-job}'
299 condition: SUCCESSFUL
301 - name: 'xci-merge-{distro}-healthcheck-virtual-{stream}'
302 current-parameters: true
303 predefined-parameters: |
305 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
306 GERRIT_PROJECT=$GERRIT_PROJECT
307 GERRIT_BRANCH=$GERRIT_BRANCH
308 GERRIT_REFSPEC=$GERRIT_REFSPEC
309 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
310 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
312 FUNCTEST_MODE=$FUNCTEST_MODE
313 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
314 node-parameters: true
315 kill-phase-on: '{kill-phase-on}'
316 abort-all-job: '{abort-all-job}'
329 - shell: !include-raw: ./xci-cleanup.sh
330 mark-unstable-if-failed: true
333 name: 'xci-merge-{distro}-{phase}-virtual-{stream}'
342 use-build-blocker: true
344 - '.*-bifrost-verify-.*'
345 - '.*-bifrost-periodic-.*'
353 default: $GERRIT_PROJECT
364 name: FUNCTEST_SUITE_NAME
365 default: 'healthcheck'
370 name: CLEAN_DIB_IMAGES
373 name: OPNFV_RELENG_DEV_PATH
377 default: https://gerrit.opnfv.org/gerrit/$PROJECT
378 description: 'Git URL to use on this Jenkins Slave'
382 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
386 - fix-workspace-permissions
392 - description-setter:
393 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
394 - 'xci-merge-{phase}-macro'
397 name: 'xci-merge-promote-virtual-{stream}'
409 default: $GERRIT_PROJECT
417 name: FUNCTEST_SUITE_NAME
418 default: 'healthcheck'
423 name: OPNFV_RELENG_DEV_PATH
426 name: LOCAL_PROMOTION_METADATA_FILE
427 default: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
429 name: REMOTE_PROMOTION_METADATA_FILE
430 default: "gs://artifacts.opnfv.org/xci/pipeline/merge/$DEPLOY_SCENARIO.properties"
433 default: https://gerrit.opnfv.org/gerrit/$PROJECT
434 description: 'Git URL to use on this Jenkins Slave'
438 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
442 - fix-workspace-permissions
445 - description-setter:
446 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
447 - 'xci-merge-promote-macro'
449 # -------------------------------
451 # -------------------------------
453 name: 'xci-merge-set-scenario-macro'
456 !include-raw: ./xci-set-scenario.sh
459 name: 'xci-merge-deploy-macro'
462 !include-raw: ./xci-start-new-vm.sh
465 !include-raw: ./xci-start-deployment.sh
468 name: 'xci-merge-healthcheck-macro'
471 !include-raw: ./xci-run-functest.sh
474 name: 'xci-merge-promote-macro'
477 !include-raw: ./xci-promote.sh