3 name: 'apex-verify-jobs'
6 - 'apex-verify-{stream}'
7 - 'apex-verify-gate-{stream}'
8 - 'apex-verify-unit-tests-{stream}'
13 verify-scenario: 'os-odl-nofeature-ha'
16 branch: 'stable/{stream}'
17 gs-pathname: '/{stream}'
18 verify-scenario: 'os-odl-nofeature-ha'
21 branch: 'stable/{stream}'
22 gs-pathname: '/{stream}'
23 verify-scenario: 'os-odl_l3-nofeature-ha'
25 - euphrates: &euphrates
26 branch: 'stable/{stream}'
27 gs-pathname: '/{stream}'
28 verify-scenario: 'os-odl-nofeature-ha'
33 name: 'apex-verify-unit-tests-{stream}'
35 node: 'apex-build-master'
39 disabled: '{obj:disabled}'
43 gs-pathname: '{gs-pathname}'
53 server-name: 'gerrit.opnfv.org'
55 - patchset-created-event:
56 exclude-drafts: 'false'
57 exclude-trivial-rebase: 'false'
58 exclude-no-code-change: 'true'
59 - draft-published-event
60 - comment-added-contains-event:
61 comment-contains-value: 'recheck'
62 - comment-added-contains-event:
63 comment-contains-value: 'reverify'
65 - project-compare-type: 'ANT'
66 project-pattern: 'apex'
68 - branch-compare-type: 'ANT'
69 branch-pattern: '**/{branch}'
70 disable-strict-forbidden-file-verification: 'false'
73 pattern: 'apex/tests/**'
86 pattern: 'apex/build/**'
88 pattern: 'apex/common/**'
90 pattern: 'apex/inventory/**'
92 pattern: 'apex/network/**'
94 pattern: 'apex/overcloud/**'
96 pattern: 'apex/settings/**'
98 pattern: 'apex/undercloud/**'
100 pattern: 'apex/virtual/**'
114 name: 'apex-verify-{stream}'
118 disabled: '{obj:disabled}'
120 project-type: 'multijob'
123 - '{project}-virtual-{stream}-defaults'
125 gs-pathname: '{gs-pathname}/dev'
130 name: ARTIFACT_VERSION
132 description: "Used for overriding the ARTIFACT_VERSION"
138 server-name: 'gerrit.opnfv.org'
140 - patchset-created-event:
141 exclude-drafts: 'false'
142 exclude-trivial-rebase: 'false'
143 exclude-no-code-change: 'true'
144 - draft-published-event
145 - comment-added-contains-event:
146 comment-contains-value: 'recheck'
147 - comment-added-contains-event:
148 comment-contains-value: 'reverify'
150 - project-compare-type: 'ANT'
151 project-pattern: 'apex'
153 - branch-compare-type: 'ANT'
154 branch-pattern: '**/{branch}'
155 disable-strict-forbidden-file-verification: 'true'
170 pattern: 'apex/build/**'
172 pattern: 'apex/common/**'
174 pattern: 'apex/inventory/**'
176 pattern: 'apex/network/**'
178 pattern: 'apex/overcloud/**'
180 pattern: 'apex/settings/**'
182 pattern: 'apex/undercloud/**'
184 pattern: 'apex/virtual/**'
185 forbidden-file-paths:
187 pattern: 'apex/tests/**'
199 - description-setter:
200 description: "Built on $NODE_NAME"
203 condition: SUCCESSFUL
205 - name: 'apex-verify-unit-tests-{stream}'
206 current-parameters: false
207 predefined-parameters: |
208 GERRIT_BRANCH=$GERRIT_BRANCH
209 GERRIT_REFSPEC=$GERRIT_REFSPEC
210 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
211 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
212 node-parameters: false
213 kill-phase-on: FAILURE
218 condition: SUCCESSFUL
220 - name: 'apex-build-{stream}'
221 current-parameters: false
222 predefined-parameters: |
223 ARTIFACT_VERSION=$ARTIFACT_VERSION
224 GERRIT_BRANCH=$GERRIT_BRANCH
225 GERRIT_REFSPEC=$GERRIT_REFSPEC
226 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
227 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
228 node-parameters: false
229 kill-phase-on: FAILURE
234 condition: SUCCESSFUL
236 - name: 'apex-virtual-{stream}'
237 current-parameters: false
238 predefined-parameters: |
239 ARTIFACT_VERSION=$ARTIFACT_VERSION
240 DEPLOY_SCENARIO={verify-scenario}
242 GERRIT_BRANCH=$GERRIT_BRANCH
243 GERRIT_REFSPEC=$GERRIT_REFSPEC
244 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
245 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
246 node-parameters: false
247 kill-phase-on: FAILURE
251 # Verify Scenario Gate
253 name: 'apex-verify-gate-{stream}'
257 disabled: '{obj:disabled}'
259 project-type: 'multijob'
262 - '{project}-virtual-{stream}-defaults'
264 gs-pathname: '{gs-pathname}/dev'
270 default: https://gerrit.opnfv.org/gerrit/$PROJECT
271 description: "Used for overriding the GIT URL coming from parameters macro."
273 name: ARTIFACT_VERSION
275 description: "Used for overriding the ARTIFACT_VERSION"
282 server-name: 'gerrit.opnfv.org'
284 - comment-added-contains-event:
285 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
287 - project-compare-type: 'ANT'
288 project-pattern: 'apex'
290 - branch-compare-type: 'ANT'
291 branch-pattern: '**/{branch}'
307 use-build-blocker: true
318 # yamllint disable rule:line-length
320 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo '(os|k8s)-.*$') > detected_scenario
321 # yamllint enable rule:line-length
323 properties-file: detected_scenario
326 condition: SUCCESSFUL
328 - name: 'apex-deploy-virtual-{stream}'
329 current-parameters: false
330 predefined-parameters: |
331 ARTIFACT_VERSION=$ARTIFACT_VERSION
332 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
334 GERRIT_BRANCH=$GERRIT_BRANCH
335 GERRIT_REFSPEC=$GERRIT_REFSPEC
336 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
337 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
338 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
339 node-parameters: true
340 kill-phase-on: FAILURE
347 - name: 'functest-apex-virtual-suite-{stream}'
348 current-parameters: false
349 predefined-parameters: |
350 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
352 FUNCTEST_TIER=healthcheck
353 GERRIT_BRANCH=$GERRIT_BRANCH
354 GERRIT_REFSPEC=$GERRIT_REFSPEC
355 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
356 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
357 node-parameters: true
362 name: apex-fetch-logs
364 - name: 'apex-fetch-logs-{stream}'
365 current-parameters: true
366 predefined-parameters: |
367 GERRIT_BRANCH=$GERRIT_BRANCH
368 GERRIT_REFSPEC=$GERRIT_REFSPEC
369 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
370 node-parameters: true
375 ########################
377 ########################
382 !include-raw: ./apex-unit-test.sh