3 name: 'opnfv-xci-merge'
6 # -------------------------------
8 # -------------------------------
12 # -------------------------------
14 # -------------------------------
22 # -------------------------------
23 # postmerge promotion phases
24 # -------------------------------
28 # -------------------------------
30 # -------------------------------
32 - 'xci-merge-virtual-{stream}'
33 - 'xci-merge-promote-virtual-{stream}'
34 - 'xci-merge-{distro}-virtual-{stream}'
35 - 'xci-merge-{distro}-{phase}-virtual-{stream}'
36 # -------------------------------
38 # -------------------------------
40 name: 'xci-merge-virtual-{stream}'
42 project-type: multijob
55 - fix-workspace-permissions
62 server-name: 'gerrit.opnfv.org'
65 - comment-added-contains-event:
66 comment-contains-value: 'remerge'
68 - project-compare-type: 'ANT'
69 project-pattern: 'releng-xci'
71 - branch-compare-type: 'ANT'
72 branch-pattern: '**/{branch}'
73 disable-strict-forbidden-file-verification: 'false'
76 pattern: 'xci/scripts/vm/**'
80 pattern: 'prototypes/**'
82 pattern: 'upstream/**'
83 - project-compare-type: 'REG_EXP'
84 project-pattern: 'sfc|sdnvpn'
86 - branch-compare-type: 'ANT'
87 branch-pattern: '**/{branch}'
88 disable-strict-forbidden-file-verification: 'true'
91 pattern: 'scenarios/**'
92 readable-message: true
93 custom-url: '* $JOB_NAME $BUILD_URL'
97 project: $GERRIT_PROJECT
101 default: 'xci-virtual'
106 name: CLEAN_DIB_IMAGES
110 default: https://gerrit.opnfv.org/gerrit/$PROJECT
111 description: 'Git URL to use on this Jenkins Slave'
114 - 'xci-merge-set-scenario-macro'
116 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
117 - description-setter:
118 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
120 name: deploy and test
121 condition: SUCCESSFUL
123 - name: 'xci-merge-opensuse-virtual-{stream}'
124 current-parameters: false
125 predefined-parameters: |
127 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
128 GERRIT_PROJECT=$GERRIT_PROJECT
129 GERRIT_BRANCH=$GERRIT_BRANCH
130 GERRIT_REFSPEC=$GERRIT_REFSPEC
131 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
132 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
133 node-parameters: false
134 kill-phase-on: FAILURE
136 - name: 'xci-merge-ubuntu-virtual-{stream}'
137 current-parameters: false
138 predefined-parameters: |
140 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
141 GERRIT_PROJECT=$GERRIT_PROJECT
142 GERRIT_BRANCH=$GERRIT_BRANCH
143 GERRIT_REFSPEC=$GERRIT_REFSPEC
144 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
145 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
146 node-parameters: false
147 kill-phase-on: FAILURE
149 - name: 'xci-merge-centos-virtual-{stream}'
150 current-parameters: false
151 predefined-parameters: |
153 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
154 GERRIT_PROJECT=$GERRIT_PROJECT
155 GERRIT_BRANCH=$GERRIT_BRANCH
156 GERRIT_REFSPEC=$GERRIT_REFSPEC
157 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
158 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
159 node-parameters: false
163 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
166 condition: SUCCESSFUL
168 - name: 'xci-merge-promote-virtual-{stream}'
169 current-parameters: true
170 predefined-parameters: |
171 GERRIT_PROJECT=$GERRIT_PROJECT
172 GERRIT_BRANCH=$GERRIT_BRANCH
173 GERRIT_REFSPEC=$GERRIT_REFSPEC
174 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
175 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
176 node-parameters: true
181 name: 'xci-merge-{distro}-virtual-{stream}'
183 project-type: multijob
192 use-build-blocker: true
194 - 'xci-verify-{distro}-.*'
195 - 'xci-merge-{distro}-.*'
196 - 'openstack-bifrost-verify-{distro}-.*'
197 - 'xci-osa-verify-{distro}-.*'
198 - 'xci-osa-periodic-{distro}-.*'
211 - fix-workspace-permissions
218 project: $GERRIT_PROJECT
222 default: 'xci-virtual'
227 name: CLEAN_DIB_IMAGES
231 default: https://gerrit.opnfv.org/gerrit/$PROJECT
232 description: 'Git URL to use on this Jenkins Slave'
235 - 'xci-merge-set-scenario-macro'
237 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
238 - description-setter:
239 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
242 condition: SUCCESSFUL
244 - name: 'xci-merge-{distro}-deploy-virtual-{stream}'
245 current-parameters: true
246 predefined-parameters: |
248 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
249 GERRIT_PROJECT=$GERRIT_PROJECT
250 GERRIT_BRANCH=$GERRIT_BRANCH
251 GERRIT_REFSPEC=$GERRIT_REFSPEC
252 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
253 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
254 node-parameters: true
255 kill-phase-on: FAILURE
259 condition: SUCCESSFUL
261 - name: 'xci-merge-{distro}-healthcheck-virtual-{stream}'
262 current-parameters: true
263 predefined-parameters: |
265 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
266 GERRIT_PROJECT=$GERRIT_PROJECT
267 GERRIT_BRANCH=$GERRIT_BRANCH
268 GERRIT_REFSPEC=$GERRIT_REFSPEC
269 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
270 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
272 FUNCTEST_TIER=healthcheck
273 node-parameters: true
279 script-only-if-succeeded: false
280 script-only-if-failed: false
283 !include-raw: ./xci-cleanup.sh
286 name: 'xci-merge-{distro}-{phase}-virtual-{stream}'
295 use-build-blocker: true
297 - '.*-bifrost-verify-.*'
298 - '.*-bifrost-periodic-.*'
306 default: $GERRIT_PROJECT
314 name: FUNCTEST_SUITE_NAME
315 default: 'healthcheck'
320 name: CLEAN_DIB_IMAGES
323 name: OPNFV_RELENG_DEV_PATH
327 default: https://gerrit.opnfv.org/gerrit/$PROJECT
328 description: 'Git URL to use on this Jenkins Slave'
332 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
336 - fix-workspace-permissions
342 - description-setter:
343 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
344 - 'xci-merge-{phase}-macro'
347 name: 'xci-merge-promote-virtual-{stream}'
359 default: $GERRIT_PROJECT
364 name: OPNFV_RELENG_DEV_PATH
367 name: LOCAL_PROMOTION_METADATA_FILE
368 default: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
370 name: REMOTE_PROMOTION_METADATA_FILE
371 default: "gs://artifacts.opnfv.org/xci/pipeline/merge/$DEPLOY_SCENARIO.properties"
374 default: https://gerrit.opnfv.org/gerrit/$PROJECT
375 description: 'Git URL to use on this Jenkins Slave'
379 properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
383 - fix-workspace-permissions
386 - description-setter:
387 description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
388 - 'xci-merge-promote-macro'
390 # -------------------------------
392 # -------------------------------
394 name: 'xci-merge-set-scenario-macro'
397 !include-raw: ./xci-set-scenario.sh
400 name: 'xci-merge-deploy-macro'
403 !include-raw: ./xci-start-new-vm.sh
406 !include-raw: ./xci-start-deployment.sh
409 name: 'xci-merge-healthcheck-macro'
412 !include-raw: ./xci-run-functest.sh
415 name: 'xci-merge-promote-macro'
418 !include-raw: ./xci-promote.sh