3 name: 'apex-verify-jobs'
6 - 'apex-verify-{stream}'
7 - 'apex-verify-gate-{stream}'
8 - 'apex-verify-unit-tests-{stream}'
13 verify-scenario: 'os-nosdn-nofeature-noha'
16 branch: 'stable/{stream}'
17 gs-pathname: '/{stream}'
18 verify-scenario: 'os-nosdn-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/**'
198 use-build-blocker: true
201 - 'apex-.*-promote.*'
203 - description-setter:
204 description: "Built on $NODE_NAME"
207 condition: SUCCESSFUL
209 - name: 'apex-verify-unit-tests-{stream}'
210 current-parameters: false
211 predefined-parameters: |
212 GERRIT_BRANCH=$GERRIT_BRANCH
213 GERRIT_REFSPEC=$GERRIT_REFSPEC
214 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
215 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
216 node-parameters: false
217 kill-phase-on: FAILURE
222 condition: SUCCESSFUL
224 - name: 'apex-build-{stream}'
225 current-parameters: false
226 predefined-parameters: |
227 ARTIFACT_VERSION=$ARTIFACT_VERSION
228 GERRIT_BRANCH=$GERRIT_BRANCH
229 GERRIT_REFSPEC=$GERRIT_REFSPEC
230 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
231 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
232 node-parameters: false
233 kill-phase-on: FAILURE
238 condition: SUCCESSFUL
240 - name: 'apex-virtual-{stream}'
241 current-parameters: false
242 predefined-parameters: |
243 ARTIFACT_VERSION=$ARTIFACT_VERSION
244 DEPLOY_SCENARIO={verify-scenario}
246 GERRIT_BRANCH=$GERRIT_BRANCH
247 GERRIT_REFSPEC=$GERRIT_REFSPEC
248 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
249 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
250 FUNCTEST_SUITE_NAME=tempest_smoke
251 FUNCTEST_MODE=testcase
252 node-parameters: true
253 kill-phase-on: FAILURE
257 # Verify Scenario Gate
259 name: 'apex-verify-gate-{stream}'
263 disabled: '{obj:disabled}'
265 project-type: 'multijob'
268 - '{project}-virtual-{stream}-defaults'
270 gs-pathname: '{gs-pathname}/dev'
276 default: https://gerrit.opnfv.org/gerrit/$PROJECT
277 description: "Used for overriding the GIT URL coming from parameters macro."
279 name: ARTIFACT_VERSION
281 description: "Used for overriding the ARTIFACT_VERSION"
288 server-name: 'gerrit.opnfv.org'
290 - comment-added-contains-event:
291 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
293 - project-compare-type: 'ANT'
294 project-pattern: 'apex'
296 - branch-compare-type: 'ANT'
297 branch-pattern: '**/{branch}'
313 use-build-blocker: true
318 - 'apex-.*-promote.*'
326 # yamllint disable rule:line-length
328 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo '(os|k8s)-.*$') > detected_scenario
329 # yamllint enable rule:line-length
331 properties-file: detected_scenario
334 condition: SUCCESSFUL
336 - name: 'apex-deploy-virtual-{stream}'
337 current-parameters: false
338 predefined-parameters: |
339 ARTIFACT_VERSION=$ARTIFACT_VERSION
340 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
342 GERRIT_BRANCH=$GERRIT_BRANCH
343 GERRIT_REFSPEC=$GERRIT_REFSPEC
344 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
345 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
346 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
347 node-parameters: true
348 kill-phase-on: FAILURE
352 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
353 echo 'REPO=opnfv' > functest_repo
355 echo 'REPO=ollivier' > functest_repo
358 properties-file: functest_repo
363 - name: 'functest-apex-virtual-suite-{stream}'
364 current-parameters: false
365 predefined-parameters: |
366 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
367 FUNCTEST_SUITE_NAME=tempest_smoke
368 FUNCTEST_MODE=testcase
370 GERRIT_BRANCH=$GERRIT_BRANCH
371 GERRIT_REFSPEC=$GERRIT_REFSPEC
372 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
373 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
374 node-parameters: true
376 enable-condition: "def m = '$DEPLOY_SCENARIO' != 'k8s-nosdn-nofeature-noha'"
380 name: apex-fetch-logs
382 - name: 'apex-fetch-logs-{stream}'
383 current-parameters: true
384 predefined-parameters: |
385 GERRIT_BRANCH=$GERRIT_BRANCH
386 GERRIT_REFSPEC=$GERRIT_REFSPEC
387 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
388 node-parameters: true
393 ########################
395 ########################
400 !include-raw: ./apex-unit-test.sh