blob: 7ac9609763c077059d1a1b28350c56d14f316440 [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':
hwchiufdc49242019-11-18 16:37:22 -080020 name: 'periodic-voltha-system-test'
21 pipeline-script: 'voltha-system-test-bbsim.groovy'
22 default-image-tag: 'master'
23 make-target: sanity-multi-kind
24 onus: 2
25 pons: 2
26 time-trigger: "H H/12 * * *"
27
28 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -070029 name: 'periodic-voltha-scale-test'
30 pipeline-script: 'voltha-go-tests.groovy'
31 default-image-tag: 'master'
32 make-target: scale-multi-kind
33 onus: 2
34 pons: 8
35 time-trigger: "H H/3 * * *"
Kailashaad71012019-08-27 10:36:53 -070036
Andy Bavierbf68c5e2019-10-25 15:05:28 -070037 # Per-patchset Pod builds on Tucson pod
Andy Baviere9916452019-11-06 12:32:47 -070038 - 'verify_physical_voltha_patchset':
Andy Bavier19c98a22019-11-11 13:57:11 -070039 name: 'verify_physical_voltha_patchset'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070040 testvm: 'tucson-pod'
41 config-pod: 'tucson-pod'
42 branch: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -070043 pipeline-script: 'voltha-physical-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070044 oltDebVersion: 'openolt-seba-2.0.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070045 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070046 withPatchset: true
47
48 # Manual build job for Tucson pod
49 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -070050 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -070051 name: 'build_tucson-pod_manual'
52 testvm: 'tucson-pod'
53 config-pod: 'tucson-pod'
54 branch: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -070055 pipeline-script: 'voltha-physical-tests.groovy'
Andy Bavier19c98a22019-11-11 13:57:11 -070056 oltDebVersion: 'openolt-seba-2.0.deb'
57 profile: 'Default'
58 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -070059
Kailash8b8de742019-07-30 08:54:51 -070060- job-template:
Kailashaad71012019-08-27 10:36:53 -070061 id: 'voltha-periodic-test'
62 name: '{name}'
Kailash8b8de742019-07-30 08:54:51 -070063
64 description: |
65 <!-- Managed by Jenkins Job Builder -->
66 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
67 E2E Validation for Voltha 2.X
68
69 properties:
70 - cord-infra-properties:
71 build-days-to-keep: '{build-days-to-keep}'
72 artifact-num-to-keep: '{artifact-num-to-keep}'
73
74 wrappers:
75 - lf-infra-wrappers:
76 build-timeout: '{build-timeout}'
77 jenkins-ssh-credential: '{jenkins-ssh-credential}'
78
79 parameters:
80 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070081 name: buildNode
Kailash8b8de742019-07-30 08:54:51 -070082 default: 'ubuntu16.04-basebuild-4c-8g'
83 description: 'Name of the Jenkins node to run the job on'
84
85 - string:
Kailash8b8de742019-07-30 08:54:51 -070086 name: testTimeout
87 default: '90'
88 description: 'timeout for olt/onu validations'
89
90 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -070091 name: extraHelmFlags
Andy Bavier218385e2019-11-13 09:51:38 -070092 default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -070093 description: 'Helm flags to pass to ./voltha up'
94
Andy Bavierdabe9fc2019-10-24 17:10:48 -070095 - string:
Andy Bavier218385e2019-11-13 09:51:38 -070096 name: makeTarget
97 default: '{make-target}'
98 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -070099
Kailash8b8de742019-07-30 08:54:51 -0700100 project-type: pipeline
101 concurrent: false
102
Zack Williamsb3292082019-10-11 17:15:18 -0700103 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700104
105 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700106 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700107 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700108 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700109
110- job-template:
111 id: 'voltha-patch-test'
Kailash53d86722019-09-05 09:08:41 -0700112 name: '{project}_sanity-system-test'
Kailashaad71012019-08-27 10:36:53 -0700113
114 description: |
115 <!-- Managed by Jenkins Job Builder -->
116 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
117 E2E Validation for Voltha 2.X
118
119 properties:
120 - cord-infra-properties:
121 build-days-to-keep: '{build-days-to-keep}'
122 artifact-num-to-keep: '{artifact-num-to-keep}'
123
124 wrappers:
125 - lf-infra-wrappers:
126 build-timeout: '{build-timeout}'
127 jenkins-ssh-credential: '{jenkins-ssh-credential}'
128
129 parameters:
130 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700131 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700132 default: 'ubuntu16.04-basebuild-4c-8g'
133 description: 'Name of the Jenkins node to run the job on'
134
135 - string:
136 name: manifestUrl
137 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
138 description: 'URL to the repo manifest'
139
140 - string:
hwchiu14f97852019-10-08 10:51:11 -0700141 name: manifestBranch
142 default: '$GERRIT_BRANCH'
143 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700144
145 - string:
hwchiu14f97852019-10-08 10:51:11 -0700146 name: gerritProject
147 default: '$GERRIT_PROJECT'
148 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700149
150 - string:
hwchiu14f97852019-10-08 10:51:11 -0700151 name: gerritChangeNumber
152 default: '$GERRIT_CHANGE_NUMBER'
153 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700154
155 - string:
hwchiu14f97852019-10-08 10:51:11 -0700156 name: gerritPatchsetNumber
157 default: '$GERRIT_PATCHSET_NUMBER'
158 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700159
160 - string:
161 name: numOnus
162 default: '1'
163 description: 'Number of onus per pon port'
164
165 - string:
hwchiu14f97852019-10-08 10:51:11 -0700166 name: emulationMode
167 default: '--set emulation_mode=both'
168 description: 'Emulation for BBSIM (both|aaa)'
Kailashaad71012019-08-27 10:36:53 -0700169
170 - string:
171 name: testTimeout
172 default: '90'
173 description: 'timeout for olt/onu validations'
174
175 - string:
176 name: testTags
177 default: '-e notready'
178 description: 'test tags'
179
Andy Bavierbedd0392019-10-16 13:58:18 -0700180 - string:
181 name: extraHelmFlags
182 default: '--set defaults.image_tag=$GERRIT_BRANCH'
183 description: 'Helm flags to pass to ./voltha up'
184
Kailashaad71012019-08-27 10:36:53 -0700185 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700186 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700187
Zack Williamsb3292082019-10-11 17:15:18 -0700188 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700189
190 triggers:
191 - cord-infra-gerrit-trigger-patchset:
192 gerrit-server-name: '{gerrit-server-name}'
Kailash53d86722019-09-05 09:08:41 -0700193 project-regexp: '^{project}$'
194 branch-regexp: '{branch-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700195 dependency-jobs: '{dependency-jobs}'
196 file-include-regexp: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700197
198# POD Per Patchset Pipeline Jobs
199
200- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700201 name: '{name}'
Andy Baviere9916452019-11-06 12:32:47 -0700202 id: verify_physical_voltha_patchset
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700203 description: |
204 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700205 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700206 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700207 Created by Andy Bavier, andy@opennetworking.org <br />
208 Copyright (c) 2019 Open Networking Foundation (ONF)
209 project-type: pipeline
210 sandbox: true
211
212 properties:
213 - cord-infra-properties:
214 build-days-to-keep: '{build-days-to-keep}'
215 artifact-num-to-keep: '{artifact-num-to-keep}'
216
217 parameters:
218 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700219 name: buildNode
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700220 default: '{testvm}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700221 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700222
223 - string:
224 name: manifestUrl
225 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
226 description: 'URL to the repo manifest'
227
228 - string:
229 name: manifestBranch
230 default: '$GERRIT_BRANCH'
231 description: 'Name of the repo branch to use'
232
233 - string:
234 name: gerritProject
235 default: '$GERRIT_PROJECT'
236 description: 'Name of the Gerrit project'
237
238 - string:
239 name: gerritChangeNumber
240 default: '$GERRIT_CHANGE_NUMBER'
241 description: 'Changeset number in Gerrit'
242
243 - string:
244 name: gerritPatchsetNumber
245 default: '$GERRIT_PATCHSET_NUMBER'
246 description: 'PatchSet number in Gerrit'
247
248 - string:
249 name: cordRepoUrl
250 default: '{gerrit-server-url}'
251 description: 'The URL of the CORD Project repository'
252
253 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700254 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700255 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700256
257 - string:
258 name: deploymentConfigFile
259 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
260 description: 'Path of deployment config file'
261
262 - string:
263 name: kindVolthaValuesFile
264 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
265 description: 'Path of kind-voltha values override file'
266
267 - string:
268 name: sadisConfigFile
269 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
270 description: 'Path of SADIS config to load'
271
272 - string:
273 name: localConfigDir
274 default: null
275 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
276
277 - string:
278 name: configRepo
279 default: 'pod-configs'
280 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700281
282 - string:
283 name: oltDebVersion
284 default: '{oltDebVersion}'
285 description: 'OLT Software version to install'
286
287 - string:
288 name: branch
289 default: '{branch}'
290
291 - string:
292 name: profile
293 default: '{profile}'
294 description: 'Technology Profile pushed to the ETCD'
295
296 - string:
297 name: notificationEmail
298 default: 'andy@opennetworking.org'
299 description: ''
300
301 - bool:
302 name: reinstallOlt
303 default: true
304 description: "Re-install OLT software"
305
Andy Bavier19c98a22019-11-11 13:57:11 -0700306 - bool:
307 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700308 default: true
309 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700310
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700311 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700312 concurrent: true
313
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700314 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700315
Andy Bavier1f465592019-11-06 10:03:56 -0700316 triggers:
317 - gerrit:
318 server-name: '{gerrit-server-name}'
319 dependency-jobs: '{dependency-jobs}'
320 silent-start: false
321 successful-message: "PASSED hardware test"
322 failure-message: "FAILED hardware test"
323 unstable-message: "UNSTABLE hardware test"
324 trigger-on:
325 - comment-added-contains-event:
326 comment-contains-value: '^hardware test$'
327 projects:
328 - project-compare-type: REG_EXP
Andy Baviere9916452019-11-06 12:32:47 -0700329 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests)$'
Andy Bavier1f465592019-11-06 10:03:56 -0700330 branches:
331 - branch-compare-type: PLAIN
332 branch-pattern: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700333
334- job-template:
335 name: '{name}'
336 id: build_physical_voltha_manual
337 description: |
338 <!-- Managed by Jenkins Job Builder -->
339 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
340 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
341 Created by Andy Bavier, andy@opennetworking.org <br />
342 Copyright (c) 2019 Open Networking Foundation (ONF)
343 project-type: pipeline
344 sandbox: true
345
346 properties:
347 - cord-infra-properties:
348 build-days-to-keep: '{build-days-to-keep}'
349 artifact-num-to-keep: '{artifact-num-to-keep}'
350
351 parameters:
352 - string:
353 name: buildNode
354 default: '{testvm}'
355 description: 'Pod management node'
356
357 - string:
358 name: manifestUrl
359 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
360 description: 'URL to the repo manifest'
361
362 - string:
363 name: manifestBranch
364 default: '$GERRIT_BRANCH'
365 description: 'Name of the repo branch to use'
366
367 - string:
368 name: gerritProject
369 default: '$GERRIT_PROJECT'
370 description: 'Name of the Gerrit project'
371
372 - string:
373 name: gerritChangeNumber
374 default: '$GERRIT_CHANGE_NUMBER'
375 description: 'Changeset number in Gerrit'
376
377 - string:
378 name: gerritPatchsetNumber
379 default: '$GERRIT_PATCHSET_NUMBER'
380 description: 'PatchSet number in Gerrit'
381
382 - string:
383 name: cordRepoUrl
384 default: '{gerrit-server-url}'
385 description: 'The URL of the CORD Project repository'
386
387 - string:
388 name: podName
389 default: '{config-pod}'
390
391 - string:
392 name: deploymentConfigFile
393 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
394 description: 'Path of deployment config file'
395
396 - string:
397 name: kindVolthaValuesFile
398 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
399 description: 'Path of kind-voltha values override file'
400
401 - string:
402 name: sadisConfigFile
403 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
404 description: 'Path of SADIS config to load'
405
406 - string:
407 name: localConfigDir
408 default: null
409 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
410
411 - string:
412 name: configRepo
413 default: 'pod-configs'
414 description: 'A repository containing the config files, will be checked out if specified'
415
416 - string:
417 name: oltDebVersion
418 default: '{oltDebVersion}'
419 description: 'OLT Software version to install'
420
421 - string:
422 name: branch
423 default: '{branch}'
424
425 - string:
426 name: profile
427 default: '{profile}'
428 description: 'Technology Profile pushed to the ETCD'
429
430 - string:
431 name: notificationEmail
432 default: 'andy@opennetworking.org'
433 description: ''
434
435 - bool:
436 name: reinstallOlt
437 default: false
438 description: "Re-install OLT software"
439
440 - bool:
441 name: withPatchset
442 default: false
443 description: "Build with Gerrit patchset"
444
445 project-type: pipeline
446 concurrent: true
447
448 dsl: !include-raw-escape: pipeline/{pipeline-script}