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
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
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 features=$(echo $DEPLOY_SCENARIO | sed -r -n 's/os-.+-(.+)-(noha|ha)/\1/p')
358 if [ "$features" == 'rocky' ]; then
359 echo "DOCKER_TAG=hunter" > functest_tag
360 elif [[ "$features" =~ 'rocky' ]]; then
361 echo "DOCKER_TAG=hunter" > functest_tag
363 echo "DOCKER_TAG=''" > functest_tag
366 properties-file: functest_tag
367 override-build-parameters: true
372 - name: 'functest-apex-virtual-suite-{stream}'
373 current-parameters: false
374 predefined-parameters: |
375 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
376 DOCKER_TAG=$DOCKER_TAG
377 FUNCTEST_SUITE_NAME=tempest_smoke
378 FUNCTEST_MODE=testcase
379 GERRIT_BRANCH=$GERRIT_BRANCH
380 GERRIT_REFSPEC=$GERRIT_REFSPEC
381 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
382 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
383 node-parameters: true
385 enable-condition: "def m = '$DEPLOY_SCENARIO' != 'k8s-nosdn-nofeature-noha'"
389 name: apex-fetch-logs
391 - name: 'apex-fetch-logs-{stream}'
392 current-parameters: true
393 predefined-parameters: |
394 GERRIT_BRANCH=$GERRIT_BRANCH
395 GERRIT_REFSPEC=$GERRIT_REFSPEC
396 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
397 node-parameters: true
402 ########################
404 ########################
409 !include-raw: ./apex-unit-test.sh