3 name: 'apex-verify-jobs'
6 - 'apex-verify-{stream}'
7 - 'apex-verify-gate-{stream}'
8 - 'apex-verify-unit-tests-{stream}'
13 verify-scenario: 'os-odl-nofeature-ha'
16 branch: 'stable/{stream}'
17 gs-pathname: '/{stream}'
18 verify-scenario: 'os-odl_l3-nofeature-ha'
20 - euphrates: &euphrates
21 branch: 'stable/{stream}'
22 gs-pathname: '/{stream}'
23 verify-scenario: 'os-odl-nofeature-ha'
28 name: 'apex-verify-unit-tests-{stream}'
30 node: 'apex-build-{stream}'
34 disabled: '{obj:disabled}'
38 gs-pathname: '{gs-pathname}'
48 server-name: 'gerrit.opnfv.org'
50 - patchset-created-event:
51 exclude-drafts: 'false'
52 exclude-trivial-rebase: 'false'
53 exclude-no-code-change: 'true'
54 - draft-published-event
55 - comment-added-contains-event:
56 comment-contains-value: 'recheck'
57 - comment-added-contains-event:
58 comment-contains-value: 'reverify'
60 - project-compare-type: 'ANT'
61 project-pattern: 'apex'
63 - branch-compare-type: 'ANT'
64 branch-pattern: '**/{branch}'
65 disable-strict-forbidden-file-verification: 'false'
68 pattern: 'apex/tests/**'
81 pattern: 'apex/build/**'
83 pattern: 'apex/common/**'
85 pattern: 'apex/inventory/**'
87 pattern: 'apex/network/**'
89 pattern: 'apex/overcloud/**'
91 pattern: 'apex/settings/**'
93 pattern: 'apex/undercloud/**'
95 pattern: 'apex/virtual/**'
109 name: 'apex-verify-{stream}'
113 disabled: '{obj:disabled}'
115 project-type: 'multijob'
118 - '{project}-virtual-{stream}-defaults'
120 gs-pathname: '{gs-pathname}/dev'
125 name: ARTIFACT_VERSION
127 description: "Used for overriding the ARTIFACT_VERSION"
133 server-name: 'gerrit.opnfv.org'
135 - patchset-created-event:
136 exclude-drafts: 'false'
137 exclude-trivial-rebase: 'false'
138 exclude-no-code-change: 'true'
139 - draft-published-event
140 - comment-added-contains-event:
141 comment-contains-value: 'recheck'
142 - comment-added-contains-event:
143 comment-contains-value: 'reverify'
145 - project-compare-type: 'ANT'
146 project-pattern: 'apex'
148 - branch-compare-type: 'ANT'
149 branch-pattern: '**/{branch}'
150 disable-strict-forbidden-file-verification: 'true'
165 pattern: 'apex/build/**'
167 pattern: 'apex/common/**'
169 pattern: 'apex/inventory/**'
171 pattern: 'apex/network/**'
173 pattern: 'apex/overcloud/**'
175 pattern: 'apex/settings/**'
177 pattern: 'apex/undercloud/**'
179 pattern: 'apex/virtual/**'
180 forbidden-file-paths:
182 pattern: 'apex/tests/**'
194 - description-setter:
195 description: "Built on $NODE_NAME"
198 condition: SUCCESSFUL
200 - name: 'apex-verify-unit-tests-{stream}'
201 current-parameters: false
202 predefined-parameters: |
203 GERRIT_BRANCH=$GERRIT_BRANCH
204 GERRIT_REFSPEC=$GERRIT_REFSPEC
205 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
206 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
207 node-parameters: false
208 kill-phase-on: FAILURE
213 condition: SUCCESSFUL
215 - name: 'apex-build-{stream}'
216 current-parameters: false
217 predefined-parameters: |
218 ARTIFACT_VERSION=$ARTIFACT_VERSION
219 GERRIT_BRANCH=$GERRIT_BRANCH
220 GERRIT_REFSPEC=$GERRIT_REFSPEC
221 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
222 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
223 node-parameters: false
224 kill-phase-on: FAILURE
229 condition: SUCCESSFUL
231 - name: 'apex-virtual-{stream}'
232 current-parameters: false
233 predefined-parameters: |
234 ARTIFACT_VERSION=$ARTIFACT_VERSION
235 DEPLOY_SCENARIO={verify-scenario}
237 GERRIT_BRANCH=$GERRIT_BRANCH
238 GERRIT_REFSPEC=$GERRIT_REFSPEC
239 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
240 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
241 node-parameters: false
242 kill-phase-on: FAILURE
246 # Verify Scenario Gate
248 name: 'apex-verify-gate-{stream}'
252 disabled: '{obj:disabled}'
254 project-type: 'multijob'
257 - '{project}-virtual-{stream}-defaults'
259 gs-pathname: '{gs-pathname}/dev'
265 default: https://gerrit.opnfv.org/gerrit/$PROJECT
266 description: "Used for overriding the GIT URL coming from parameters macro."
268 name: ARTIFACT_VERSION
270 description: "Used for overriding the ARTIFACT_VERSION"
277 server-name: 'gerrit.opnfv.org'
279 - comment-added-contains-event:
280 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
282 - project-compare-type: 'ANT'
283 project-pattern: 'apex'
285 - branch-compare-type: 'ANT'
286 branch-pattern: '**/{branch}'
302 use-build-blocker: true
315 condition: SUCCESSFUL
317 - name: 'apex-deploy-virtual-{stream}'
318 current-parameters: false
319 predefined-parameters: |
320 ARTIFACT_VERSION=$ARTIFACT_VERSION
323 GERRIT_BRANCH=$GERRIT_BRANCH
324 GERRIT_REFSPEC=$GERRIT_REFSPEC
325 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
326 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
327 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
328 node-parameters: true
329 kill-phase-on: FAILURE
332 # yamllint disable rule:line-length
334 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo 'os-.*') > detected_scenario
335 # yamllint enable rule:line-length
337 properties-file: detected_scenario
340 condition: SUCCESSFUL
342 - name: 'functest-apex-virtual-suite-{stream}'
343 current-parameters: false
344 predefined-parameters: |
345 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
347 FUNCTEST_TIER=healthcheck
348 GERRIT_BRANCH=$GERRIT_BRANCH
349 GERRIT_REFSPEC=$GERRIT_REFSPEC
350 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
351 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
352 node-parameters: true
357 ########################
359 ########################
364 !include-raw: ./apex-unit-test.sh