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'
166 pattern: 'apex/build/**'
168 pattern: 'apex/common/**'
170 pattern: 'apex/inventory/**'
172 pattern: 'apex/network/**'
174 pattern: 'apex/overcloud/**'
176 pattern: 'apex/settings/**'
178 pattern: 'apex/undercloud/**'
180 pattern: 'apex/virtual/**'
181 forbidden-file-paths:
183 pattern: 'apex/tests/**'
195 - description-setter:
196 description: "Built on $NODE_NAME"
199 condition: SUCCESSFUL
201 - name: 'apex-verify-unit-tests-{stream}'
202 current-parameters: false
203 predefined-parameters: |
204 GERRIT_BRANCH=$GERRIT_BRANCH
205 GERRIT_REFSPEC=$GERRIT_REFSPEC
206 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
207 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
208 node-parameters: false
209 kill-phase-on: FAILURE
214 condition: SUCCESSFUL
216 - name: 'apex-build-{stream}'
217 current-parameters: false
218 predefined-parameters: |
219 ARTIFACT_VERSION=$ARTIFACT_VERSION
220 GERRIT_BRANCH=$GERRIT_BRANCH
221 GERRIT_REFSPEC=$GERRIT_REFSPEC
222 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
223 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
224 node-parameters: false
225 kill-phase-on: FAILURE
230 condition: SUCCESSFUL
232 - name: 'apex-virtual-{stream}'
233 current-parameters: false
234 predefined-parameters: |
235 ARTIFACT_VERSION=$ARTIFACT_VERSION
236 DEPLOY_SCENARIO={verify-scenario}
238 GERRIT_BRANCH=$GERRIT_BRANCH
239 GERRIT_REFSPEC=$GERRIT_REFSPEC
240 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
241 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
242 node-parameters: false
243 kill-phase-on: FAILURE
247 # Verify Scenario Gate
249 name: 'apex-verify-gate-{stream}'
251 node: 'apex-build-{stream}'
255 disabled: '{obj:disabled}'
257 project-type: 'multijob'
261 gs-pathname: '{gs-pathname}/dev'
267 default: https://gerrit.opnfv.org/gerrit/$PROJECT
268 description: "Used for overriding the GIT URL coming from parameters macro."
270 name: ARTIFACT_VERSION
272 description: "Used for overriding the ARTIFACT_VERSION"
279 server-name: 'gerrit.opnfv.org'
281 - comment-added-contains-event:
282 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
284 - project-compare-type: 'ANT'
285 project-pattern: 'apex'
287 - branch-compare-type: 'ANT'
288 branch-pattern: '**/{branch}'
304 use-build-blocker: true
317 condition: SUCCESSFUL
319 - name: 'apex-deploy-virtual-{stream}'
320 current-parameters: false
321 predefined-parameters: |
322 ARTIFACT_VERSION=$ARTIFACT_VERSION
325 GERRIT_BRANCH=$GERRIT_BRANCH
326 GERRIT_REFSPEC=$GERRIT_REFSPEC
327 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
328 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
329 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
330 node-parameters: true
331 kill-phase-on: FAILURE
334 # yamllint disable rule:line-length
336 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo 'os-.*') > detected_scenario
337 # yamllint enable rule:line-length
339 properties-file: detected_scenario
342 condition: SUCCESSFUL
344 - name: 'functest-apex-virtual-suite-{stream}'
345 current-parameters: false
346 predefined-parameters: |
347 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
349 FUNCTEST_TIER=healthcheck
350 GERRIT_BRANCH=$GERRIT_BRANCH
351 GERRIT_REFSPEC=$GERRIT_REFSPEC
352 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
353 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
354 node-parameters: true
359 ########################
361 ########################
366 !include-raw: ./apex-unit-test.sh