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-ha'
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_serial
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.*'
321 # yamllint disable rule:line-length
323 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo '(os|k8s)-.*$') > detected_scenario
324 # yamllint enable rule:line-length
326 properties-file: detected_scenario
329 condition: SUCCESSFUL
331 - name: 'apex-deploy-virtual-{stream}'
332 current-parameters: false
333 predefined-parameters: |
334 ARTIFACT_VERSION=$ARTIFACT_VERSION
335 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
337 GERRIT_BRANCH=$GERRIT_BRANCH
338 GERRIT_REFSPEC=$GERRIT_REFSPEC
339 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
340 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
341 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
342 node-parameters: true
343 kill-phase-on: FAILURE
350 - name: 'functest-apex-virtual-suite-{stream}'
351 current-parameters: false
352 predefined-parameters: |
353 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
354 FUNCTEST_SUITE_NAME=tempest_smoke_serial
355 FUNCTEST_MODE=testcase
356 GERRIT_BRANCH=$GERRIT_BRANCH
357 GERRIT_REFSPEC=$GERRIT_REFSPEC
358 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
359 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
360 node-parameters: true
362 enable-condition: "def m = '$DEPLOY_SCENARIO' != k8s-nosdn-nofeature-noha"
366 name: apex-fetch-logs
368 - name: 'apex-fetch-logs-{stream}'
369 current-parameters: true
370 predefined-parameters: |
371 GERRIT_BRANCH=$GERRIT_BRANCH
372 GERRIT_REFSPEC=$GERRIT_REFSPEC
373 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
374 node-parameters: true
379 ########################
381 ########################
386 !include-raw: ./apex-unit-test.sh