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/**'
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 FUNCTEST_SUITE_NAME=tempest_smoke
247 FUNCTEST_MODE=testcase
248 node-parameters: false
249 kill-phase-on: FAILURE
253 # Verify Scenario Gate
255 name: 'apex-verify-gate-{stream}'
259 disabled: '{obj:disabled}'
261 project-type: 'multijob'
264 - '{project}-virtual-{stream}-defaults'
266 gs-pathname: '{gs-pathname}/dev'
272 default: https://gerrit.opnfv.org/gerrit/$PROJECT
273 description: "Used for overriding the GIT URL coming from parameters macro."
275 name: ARTIFACT_VERSION
277 description: "Used for overriding the ARTIFACT_VERSION"
284 server-name: 'gerrit.opnfv.org'
286 - comment-added-contains-event:
287 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
289 - project-compare-type: 'ANT'
290 project-pattern: 'apex'
292 - branch-compare-type: 'ANT'
293 branch-pattern: '**/{branch}'
309 use-build-blocker: true
314 - 'apex-.*-promote.*'
322 # yamllint disable rule:line-length
324 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo '(os|k8s)-.*$') > detected_scenario
325 # yamllint enable rule:line-length
327 properties-file: detected_scenario
330 condition: SUCCESSFUL
332 - name: 'apex-deploy-virtual-{stream}'
333 current-parameters: false
334 predefined-parameters: |
335 ARTIFACT_VERSION=$ARTIFACT_VERSION
336 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
338 GERRIT_BRANCH=$GERRIT_BRANCH
339 GERRIT_REFSPEC=$GERRIT_REFSPEC
340 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
341 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
342 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
343 node-parameters: true
344 kill-phase-on: FAILURE
348 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
349 echo 'REPO=opnfv' > functest_repo
351 echo 'REPO=ollivier' > functest_repo
354 properties-file: functest_repo
359 - name: 'functest-apex-virtual-suite-{stream}'
360 current-parameters: false
361 predefined-parameters: |
362 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
363 FUNCTEST_SUITE_NAME=tempest_smoke
364 FUNCTEST_MODE=testcase
366 GERRIT_BRANCH=$GERRIT_BRANCH
367 GERRIT_REFSPEC=$GERRIT_REFSPEC
368 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
369 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
370 node-parameters: true
372 enable-condition: "def m = '$DEPLOY_SCENARIO' != k8s-nosdn-nofeature-noha"
376 name: apex-fetch-logs
378 - name: 'apex-fetch-logs-{stream}'
379 current-parameters: true
380 predefined-parameters: |
381 GERRIT_BRANCH=$GERRIT_BRANCH
382 GERRIT_REFSPEC=$GERRIT_REFSPEC
383 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
384 node-parameters: true
389 ########################
391 ########################
396 !include-raw: ./apex-unit-test.sh