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'
112 node-eligibility: 'ignore-offline'
120 name: FUNCTEST_SUITE_NAME
121 default: 'healthcheck'
126 name: CLEAN_DIB_IMAGES
130 default: https://gerrit.opnfv.org/gerrit/$PROJECT
131 description: 'Git URL to use on this Jenkins Slave'
134 - 'xci-merge-set-scenario-macro'
136 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
137 - description-setter:
138 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
140 name: deploy and test
141 condition: SUCCESSFUL
143 - name: 'xci-merge-opensuse-virtual-{stream}'
144 current-parameters: false
145 predefined-parameters: |
147 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
148 GERRIT_PROJECT=$GERRIT_PROJECT
149 GERRIT_BRANCH=$GERRIT_BRANCH
150 GERRIT_REFSPEC=$GERRIT_REFSPEC
151 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
152 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
154 FUNCTEST_MODE=$FUNCTEST_MODE
155 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
156 node-parameters: false
157 kill-phase-on: FAILURE
159 - name: 'xci-merge-ubuntu-virtual-{stream}'
160 current-parameters: false
161 predefined-parameters: |
163 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
164 GERRIT_PROJECT=$GERRIT_PROJECT
165 GERRIT_BRANCH=$GERRIT_BRANCH
166 GERRIT_REFSPEC=$GERRIT_REFSPEC
167 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
168 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
170 FUNCTEST_MODE=$FUNCTEST_MODE
171 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
172 node-parameters: false
173 kill-phase-on: FAILURE
175 - name: 'xci-merge-centos-virtual-{stream}'
176 current-parameters: false
177 predefined-parameters: |
179 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
180 GERRIT_PROJECT=$GERRIT_PROJECT
181 GERRIT_BRANCH=$GERRIT_BRANCH
182 GERRIT_REFSPEC=$GERRIT_REFSPEC
183 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
184 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
186 FUNCTEST_MODE=$FUNCTEST_MODE
187 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
188 node-parameters: false
192 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
195 condition: SUCCESSFUL
197 - name: 'xci-merge-promote-virtual-{stream}'
198 current-parameters: true
199 predefined-parameters: |
200 GERRIT_PROJECT=$GERRIT_PROJECT
201 GERRIT_BRANCH=$GERRIT_BRANCH
202 GERRIT_REFSPEC=$GERRIT_REFSPEC
203 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
204 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
206 FUNCTEST_MODE=$FUNCTEST_MODE
207 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
208 node-parameters: true
213 name: 'xci-merge-{distro}-virtual-{stream}'
215 project-type: multijob
217 disabled: '{obj:disabled}'
224 use-build-blocker: true
226 - 'xci-verify-{distro}-.*'
227 - 'xci-merge-{distro}-.*'
230 - 'openstack-bifrost-verify-{distro}-.*'
231 - 'xci-osa-verify-{distro}-.*'
232 - 'xci-osa-periodic-{distro}-.*'
233 blocking-level: 'NODE'
245 - fix-workspace-permissions
252 project: $GERRIT_PROJECT
256 default: 'xci-virtual'
258 node-eligibility: 'ignore-offline'
263 name: FUNCTEST_VERSION
269 name: FUNCTEST_SUITE_NAME
270 default: 'healthcheck'
275 name: CLEAN_DIB_IMAGES
279 default: https://gerrit.opnfv.org/gerrit/$PROJECT
280 description: 'Git URL to use on this Jenkins Slave'
283 - 'xci-merge-set-scenario-macro'
285 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
286 - description-setter:
287 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
290 condition: SUCCESSFUL
292 - name: 'xci-merge-{distro}-deploy-virtual-{stream}'
293 current-parameters: true
294 predefined-parameters: |
296 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
297 GERRIT_PROJECT=$GERRIT_PROJECT
298 GERRIT_BRANCH=$GERRIT_BRANCH
299 GERRIT_REFSPEC=$GERRIT_REFSPEC
300 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
301 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
302 FUNCTEST_VERSION=$FUNCTEST_VERSION
303 FUNCTEST_MODE=$FUNCTEST_MODE
304 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
305 node-parameters: true
306 kill-phase-on: '{kill-phase-on}'
307 abort-all-job: '{abort-all-job}'
310 condition: SUCCESSFUL
312 - name: 'xci-merge-{distro}-healthcheck-virtual-{stream}'
313 current-parameters: true
314 predefined-parameters: |
316 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
317 GERRIT_PROJECT=$GERRIT_PROJECT
318 GERRIT_BRANCH=$GERRIT_BRANCH
319 GERRIT_REFSPEC=$GERRIT_REFSPEC
320 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
321 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
323 FUNCTEST_VERSION=$FUNCTEST_VERSION
324 FUNCTEST_MODE=$FUNCTEST_MODE
325 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
326 node-parameters: true
327 kill-phase-on: '{kill-phase-on}'
328 abort-all-job: '{abort-all-job}'
341 - shell: !include-raw: ./xci-cleanup.sh
342 mark-unstable-if-failed: true
345 name: 'xci-merge-{distro}-{phase}-virtual-{stream}'
354 use-build-blocker: true
356 - '.*-bifrost-verify-.*'
357 - '.*-bifrost-periodic-.*'
360 blocking-level: 'NODE'
365 default: $GERRIT_PROJECT
373 name: FUNCTEST_VERSION
379 name: FUNCTEST_SUITE_NAME
380 default: 'healthcheck'
385 name: CLEAN_DIB_IMAGES
388 name: OPNFV_RELENG_DEV_PATH
392 default: https://gerrit.opnfv.org/gerrit/$PROJECT
393 description: 'Git URL to use on this Jenkins Slave'
397 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
401 - fix-workspace-permissions
407 - description-setter:
408 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
409 - 'xci-merge-{phase}-macro'
412 name: 'xci-merge-promote-virtual-{stream}'
424 default: $GERRIT_PROJECT
432 name: FUNCTEST_SUITE_NAME
433 default: 'healthcheck'
438 name: OPNFV_RELENG_DEV_PATH
441 name: LOCAL_PROMOTION_METADATA_FILE
442 default: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
444 name: REMOTE_PROMOTION_METADATA_FILE
445 default: "gs://artifacts.opnfv.org/xci/pipeline/merge/$DEPLOY_SCENARIO.properties"
448 default: https://gerrit.opnfv.org/gerrit/$PROJECT
449 description: 'Git URL to use on this Jenkins Slave'
453 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
457 - fix-workspace-permissions
460 - description-setter:
461 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
462 - 'xci-merge-promote-macro'
464 # -------------------------------
466 # -------------------------------
468 name: 'xci-merge-set-scenario-macro'
471 !include-raw: ./xci-set-scenario.sh
474 name: 'xci-merge-deploy-macro'
477 !include-raw: ./xci-start-new-vm.sh
480 !include-raw: ./xci-start-deployment.sh
483 name: 'xci-merge-healthcheck-macro'
486 !include-raw: ./xci-run-functest.sh
489 name: 'xci-merge-promote-macro'
492 !include-raw: ./xci-promote.sh