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-nosdn-nofeature-ha'
26 branch: 'stable/{stream}'
27 gs-pathname: '/{stream}'
28 verify-scenario: 'os-odl_l3-nofeature-ha'
30 - euphrates: &euphrates
31 branch: 'stable/{stream}'
32 gs-pathname: '/{stream}'
33 verify-scenario: 'os-odl-nofeature-ha'
38 name: 'apex-verify-unit-tests-{stream}'
40 node: 'apex-build-master'
44 disabled: '{obj:disabled}'
48 gs-pathname: '{gs-pathname}'
58 server-name: 'gerrit.opnfv.org'
60 - patchset-created-event:
61 exclude-drafts: 'false'
62 exclude-trivial-rebase: 'false'
63 exclude-no-code-change: 'true'
64 - draft-published-event
65 - comment-added-contains-event:
66 comment-contains-value: 'recheck'
67 - comment-added-contains-event:
68 comment-contains-value: 'reverify'
70 - project-compare-type: 'ANT'
71 project-pattern: 'apex'
73 - branch-compare-type: 'ANT'
74 branch-pattern: '**/{branch}'
75 disable-strict-forbidden-file-verification: 'false'
78 pattern: 'apex/tests/**'
91 pattern: 'apex/build/**'
93 pattern: 'apex/common/**'
95 pattern: 'apex/inventory/**'
97 pattern: 'apex/network/**'
99 pattern: 'apex/overcloud/**'
101 pattern: 'apex/settings/**'
103 pattern: 'apex/undercloud/**'
105 pattern: 'apex/virtual/**'
119 name: 'apex-verify-{stream}'
123 disabled: '{obj:disabled}'
125 project-type: 'multijob'
128 - '{project}-virtual-{stream}-defaults'
130 gs-pathname: '{gs-pathname}/dev'
135 name: ARTIFACT_VERSION
137 description: "Used for overriding the ARTIFACT_VERSION"
143 server-name: 'gerrit.opnfv.org'
145 - patchset-created-event:
146 exclude-drafts: 'false'
147 exclude-trivial-rebase: 'false'
148 exclude-no-code-change: 'true'
149 - draft-published-event
150 - comment-added-contains-event:
151 comment-contains-value: 'recheck'
152 - comment-added-contains-event:
153 comment-contains-value: 'reverify'
155 - project-compare-type: 'ANT'
156 project-pattern: 'apex'
158 - branch-compare-type: 'ANT'
159 branch-pattern: '**/{branch}'
160 disable-strict-forbidden-file-verification: 'true'
175 pattern: 'apex/build/**'
177 pattern: 'apex/common/**'
179 pattern: 'apex/inventory/**'
181 pattern: 'apex/network/**'
183 pattern: 'apex/overcloud/**'
185 pattern: 'apex/settings/**'
187 pattern: 'apex/undercloud/**'
189 pattern: 'apex/virtual/**'
190 forbidden-file-paths:
192 pattern: 'apex/tests/**'
203 use-build-blocker: true
204 blocking-level: 'NODE'
206 - 'apex-.*-promote.*'
208 - description-setter:
209 description: "Built on $NODE_NAME"
212 condition: SUCCESSFUL
214 - name: 'apex-verify-unit-tests-{stream}'
215 current-parameters: false
216 predefined-parameters: |
217 GERRIT_BRANCH=$GERRIT_BRANCH
218 GERRIT_REFSPEC=$GERRIT_REFSPEC
219 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
220 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
221 node-parameters: false
222 kill-phase-on: FAILURE
227 condition: SUCCESSFUL
229 - name: 'apex-build-{stream}'
230 current-parameters: false
231 predefined-parameters: |
232 ARTIFACT_VERSION=$ARTIFACT_VERSION
233 GERRIT_BRANCH=$GERRIT_BRANCH
234 GERRIT_REFSPEC=$GERRIT_REFSPEC
235 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
236 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
237 node-parameters: false
238 kill-phase-on: FAILURE
243 condition: SUCCESSFUL
245 - name: 'apex-virtual-{stream}'
246 current-parameters: false
247 predefined-parameters: |
248 ARTIFACT_VERSION=$ARTIFACT_VERSION
249 DEPLOY_SCENARIO={verify-scenario}
251 GERRIT_BRANCH=$GERRIT_BRANCH
252 GERRIT_REFSPEC=$GERRIT_REFSPEC
253 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
254 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
255 FUNCTEST_SUITE_NAME=tempest_smoke
256 FUNCTEST_MODE=testcase
257 node-parameters: true
258 kill-phase-on: FAILURE
262 # Verify Scenario Gate
264 name: 'apex-verify-gate-{stream}'
268 disabled: '{obj:disabled}'
270 project-type: 'multijob'
273 - '{project}-virtual-{stream}-defaults'
275 gs-pathname: '{gs-pathname}/dev'
281 default: https://gerrit.opnfv.org/gerrit/$PROJECT
282 description: "Used for overriding the GIT URL coming from parameters macro."
284 name: ARTIFACT_VERSION
286 description: "Used for overriding the ARTIFACT_VERSION"
293 server-name: 'gerrit.opnfv.org'
295 - comment-added-contains-event:
296 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
298 - project-compare-type: 'ANT'
299 project-pattern: 'apex'
301 - branch-compare-type: 'ANT'
302 branch-pattern: '**/{branch}'
318 use-build-blocker: true
319 blocking-level: 'NODE'
323 - 'apex-.*-promote.*'
331 # yamllint disable rule:line-length
333 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo '(os|k8s)-.*$') > detected_scenario
334 # yamllint enable rule:line-length
336 properties-file: detected_scenario
339 condition: SUCCESSFUL
341 - name: 'apex-deploy-virtual-{stream}'
342 current-parameters: false
343 predefined-parameters: |
344 ARTIFACT_VERSION=$ARTIFACT_VERSION
345 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
347 GERRIT_BRANCH=$GERRIT_BRANCH
348 GERRIT_REFSPEC=$GERRIT_REFSPEC
349 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
350 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
351 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
352 node-parameters: true
353 kill-phase-on: FAILURE
357 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
358 echo 'REPO=opnfv' > functest_repo
360 echo 'REPO=ollivier' > functest_repo
363 properties-file: functest_repo
368 - name: 'functest-apex-virtual-suite-{stream}'
369 current-parameters: false
370 predefined-parameters: |
371 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
372 FUNCTEST_SUITE_NAME=tempest_smoke
373 FUNCTEST_MODE=testcase
375 GERRIT_BRANCH=$GERRIT_BRANCH
376 GERRIT_REFSPEC=$GERRIT_REFSPEC
377 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
378 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
379 node-parameters: true
381 enable-condition: "def m = '$DEPLOY_SCENARIO' != 'k8s-nosdn-nofeature-noha'"
385 name: apex-fetch-logs
387 - name: 'apex-fetch-logs-{stream}'
388 current-parameters: true
389 predefined-parameters: |
390 GERRIT_BRANCH=$GERRIT_BRANCH
391 GERRIT_REFSPEC=$GERRIT_REFSPEC
392 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
393 node-parameters: true
398 ########################
400 ########################
405 !include-raw: ./apex-unit-test.sh