blob: b9eba3f4943f836e0cbd8706176970c5ebfafc7d [file] [log] [blame]
Kailash8b8de742019-07-30 08:54:51 -07001---
2# voltha 2.0 tests
3
4- project:
5 name: voltha-e2e
6
7 project-name: '{name}'
8
9 jobs:
hwchiu14f97852019-10-08 10:51:11 -070010 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -070011 name: 'periodic-voltha-sanity-test'
Zack Williamsb3292082019-10-11 17:15:18 -070012 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavieraaa60f72019-09-20 09:11:21 -070013 default-image-tag: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070014 make-target: sanity-multi-kind
15 onus: 2
16 pons: 2
17 time-trigger: "H H/3 * * *"
18
19 - 'voltha-periodic-test':
20 name: 'periodic-voltha-scale-test'
21 pipeline-script: 'voltha-go-tests.groovy'
22 default-image-tag: 'master'
23 make-target: scale-multi-kind
24 onus: 2
25 pons: 8
26 time-trigger: "H H/3 * * *"
Kailashaad71012019-08-27 10:36:53 -070027
Andy Bavierbf68c5e2019-10-25 15:05:28 -070028 # Per-patchset Pod builds on Tucson pod
Andy Baviere9916452019-11-06 12:32:47 -070029 - 'verify_physical_voltha_patchset':
Andy Bavier19c98a22019-11-11 13:57:11 -070030 name: 'verify_physical_voltha_patchset'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070031 testvm: 'tucson-pod'
32 config-pod: 'tucson-pod'
33 branch: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -070034 pipeline-script: 'voltha-physical-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070035 oltDebVersion: 'openolt-seba-2.0.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070036 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070037 withPatchset: true
38
39 # Manual build job for Tucson pod
40 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -070041 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -070042 name: 'build_tucson-pod_manual'
43 testvm: 'tucson-pod'
44 config-pod: 'tucson-pod'
45 branch: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -070046 pipeline-script: 'voltha-physical-tests.groovy'
Andy Bavier19c98a22019-11-11 13:57:11 -070047 oltDebVersion: 'openolt-seba-2.0.deb'
48 profile: 'Default'
49 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -070050
Kailash8b8de742019-07-30 08:54:51 -070051- job-template:
Kailashaad71012019-08-27 10:36:53 -070052 id: 'voltha-periodic-test'
53 name: '{name}'
Kailash8b8de742019-07-30 08:54:51 -070054
55 description: |
56 <!-- Managed by Jenkins Job Builder -->
57 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
58 E2E Validation for Voltha 2.X
59
60 properties:
61 - cord-infra-properties:
62 build-days-to-keep: '{build-days-to-keep}'
63 artifact-num-to-keep: '{artifact-num-to-keep}'
64
65 wrappers:
66 - lf-infra-wrappers:
67 build-timeout: '{build-timeout}'
68 jenkins-ssh-credential: '{jenkins-ssh-credential}'
69
70 parameters:
71 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070072 name: buildNode
Kailash8b8de742019-07-30 08:54:51 -070073 default: 'ubuntu16.04-basebuild-4c-8g'
74 description: 'Name of the Jenkins node to run the job on'
75
76 - string:
Kailash8b8de742019-07-30 08:54:51 -070077 name: testTimeout
78 default: '90'
79 description: 'timeout for olt/onu validations'
80
81 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -070082 name: extraHelmFlags
Andy Bavier218385e2019-11-13 09:51:38 -070083 default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -070084 description: 'Helm flags to pass to ./voltha up'
85
Andy Bavierdabe9fc2019-10-24 17:10:48 -070086 - string:
Andy Bavier218385e2019-11-13 09:51:38 -070087 name: makeTarget
88 default: '{make-target}'
89 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -070090
Kailash8b8de742019-07-30 08:54:51 -070091 project-type: pipeline
92 concurrent: false
93
Zack Williamsb3292082019-10-11 17:15:18 -070094 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -070095
96 triggers:
hwchiu14f97852019-10-08 10:51:11 -070097 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -070098 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -070099 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700100
101- job-template:
102 id: 'voltha-patch-test'
Kailash53d86722019-09-05 09:08:41 -0700103 name: '{project}_sanity-system-test'
Kailashaad71012019-08-27 10:36:53 -0700104
105 description: |
106 <!-- Managed by Jenkins Job Builder -->
107 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
108 E2E Validation for Voltha 2.X
109
110 properties:
111 - cord-infra-properties:
112 build-days-to-keep: '{build-days-to-keep}'
113 artifact-num-to-keep: '{artifact-num-to-keep}'
114
115 wrappers:
116 - lf-infra-wrappers:
117 build-timeout: '{build-timeout}'
118 jenkins-ssh-credential: '{jenkins-ssh-credential}'
119
120 parameters:
121 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700122 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700123 default: 'ubuntu16.04-basebuild-4c-8g'
124 description: 'Name of the Jenkins node to run the job on'
125
126 - string:
127 name: manifestUrl
128 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
129 description: 'URL to the repo manifest'
130
131 - string:
hwchiu14f97852019-10-08 10:51:11 -0700132 name: manifestBranch
133 default: '$GERRIT_BRANCH'
134 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700135
136 - string:
hwchiu14f97852019-10-08 10:51:11 -0700137 name: gerritProject
138 default: '$GERRIT_PROJECT'
139 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700140
141 - string:
hwchiu14f97852019-10-08 10:51:11 -0700142 name: gerritChangeNumber
143 default: '$GERRIT_CHANGE_NUMBER'
144 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700145
146 - string:
hwchiu14f97852019-10-08 10:51:11 -0700147 name: gerritPatchsetNumber
148 default: '$GERRIT_PATCHSET_NUMBER'
149 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700150
151 - string:
152 name: numOnus
153 default: '1'
154 description: 'Number of onus per pon port'
155
156 - string:
hwchiu14f97852019-10-08 10:51:11 -0700157 name: emulationMode
158 default: '--set emulation_mode=both'
159 description: 'Emulation for BBSIM (both|aaa)'
Kailashaad71012019-08-27 10:36:53 -0700160
161 - string:
162 name: testTimeout
163 default: '90'
164 description: 'timeout for olt/onu validations'
165
166 - string:
167 name: testTags
168 default: '-e notready'
169 description: 'test tags'
170
Andy Bavierbedd0392019-10-16 13:58:18 -0700171 - string:
172 name: extraHelmFlags
173 default: '--set defaults.image_tag=$GERRIT_BRANCH'
174 description: 'Helm flags to pass to ./voltha up'
175
Kailashaad71012019-08-27 10:36:53 -0700176 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700177 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700178
Zack Williamsb3292082019-10-11 17:15:18 -0700179 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700180
181 triggers:
182 - cord-infra-gerrit-trigger-patchset:
183 gerrit-server-name: '{gerrit-server-name}'
Kailash53d86722019-09-05 09:08:41 -0700184 project-regexp: '^{project}$'
185 branch-regexp: '{branch-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700186 dependency-jobs: '{dependency-jobs}'
187 file-include-regexp: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700188
189# POD Per Patchset Pipeline Jobs
190
191- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700192 name: '{name}'
Andy Baviere9916452019-11-06 12:32:47 -0700193 id: verify_physical_voltha_patchset
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700194 description: |
195 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700196 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700197 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700198 Created by Andy Bavier, andy@opennetworking.org <br />
199 Copyright (c) 2019 Open Networking Foundation (ONF)
200 project-type: pipeline
201 sandbox: true
202
203 properties:
204 - cord-infra-properties:
205 build-days-to-keep: '{build-days-to-keep}'
206 artifact-num-to-keep: '{artifact-num-to-keep}'
207
208 parameters:
209 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700210 name: buildNode
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700211 default: '{testvm}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700212 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700213
214 - string:
215 name: manifestUrl
216 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
217 description: 'URL to the repo manifest'
218
219 - string:
220 name: manifestBranch
221 default: '$GERRIT_BRANCH'
222 description: 'Name of the repo branch to use'
223
224 - string:
225 name: gerritProject
226 default: '$GERRIT_PROJECT'
227 description: 'Name of the Gerrit project'
228
229 - string:
230 name: gerritChangeNumber
231 default: '$GERRIT_CHANGE_NUMBER'
232 description: 'Changeset number in Gerrit'
233
234 - string:
235 name: gerritPatchsetNumber
236 default: '$GERRIT_PATCHSET_NUMBER'
237 description: 'PatchSet number in Gerrit'
238
239 - string:
240 name: cordRepoUrl
241 default: '{gerrit-server-url}'
242 description: 'The URL of the CORD Project repository'
243
244 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700245 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700246 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700247
248 - string:
249 name: deploymentConfigFile
250 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
251 description: 'Path of deployment config file'
252
253 - string:
254 name: kindVolthaValuesFile
255 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
256 description: 'Path of kind-voltha values override file'
257
258 - string:
259 name: sadisConfigFile
260 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
261 description: 'Path of SADIS config to load'
262
263 - string:
264 name: localConfigDir
265 default: null
266 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
267
268 - string:
269 name: configRepo
270 default: 'pod-configs'
271 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700272
273 - string:
274 name: oltDebVersion
275 default: '{oltDebVersion}'
276 description: 'OLT Software version to install'
277
278 - string:
279 name: branch
280 default: '{branch}'
281
282 - string:
283 name: profile
284 default: '{profile}'
285 description: 'Technology Profile pushed to the ETCD'
286
287 - string:
288 name: notificationEmail
289 default: 'andy@opennetworking.org'
290 description: ''
291
292 - bool:
293 name: reinstallOlt
294 default: true
295 description: "Re-install OLT software"
296
Andy Bavier19c98a22019-11-11 13:57:11 -0700297 - bool:
298 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700299 default: true
300 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700301
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700302 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700303 concurrent: true
304
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700305 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700306
Andy Bavier1f465592019-11-06 10:03:56 -0700307 triggers:
308 - gerrit:
309 server-name: '{gerrit-server-name}'
310 dependency-jobs: '{dependency-jobs}'
311 silent-start: false
312 successful-message: "PASSED hardware test"
313 failure-message: "FAILED hardware test"
314 unstable-message: "UNSTABLE hardware test"
315 trigger-on:
316 - comment-added-contains-event:
317 comment-contains-value: '^hardware test$'
318 projects:
319 - project-compare-type: REG_EXP
Andy Baviere9916452019-11-06 12:32:47 -0700320 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests)$'
Andy Bavier1f465592019-11-06 10:03:56 -0700321 branches:
322 - branch-compare-type: PLAIN
323 branch-pattern: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700324
325- job-template:
326 name: '{name}'
327 id: build_physical_voltha_manual
328 description: |
329 <!-- Managed by Jenkins Job Builder -->
330 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
331 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
332 Created by Andy Bavier, andy@opennetworking.org <br />
333 Copyright (c) 2019 Open Networking Foundation (ONF)
334 project-type: pipeline
335 sandbox: true
336
337 properties:
338 - cord-infra-properties:
339 build-days-to-keep: '{build-days-to-keep}'
340 artifact-num-to-keep: '{artifact-num-to-keep}'
341
342 parameters:
343 - string:
344 name: buildNode
345 default: '{testvm}'
346 description: 'Pod management node'
347
348 - string:
349 name: manifestUrl
350 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
351 description: 'URL to the repo manifest'
352
353 - string:
354 name: manifestBranch
355 default: '$GERRIT_BRANCH'
356 description: 'Name of the repo branch to use'
357
358 - string:
359 name: gerritProject
360 default: '$GERRIT_PROJECT'
361 description: 'Name of the Gerrit project'
362
363 - string:
364 name: gerritChangeNumber
365 default: '$GERRIT_CHANGE_NUMBER'
366 description: 'Changeset number in Gerrit'
367
368 - string:
369 name: gerritPatchsetNumber
370 default: '$GERRIT_PATCHSET_NUMBER'
371 description: 'PatchSet number in Gerrit'
372
373 - string:
374 name: cordRepoUrl
375 default: '{gerrit-server-url}'
376 description: 'The URL of the CORD Project repository'
377
378 - string:
379 name: podName
380 default: '{config-pod}'
381
382 - string:
383 name: deploymentConfigFile
384 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
385 description: 'Path of deployment config file'
386
387 - string:
388 name: kindVolthaValuesFile
389 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
390 description: 'Path of kind-voltha values override file'
391
392 - string:
393 name: sadisConfigFile
394 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
395 description: 'Path of SADIS config to load'
396
397 - string:
398 name: localConfigDir
399 default: null
400 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
401
402 - string:
403 name: configRepo
404 default: 'pod-configs'
405 description: 'A repository containing the config files, will be checked out if specified'
406
407 - string:
408 name: oltDebVersion
409 default: '{oltDebVersion}'
410 description: 'OLT Software version to install'
411
412 - string:
413 name: branch
414 default: '{branch}'
415
416 - string:
417 name: profile
418 default: '{profile}'
419 description: 'Technology Profile pushed to the ETCD'
420
421 - string:
422 name: notificationEmail
423 default: 'andy@opennetworking.org'
424 description: ''
425
426 - bool:
427 name: reinstallOlt
428 default: false
429 description: "Re-install OLT software"
430
431 - bool:
432 name: withPatchset
433 default: false
434 description: "Build with Gerrit patchset"
435
436 project-type: pipeline
437 concurrent: true
438
439 dsl: !include-raw-escape: pipeline/{pipeline-script}