blob: 8ad3297ded24b0daae8a61ef1d80b2da6ca7cecd [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':
Kailashaad71012019-08-27 10:36:53 -070011 name: 'voltha-system-tests'
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'
Kailashaad71012019-08-27 10:36:53 -070014
Andy Bavierbf68c5e2019-10-25 15:05:28 -070015 # Per-patchset Pod builds on Tucson pod
Andy Baviere9916452019-11-06 12:32:47 -070016 - 'verify_physical_voltha_patchset':
Andy Bavier19c98a22019-11-11 13:57:11 -070017 name: 'verify_physical_voltha_patchset'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070018 testvm: 'tucson-pod'
19 config-pod: 'tucson-pod'
20 branch: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -070021 pipeline-script: 'voltha-physical-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070022 oltDebVersion: 'openolt-seba-2.0.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070023 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070024 withPatchset: true
25
26 # Manual build job for Tucson pod
27 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -070028 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -070029 name: 'build_tucson-pod_manual'
30 testvm: 'tucson-pod'
31 config-pod: 'tucson-pod'
32 branch: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -070033 pipeline-script: 'voltha-physical-tests.groovy'
Andy Bavier19c98a22019-11-11 13:57:11 -070034 oltDebVersion: 'openolt-seba-2.0.deb'
35 profile: 'Default'
36 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -070037
Kailash8b8de742019-07-30 08:54:51 -070038- job-template:
Kailashaad71012019-08-27 10:36:53 -070039 id: 'voltha-periodic-test'
40 name: '{name}'
Kailash8b8de742019-07-30 08:54:51 -070041
42 description: |
43 <!-- Managed by Jenkins Job Builder -->
44 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
45 E2E Validation for Voltha 2.X
46
47 properties:
48 - cord-infra-properties:
49 build-days-to-keep: '{build-days-to-keep}'
50 artifact-num-to-keep: '{artifact-num-to-keep}'
51
52 wrappers:
53 - lf-infra-wrappers:
54 build-timeout: '{build-timeout}'
55 jenkins-ssh-credential: '{jenkins-ssh-credential}'
56
57 parameters:
58 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070059 name: buildNode
Kailash8b8de742019-07-30 08:54:51 -070060 default: 'ubuntu16.04-basebuild-4c-8g'
61 description: 'Name of the Jenkins node to run the job on'
62
63 - string:
64 name: numOnus
65 default: '1'
66 description: 'Number of onus per pon port'
67
68 - string:
hwchiu14f97852019-10-08 10:51:11 -070069 name: emulationMode
70 default: '--set emulation_mode=both'
71 description: 'Emulation for BBSIM (both|aaa)'
Kailash8b8de742019-07-30 08:54:51 -070072
73 - string:
74 name: testTimeout
75 default: '90'
76 description: 'timeout for olt/onu validations'
77
78 - string:
79 name: testTags
80 default: '-e notready'
81 description: 'test tags'
82
Andy Bavierea26c5c2019-09-18 08:09:17 -070083 - string:
84 name: extraHelmFlags
Andy Bavierdabe9fc2019-10-24 17:10:48 -070085 default: '--set defaults.image_tag={default-image-tag},onu=2,pon=2'
Andy Bavierea26c5c2019-09-18 08:09:17 -070086 description: 'Helm flags to pass to ./voltha up'
87
Andy Bavierdabe9fc2019-10-24 17:10:48 -070088 - string:
89 name: robotVarFile
90 default: 'bbsim-kind-2x2.yaml'
91 description: 'Pod config file to use for tests'
92
Kailash8b8de742019-07-30 08:54:51 -070093 project-type: pipeline
94 concurrent: false
95
Zack Williamsb3292082019-10-11 17:15:18 -070096 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -070097
98 triggers:
hwchiu14f97852019-10-08 10:51:11 -070099 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700100 TZ=America/Los_Angeles
Andy Bavierc08e4d22019-09-18 10:08:12 -0700101 H/30 * * * *
Kailashaad71012019-08-27 10:36:53 -0700102
103- job-template:
104 id: 'voltha-patch-test'
Kailash53d86722019-09-05 09:08:41 -0700105 name: '{project}_sanity-system-test'
Kailashaad71012019-08-27 10:36:53 -0700106
107 description: |
108 <!-- Managed by Jenkins Job Builder -->
109 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
110 E2E Validation for Voltha 2.X
111
112 properties:
113 - cord-infra-properties:
114 build-days-to-keep: '{build-days-to-keep}'
115 artifact-num-to-keep: '{artifact-num-to-keep}'
116
117 wrappers:
118 - lf-infra-wrappers:
119 build-timeout: '{build-timeout}'
120 jenkins-ssh-credential: '{jenkins-ssh-credential}'
121
122 parameters:
123 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700124 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700125 default: 'ubuntu16.04-basebuild-4c-8g'
126 description: 'Name of the Jenkins node to run the job on'
127
128 - string:
129 name: manifestUrl
130 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
131 description: 'URL to the repo manifest'
132
133 - string:
hwchiu14f97852019-10-08 10:51:11 -0700134 name: manifestBranch
135 default: '$GERRIT_BRANCH'
136 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700137
138 - string:
hwchiu14f97852019-10-08 10:51:11 -0700139 name: gerritProject
140 default: '$GERRIT_PROJECT'
141 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700142
143 - string:
hwchiu14f97852019-10-08 10:51:11 -0700144 name: gerritChangeNumber
145 default: '$GERRIT_CHANGE_NUMBER'
146 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700147
148 - string:
hwchiu14f97852019-10-08 10:51:11 -0700149 name: gerritPatchsetNumber
150 default: '$GERRIT_PATCHSET_NUMBER'
151 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700152
153 - string:
154 name: numOnus
155 default: '1'
156 description: 'Number of onus per pon port'
157
158 - string:
hwchiu14f97852019-10-08 10:51:11 -0700159 name: emulationMode
160 default: '--set emulation_mode=both'
161 description: 'Emulation for BBSIM (both|aaa)'
Kailashaad71012019-08-27 10:36:53 -0700162
163 - string:
164 name: testTimeout
165 default: '90'
166 description: 'timeout for olt/onu validations'
167
168 - string:
169 name: testTags
170 default: '-e notready'
171 description: 'test tags'
172
Andy Bavierbedd0392019-10-16 13:58:18 -0700173 - string:
174 name: extraHelmFlags
175 default: '--set defaults.image_tag=$GERRIT_BRANCH'
176 description: 'Helm flags to pass to ./voltha up'
177
Kailashaad71012019-08-27 10:36:53 -0700178 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700179 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700180
Zack Williamsb3292082019-10-11 17:15:18 -0700181 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700182
183 triggers:
184 - cord-infra-gerrit-trigger-patchset:
185 gerrit-server-name: '{gerrit-server-name}'
Kailash53d86722019-09-05 09:08:41 -0700186 project-regexp: '^{project}$'
187 branch-regexp: '{branch-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700188 dependency-jobs: '{dependency-jobs}'
189 file-include-regexp: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700190
191# POD Per Patchset Pipeline Jobs
192
193- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700194 name: '{name}'
Andy Baviere9916452019-11-06 12:32:47 -0700195 id: verify_physical_voltha_patchset
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700196 description: |
197 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700198 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700199 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700200 Created by Andy Bavier, andy@opennetworking.org <br />
201 Copyright (c) 2019 Open Networking Foundation (ONF)
202 project-type: pipeline
203 sandbox: true
204
205 properties:
206 - cord-infra-properties:
207 build-days-to-keep: '{build-days-to-keep}'
208 artifact-num-to-keep: '{artifact-num-to-keep}'
209
210 parameters:
211 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700212 name: buildNode
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700213 default: '{testvm}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700214 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700215
216 - string:
217 name: manifestUrl
218 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
219 description: 'URL to the repo manifest'
220
221 - string:
222 name: manifestBranch
223 default: '$GERRIT_BRANCH'
224 description: 'Name of the repo branch to use'
225
226 - string:
227 name: gerritProject
228 default: '$GERRIT_PROJECT'
229 description: 'Name of the Gerrit project'
230
231 - string:
232 name: gerritChangeNumber
233 default: '$GERRIT_CHANGE_NUMBER'
234 description: 'Changeset number in Gerrit'
235
236 - string:
237 name: gerritPatchsetNumber
238 default: '$GERRIT_PATCHSET_NUMBER'
239 description: 'PatchSet number in Gerrit'
240
241 - string:
242 name: cordRepoUrl
243 default: '{gerrit-server-url}'
244 description: 'The URL of the CORD Project repository'
245
246 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700247 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700248 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700249
250 - string:
251 name: deploymentConfigFile
252 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
253 description: 'Path of deployment config file'
254
255 - string:
256 name: kindVolthaValuesFile
257 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
258 description: 'Path of kind-voltha values override file'
259
260 - string:
261 name: sadisConfigFile
262 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
263 description: 'Path of SADIS config to load'
264
265 - string:
266 name: localConfigDir
267 default: null
268 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
269
270 - string:
271 name: configRepo
272 default: 'pod-configs'
273 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700274
275 - string:
276 name: oltDebVersion
277 default: '{oltDebVersion}'
278 description: 'OLT Software version to install'
279
280 - string:
281 name: branch
282 default: '{branch}'
283
284 - string:
285 name: profile
286 default: '{profile}'
287 description: 'Technology Profile pushed to the ETCD'
288
289 - string:
290 name: notificationEmail
291 default: 'andy@opennetworking.org'
292 description: ''
293
294 - bool:
295 name: reinstallOlt
296 default: true
297 description: "Re-install OLT software"
298
Andy Bavier19c98a22019-11-11 13:57:11 -0700299 - bool:
300 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700301 default: true
302 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700303
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700304 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700305 concurrent: true
306
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700307 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700308
Andy Bavier1f465592019-11-06 10:03:56 -0700309 triggers:
310 - gerrit:
311 server-name: '{gerrit-server-name}'
312 dependency-jobs: '{dependency-jobs}'
313 silent-start: false
314 successful-message: "PASSED hardware test"
315 failure-message: "FAILED hardware test"
316 unstable-message: "UNSTABLE hardware test"
317 trigger-on:
318 - comment-added-contains-event:
319 comment-contains-value: '^hardware test$'
320 projects:
321 - project-compare-type: REG_EXP
Andy Baviere9916452019-11-06 12:32:47 -0700322 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests)$'
Andy Bavier1f465592019-11-06 10:03:56 -0700323 branches:
324 - branch-compare-type: PLAIN
325 branch-pattern: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700326
327- job-template:
328 name: '{name}'
329 id: build_physical_voltha_manual
330 description: |
331 <!-- Managed by Jenkins Job Builder -->
332 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
333 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
334 Created by Andy Bavier, andy@opennetworking.org <br />
335 Copyright (c) 2019 Open Networking Foundation (ONF)
336 project-type: pipeline
337 sandbox: true
338
339 properties:
340 - cord-infra-properties:
341 build-days-to-keep: '{build-days-to-keep}'
342 artifact-num-to-keep: '{artifact-num-to-keep}'
343
344 parameters:
345 - string:
346 name: buildNode
347 default: '{testvm}'
348 description: 'Pod management node'
349
350 - string:
351 name: manifestUrl
352 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
353 description: 'URL to the repo manifest'
354
355 - string:
356 name: manifestBranch
357 default: '$GERRIT_BRANCH'
358 description: 'Name of the repo branch to use'
359
360 - string:
361 name: gerritProject
362 default: '$GERRIT_PROJECT'
363 description: 'Name of the Gerrit project'
364
365 - string:
366 name: gerritChangeNumber
367 default: '$GERRIT_CHANGE_NUMBER'
368 description: 'Changeset number in Gerrit'
369
370 - string:
371 name: gerritPatchsetNumber
372 default: '$GERRIT_PATCHSET_NUMBER'
373 description: 'PatchSet number in Gerrit'
374
375 - string:
376 name: cordRepoUrl
377 default: '{gerrit-server-url}'
378 description: 'The URL of the CORD Project repository'
379
380 - string:
381 name: podName
382 default: '{config-pod}'
383
384 - string:
385 name: deploymentConfigFile
386 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
387 description: 'Path of deployment config file'
388
389 - string:
390 name: kindVolthaValuesFile
391 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
392 description: 'Path of kind-voltha values override file'
393
394 - string:
395 name: sadisConfigFile
396 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
397 description: 'Path of SADIS config to load'
398
399 - string:
400 name: localConfigDir
401 default: null
402 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
403
404 - string:
405 name: configRepo
406 default: 'pod-configs'
407 description: 'A repository containing the config files, will be checked out if specified'
408
409 - string:
410 name: oltDebVersion
411 default: '{oltDebVersion}'
412 description: 'OLT Software version to install'
413
414 - string:
415 name: branch
416 default: '{branch}'
417
418 - string:
419 name: profile
420 default: '{profile}'
421 description: 'Technology Profile pushed to the ETCD'
422
423 - string:
424 name: notificationEmail
425 default: 'andy@opennetworking.org'
426 description: ''
427
428 - bool:
429 name: reinstallOlt
430 default: false
431 description: "Re-install OLT software"
432
433 - bool:
434 name: withPatchset
435 default: false
436 description: "Build with Gerrit patchset"
437
438 project-type: pipeline
439 concurrent: true
440
441 dsl: !include-raw-escape: pipeline/{pipeline-script}