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}'
111 node: 'apex-virtual-master'
115 disabled: '{obj:disabled}'
117 project-type: 'multijob'
121 gs-pathname: '{gs-pathname}/dev'
126 name: ARTIFACT_VERSION
128 description: "Used for overriding the ARTIFACT_VERSION"
134 server-name: 'gerrit.opnfv.org'
136 - patchset-created-event:
137 exclude-drafts: 'false'
138 exclude-trivial-rebase: 'false'
139 exclude-no-code-change: 'true'
140 - draft-published-event
141 - comment-added-contains-event:
142 comment-contains-value: 'recheck'
143 - comment-added-contains-event:
144 comment-contains-value: 'reverify'
146 - project-compare-type: 'ANT'
147 project-pattern: 'apex'
149 - branch-compare-type: 'ANT'
150 branch-pattern: '**/{branch}'
151 disable-strict-forbidden-file-verification: 'true'
164 pattern: 'apex/build/**'
166 pattern: 'apex/common/**'
168 pattern: 'apex/inventory/**'
170 pattern: 'apex/network/**'
172 pattern: 'apex/overcloud/**'
174 pattern: 'apex/settings/**'
176 pattern: 'apex/undercloud/**'
178 pattern: 'apex/virtual/**'
179 forbidden-file-paths:
181 pattern: 'apex/tests/**'
193 - description-setter:
194 description: "Built on $NODE_NAME"
197 condition: SUCCESSFUL
199 - name: 'apex-verify-unit-tests-{stream}'
200 current-parameters: false
201 predefined-parameters: |
202 GERRIT_BRANCH=$GERRIT_BRANCH
203 GERRIT_REFSPEC=$GERRIT_REFSPEC
204 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
205 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
206 node-parameters: false
207 kill-phase-on: FAILURE
212 condition: SUCCESSFUL
214 - name: 'apex-build-{stream}'
215 current-parameters: false
216 predefined-parameters: |
217 ARTIFACT_VERSION=$ARTIFACT_VERSION
218 GERRIT_BRANCH=$GERRIT_BRANCH
219 GERRIT_REFSPEC=$GERRIT_REFSPEC
220 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
221 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
222 node-parameters: false
223 kill-phase-on: FAILURE
228 condition: SUCCESSFUL
230 - name: 'apex-virtual-{stream}'
231 current-parameters: false
232 predefined-parameters: |
233 ARTIFACT_VERSION=$ARTIFACT_VERSION
234 DEPLOY_SCENARIO={verify-scenario}
236 GERRIT_BRANCH=$GERRIT_BRANCH
237 GERRIT_REFSPEC=$GERRIT_REFSPEC
238 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
239 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
240 node-parameters: false
241 kill-phase-on: FAILURE
245 # Verify Scenario Gate
247 name: 'apex-verify-gate-{stream}'
249 node: 'apex-build-{stream}'
253 disabled: '{obj:disabled}'
255 project-type: 'multijob'
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