blob: 9b91d7236a3d66b1948710327f52ed0f0ed3c391 [file] [log] [blame]
Matteo Scandolo9973c652020-08-07 15:23:35 -07001---
2# list of parameters for the VOLTHA Jobs,
3# used as anchor so that can be shared across multiple jobs
4# to use in a job: `parameters: *voltha-build-job-parameters`
5- voltha-build-job-parameters: &voltha-build-job-parameters
6 name: voltha-build-job-parameters
Andrea Campanella6dfc0432021-01-12 10:43:16 +01007
8 openoltAdapterChart: onf/voltha-adapter-openolt
9
Andrea Campanellace8aa762021-08-27 09:32:22 +020010 oltAdapterReleaseName: open-olt
11
Andrea Campanellaecefbc82021-08-27 11:06:31 +020012 waitTimerForOltUp: 360
13
Matteo Scandolo9973c652020-08-07 15:23:35 -070014 parameters:
15 - string:
16 name: buildNode
17 default: '{build-node}'
18 description: 'Name of the Jenkins executor node to run the job on'
19
20 - string:
21 name: TestNodeName
22 default: '{build-node}'
23 description: 'DEPRECATED - use buildNode instead'
24
25 - string:
Matteo Scandolo982b69d2021-05-10 12:01:57 -070026 name: logLevel
27 default: '{logLevel}'
28 description: 'Log level for all the components'
29
30 - string:
Matteo Scandolo9973c652020-08-07 15:23:35 -070031 name: cordRepoUrl
32 default: '{gerrit-server-url}'
33 description: 'The URL of the CORD Project repository'
34
35 - string:
36 name: configBaseDir
37 default: 'pod-configs'
38 description: 'The directory inside the POD configs repository'
39
40 - string:
41 name: configDeploymentDir
42 default: 'deployment-configs'
43 description: 'The deployment configs folder'
44
45 - string:
46 name: configKubernetesDir
47 default: 'kubernetes-configs'
48 description: 'The kubernetes config folder'
49
50 - string:
51 name: configToscaDir
52 default: 'tosca-configs'
53 description: 'The tosca config folder'
54
55 - string:
56 name: configFileName
57 default: '{config-pod}'
58 description: 'The config file'
59
60 - string:
61 name: profile
62 default: '{profile}'
63 description: 'Technology Profile pushed to the ETCD'
64
65 - string:
66 name: helmRepoUrl
67 default: 'https://charts.opencord.org'
68 description: 'URL where helm-charts are published'
69
70 - string:
71 name: branch
72 default: '{branch}'
73
74 - string:
Matteo Scandolo9973c652020-08-07 15:23:35 -070075 name: workFlow
76 default: '{work-flow}'
77 description: 'Installs and uses the specified work flow on the POD'
78
Matteo Scandolod47bfb22021-05-24 09:40:05 -070079 - string:
80 name: extraHelmFlags
81 default: '{extraHelmFlags}'
82 description: 'Helm flags (passed to each deployment)'
83
Matteo Scandolod82d1de2021-04-06 14:55:58 -070084 # openonu-go only supports a single replica, remove after 2.8
Matteo Scandolo9973c652020-08-07 15:23:35 -070085 - string:
86 name: NumOfOpenOnu
87 default: '{num-of-openonu}'
88 description: 'Installs the specified Number of OpenOnu Adapters'
89
90 - string:
91 name: NumOfOnos
92 default: '{num-of-onos}'
93 description: 'Installs the specified Number of ONOS instances'
94
Hardik Windlass6598b032021-07-02 10:12:01 +000095 - bool:
96 name: enableMultiUni
97 default: '{enableMultiUni}'
98 description: "Enables the Multi UNI feature"
99
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530100 - bool:
101 name: withFttb
102 default: '{withFttb}'
103 description: "Deploy with FTTB"
104
Hardik Windlass6598b032021-07-02 10:12:01 +0000105 - string:
106 name: uniPortMask
107 default: '{uniPortMask}'
108 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
109
Suchitra Vemuridddc3ac2021-02-11 15:40:43 -0800110 - string:
Hardik Windlass908533a2021-05-24 16:35:58 +0000111 name: bbsimReplicas
112 default: '{bbsimReplicas}'
113 description: 'Installs the specified Number of BBSim Instances'
114
115 - string:
Suchitra Vemuridddc3ac2021-02-11 15:40:43 -0800116 name: onuNumber
117 default: '{num-of-onus}'
118 description: "Onus per PonPort"
119
120 - string:
121 name: ponNumber
122 default: '{num-of-ponports}'
123 description: "Number of PON Ports"
124
Matteo Scandolo9973c652020-08-07 15:23:35 -0700125 - string:
126 name: NumOfAtomix
127 default: '{num-of-atomix}'
128 description: 'Installs the specified Number of Atomix Instances'
129
Hardik Windlassc7379022021-05-12 13:52:24 +0530130 - string:
131 name: NumOfKafka
132 default: '{num-of-kafka}'
133 description: 'Installs the specified Number of Kafka Instances'
134
135 - string:
136 name: NumOfEtcd
137 default: '{num-of-etcd}'
138 description: 'Installs the specified Number of Etcd Instances'
139
Matteo Scandolo9973c652020-08-07 15:23:35 -0700140 - bool:
141 name: configurePod
142 default: true
143 description: "Configure POD via TOSCA post build"
144
145 - bool:
146 name: reinstallOlt
147 default: '{reinstall-olt}'
148 description: "Re-install olt software bringing up CORD"
149
Matteo Scandolo9973c652020-08-07 15:23:35 -0700150 - string:
151 name: VolthaEtcdPort
152 default: '{VolthaEtcdPort}'
153 description: 'Localhost port that is forwarded to VOLTHA etcd'
154
155 - bool:
156 name: inBandManagement
157 default: '{in-band-management}'
158 description: 'Indicates whether POD is configured for in band management'
159
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700160 - string:
161 name: volthaSystemTestsChange
162 default: '{volthaSystemTestsChange}'
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500163 description: 'Download delta from gerrit:voltha-system-tests, example value: "refs/changes/79/18779/13"'
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700164
165 - string:
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700166 name: volthaHelmChartsChange
167 default: '{volthaHelmChartsChange}'
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500168 description: 'Download delta from gerrit:voltha-helm-charts, example value: "refs/changes/32/19132/1"'
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700169
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700170 # NOTE is this needed/used?
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700171 - string:
172 name: cordTesterChange
173 default: '{cordTesterChange}'
174 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
175
Matteo Scandolo6eb673e2021-05-06 11:24:39 -0700176 # this is used in the Adtran DT job
Andrea Campanella6dfc0432021-01-12 10:43:16 +0100177 - string:
178 name: openoltAdapterChart
179 default: '{openoltAdapterChart}'
Andrea Campanellace8aa762021-08-27 09:32:22 +0200180 description: 'Olt adapter chart name (or location on file system)'
181
Andrea Campanellaecefbc82021-08-27 11:06:31 +0200182 # this is used in the Adtran DT job
Andrea Campanellace8aa762021-08-27 09:32:22 +0200183 - string:
184 name: oltAdapterReleaseName
185 default: '{oltAdapterReleaseName}'
186 description: 'Olt adapter release name'
Andrea Campanella6dfc0432021-01-12 10:43:16 +0100187
Andrea Campanellaecefbc82021-08-27 11:06:31 +0200188 - string:
189 name: waitTimerForOltUp
190 default: '{waitTimerForOltUp}'
191 description: 'Wait timer for the OLT to come up after reboot'
192
Matteo Scandolo9973c652020-08-07 15:23:35 -0700193# defualt properties for the VOLTHA scale jobs
194- voltha-pipe-job-boiler-plate: &voltha-pipe-job-boiler-plate
195 name: voltha-pipe-job-boiler-plate
196
197 project-type: pipeline
198
199 sandbox: true
200
201 properties:
Joey Armstronge04fe1f2022-08-25 13:48:13 -0400202 - onf-infra-volthadevs-permissions
Matteo Scandolo9973c652020-08-07 15:23:35 -0700203 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800204 build-days-to-keep: '{big-build-days-to-keep}'
205 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700206
207# VOLTHA Build Jobs
208- job-template:
Hardik Windlassc7379022021-05-12 13:52:24 +0530209 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual'
210 id: build_voltha_pod_manual
211 disabled: '{disable-job}'
212 description: |
213 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
214 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500215 Created by QA (Suchitra Vemuri) <br />
216 Copyright 2018-2022 Open Networking Foundation (ONF) and the ONF Contributors
Hardik Windlassc7379022021-05-12 13:52:24 +0530217
218 <<: *voltha-pipe-job-boiler-plate
219 # default values
220 pipeline-script: 'voltha/master/physical-build.groovy'
221 VolthaEtcdPort: 2379
222 num-of-openonu: 1
223 num-of-onos: 1
224 num-of-atomix: 0
225 num-of-kafka: 1
226 num-of-etcd: 1
227 test-repo: 'voltha-system-tests'
228 release: 'master'
229 name-extension: ''
230 branch: 'master'
231 configurePod: true
232 volthaHelmChartsChange: ''
233 profile: 'Default'
234 logLevel: 'DEBUG'
Hardik Windlass6598b032021-07-02 10:12:01 +0000235 enableMultiUni: false
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530236 withFttb: false
Hardik Windlass6598b032021-07-02 10:12:01 +0000237 uniPortMask: '0x0001'
Hardik Windlass908533a2021-05-24 16:35:58 +0000238 bbsimReplicas: 0
Matteo Scandolo1c895512021-05-13 10:30:13 -0700239 num-of-onus: 0
240 num-of-ponports: 0
Matteo Scandolod47bfb22021-05-24 09:40:05 -0700241 extraHelmFlags: ''
Hardik Windlassc7379022021-05-12 13:52:24 +0530242
243 <<: *voltha-build-job-parameters
244
245 concurrent: true
246 project-type: pipeline
247 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
248
249# VOLTHA Build Jobs
250- job-template:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700251 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
252 id: build_voltha_pod_release_timer
Suchitra Vemuri26fe2432020-09-14 19:51:32 -0700253 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700254 description: |
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700255 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700256 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500257 Created by QA (Suchitra Vemuri) <br />
258 Copyright 2018-2022 Open Networking Foundation (ONF) and the ONF Contributors
Matteo Scandolo9973c652020-08-07 15:23:35 -0700259
260 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700261 # default values
262 pipeline-script: 'voltha/master/physical-build.groovy'
263 VolthaEtcdPort: 2379
264 num-of-openonu: 1
265 num-of-onos: 3
266 num-of-atomix: 3
Hardik Windlassc7379022021-05-12 13:52:24 +0530267 num-of-kafka: 3
268 num-of-etcd: 3
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700269 test-repo: 'voltha-system-tests'
270 release: 'master'
271 name-extension: ''
272 branch: 'master'
273 configurePod: true
274 volthaHelmChartsChange: ''
275 profile: 'Default'
Matteo Scandolo6ddb0152021-05-07 11:25:17 -0700276 logLevel: 'DEBUG'
Hardik Windlass6598b032021-07-02 10:12:01 +0000277 enableMultiUni: false
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530278 withFttb: false
Hardik Windlass6598b032021-07-02 10:12:01 +0000279 uniPortMask: '0x0001'
Hardik Windlass908533a2021-05-24 16:35:58 +0000280 bbsimReplicas: 0
Matteo Scandolo1c895512021-05-13 10:30:13 -0700281 num-of-onus: 0
282 num-of-ponports: 0
Matteo Scandolod47bfb22021-05-24 09:40:05 -0700283 extraHelmFlags: ''
Matteo Scandolo9973c652020-08-07 15:23:35 -0700284
285 <<: *voltha-build-job-parameters
286
287 concurrent: true
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700288 project-type: pipeline
289 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Matteo Scandolo9973c652020-08-07 15:23:35 -0700290
291 triggers:
292 - timed: |
293 TZ=America/Los_Angeles
294 H {time} * * *
295
Matteo Scandolo9973c652020-08-07 15:23:35 -0700296# VOLTHA Test Job
297# This job is automatically triggered after a build job has successfully completed
298- job-template:
299 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
300 id: build_voltha_pod_test
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700301 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700302 description: |
303 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700304 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500305 Created by (Suchitra Vemuri) <br />
306 Copyright 2017-2022 Open Networking Foundation (ONF) and the ONF Contributors
Matteo Scandolo9973c652020-08-07 15:23:35 -0700307
308 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700309 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700310 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
311 manifest-branch: 'master'
312
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100313 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000314 enableMultiUni: false
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530315 withFttb: false
Andrea Campanella2af4b902021-11-05 10:40:02 +0100316 timeout: 300
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100317
Matteo Scandolo9973c652020-08-07 15:23:35 -0700318 parameters:
319 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000320 name: timeout
321 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000322 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000323
324 - string:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700325 name: buildNode
326 default: '{build-node}'
327 description: 'Name of the Jenkins executor node to run the job on'
328
329 - string:
330 name: TestNodeName
331 default: '{build-node}'
332 description: 'DEPRECATED - use buildNode instead'
333
334 - string:
335 name: cordRepoUrl
336 default: '{gerrit-server-url}'
337 description: 'The URL of the CORD Project repository'
338
339 - string:
340 name: configBaseDir
341 default: 'pod-configs'
342 description: 'The directory inside the POD configs repository'
343
344 - string:
345 name: configDeploymentDir
346 default: 'deployment-configs'
347 description: 'The deployment configs folder'
348
349 - string:
350 name: configKubernetesDir
351 default: 'kubernetes-configs'
352 description: 'The kubernetes config folder'
353
354 - string:
355 name: configToscaDir
356 default: 'tosca-configs'
357 description: 'The tosca config folder'
358
359 - string:
360 name: configFileName
361 default: '{config-pod}'
362 description: 'The config file'
363
364 - string:
365 name: profile
366 default: '{profile}'
367 description: 'Technology Profile pushed to the ETCD'
368
369 - string:
370 name: branch
371 default: '{branch}'
372 description: 'Branch of the test libraries to check out'
373
374 - string:
375 name: manifestUrl
376 default: '{manifest-url}'
377 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
378
379 - string:
380 name: manifestBranch
381 default: '{manifest-branch}'
382 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
383
384 - string:
385 name: workFlow
386 default: '{work-flow}'
387 description: 'Installs and uses the specified work flow on the POD'
388
389 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000390 name: enableMultiUni
391 default: '{enableMultiUni}'
392 description: "Enables the Multi UNI feature"
393
394 - bool:
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530395 name: withFttb
396 default: '{withFttb}'
397 description: "Test with FTTB enabled"
398
399 - bool:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700400 name: powerSwitch
401 default: '{power-switch}'
402 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
403
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000404 - bool:
405 name: powerCycleOlt
406 default: '{power-cycle-olt}'
407 description: "Indicate whether to reboot OLT through power switch"
408
Andrea Campanella6ea62272020-09-16 11:10:52 +0200409 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100410 name: oltAdapterAppLabel
411 default: '{oltAdapterAppLabel}'
412 description: 'OLT adapter pod name'
413
414 - string:
Andrea Campanella6ea62272020-09-16 11:10:52 +0200415 name: volthaSystemTestsChange
416 default: '{volthaSystemTestsChange}'
417 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
418
419 - string:
420 name: kindVolthaChange
421 default: '{kindVolthaChange}'
422 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
423
424 - string:
425 name: cordTesterChange
426 default: '{cordTesterChange}'
427 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
428
Matteo Scandolo9973c652020-08-07 15:23:35 -0700429 concurrent: true
430
431 project-type: pipeline
432 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
433
434 triggers:
435 - reverse:
436 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
437 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700438
439
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700440# VOLTHA Soak Test Job
441# This job is triggered by a timer defined in the job
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700442- job-template:
443 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
444 id: build_voltha_pod_soak_test
Andrea Campanellab54cabe2020-11-26 14:48:11 +0100445 disabled: '{disable-job}'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700446 description: |
447 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
448 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500449 Created by (Suchitra Vemuri) <br />
450 Copyright 2017-2022 Open Networking Foundation (ONF) and the ONF Contributors
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700451
452 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700453 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700454 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
455 manifest-branch: 'master'
456
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100457 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000458 timeout: 240
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100459
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700460 parameters:
461 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000462 name: timeout
463 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000464 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000465
466 - string:
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700467 name: buildNode
468 default: '{build-node}'
469 description: 'Name of the Jenkins executor node to run the job on'
470
471 - string:
472 name: TestNodeName
473 default: '{build-node}'
474 description: 'DEPRECATED - use buildNode instead'
475
476 - string:
477 name: cordRepoUrl
478 default: '{gerrit-server-url}'
479 description: 'The URL of the CORD Project repository'
480
481 - string:
482 name: configBaseDir
483 default: 'pod-configs'
484 description: 'The directory inside the POD configs repository'
485
486 - string:
487 name: configDeploymentDir
488 default: 'deployment-configs'
489 description: 'The deployment configs folder'
490
491 - string:
492 name: configKubernetesDir
493 default: 'kubernetes-configs'
494 description: 'The kubernetes config folder'
495
496 - string:
497 name: configToscaDir
498 default: 'tosca-configs'
499 description: 'The tosca config folder'
500
501 - string:
502 name: configFileName
503 default: '{config-pod}'
504 description: 'The config file'
505
506 - string:
507 name: profile
508 default: '{profile}'
509 description: 'Technology Profile pushed to the ETCD'
510
511 - string:
512 name: branch
513 default: '{branch}'
514 description: 'Branch of the test libraries to check out'
515
516 - string:
517 name: manifestUrl
518 default: '{manifest-url}'
519 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
520
521 - string:
522 name: manifestBranch
523 default: '{manifest-branch}'
524 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
525
526 - string:
527 name: workFlow
528 default: '{work-flow}'
529 description: 'Installs and uses the specified work flow on the POD'
530
531 - bool:
532 name: powerSwitch
533 default: '{power-switch}'
534 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
535
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000536 - bool:
537 name: powerCycleOlt
538 default: '{power-cycle-olt}'
539 description: "Indicate whether to reboot OLT through power switch"
540
Suchitra Vemurie6625222020-09-01 17:12:56 -0700541 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100542 name: oltAdapterAppLabel
543 default: '{oltAdapterAppLabel}'
544 description: 'OLT adapter pod name'
545
546 - string:
Suchitra Vemurie6625222020-09-01 17:12:56 -0700547 name: testType
548 default: '{test-type}'
549 description: 'Passes the required test category to the groovy script'
550
Suchitra Vemurie3bb90d2020-09-15 17:15:50 -0700551 - string:
552 name: volthaSystemTestsChange
553 default: '{volthaSystemTestsChange}'
554 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
555
556 - string:
557 name: kindVolthaChange
558 default: '{kindVolthaChange}'
559 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
560
561 - string:
562 name: cordTesterChange
563 default: '{cordTesterChange}'
564 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700565 concurrent: true
566
567 project-type: pipeline
568 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
569
570 triggers:
571 - timed: |
572 TZ=America/Los_Angeles
573 {time-trigger}
Hardik Windlass77221c62021-05-21 06:24:35 +0000574
575
576# VOLTHA Manual Test Job
577# This job is triggered manually
578- job-template:
579 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual_test'
580 id: build_voltha_pod_manual_test
581 disabled: '{disable-job}'
582 description: |
583 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
584 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500585 Created by (Suchitra Vemuri) <br />
586 Copyright 2017-2022 Open Networking Foundation (ONF) and the ONF Contributors
587
Hardik Windlass77221c62021-05-21 06:24:35 +0000588 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700589 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Hardik Windlass77221c62021-05-21 06:24:35 +0000590 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
591 manifest-branch: 'master'
592
593 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000594 enableMultiUni: false
Hardik Windlass9ed73662021-09-02 11:06:21 +0000595 timeout: 240
Hardik Windlass77221c62021-05-21 06:24:35 +0000596
597 parameters:
598 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000599 name: timeout
600 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000601 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000602
603 - string:
Hardik Windlass77221c62021-05-21 06:24:35 +0000604 name: buildNode
605 default: '{build-node}'
606 description: 'Name of the Jenkins executor node to run the job on'
607
608 - string:
609 name: TestNodeName
610 default: '{build-node}'
611 description: 'DEPRECATED - use buildNode instead'
612
613 - string:
614 name: cordRepoUrl
615 default: '{gerrit-server-url}'
616 description: 'The URL of the CORD Project repository'
617
618 - string:
619 name: configBaseDir
620 default: 'pod-configs'
621 description: 'The directory inside the POD configs repository'
622
623 - string:
624 name: configDeploymentDir
625 default: 'deployment-configs'
626 description: 'The deployment configs folder'
627
628 - string:
629 name: configKubernetesDir
630 default: 'kubernetes-configs'
631 description: 'The kubernetes config folder'
632
633 - string:
634 name: configToscaDir
635 default: 'tosca-configs'
636 description: 'The tosca config folder'
637
638 - string:
639 name: configFileName
640 default: '{config-pod}'
641 description: 'The config file'
642
643 - string:
644 name: profile
645 default: '{profile}'
646 description: 'Technology Profile pushed to the ETCD'
647
648 - string:
649 name: branch
650 default: '{branch}'
651 description: 'Branch of the test libraries to check out'
652
653 - string:
654 name: manifestUrl
655 default: '{manifest-url}'
656 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
657
658 - string:
659 name: manifestBranch
660 default: '{manifest-branch}'
661 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
662
663 - string:
664 name: workFlow
665 default: '{work-flow}'
666 description: 'Installs and uses the specified work flow on the POD'
667
668 - bool:
669 name: powerSwitch
670 default: '{power-switch}'
671 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
672
Hardik Windlass6598b032021-07-02 10:12:01 +0000673 - bool:
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000674 name: powerCycleOlt
675 default: '{power-cycle-olt}'
676 description: "Indicate whether to reboot OLT through power switch"
677
678 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000679 name: enableMultiUni
680 default: '{enableMultiUni}'
681 description: "Enables the Multi UNI feature"
682
Hardik Windlass77221c62021-05-21 06:24:35 +0000683 - string:
684 name: oltAdapterAppLabel
685 default: '{oltAdapterAppLabel}'
686 description: 'OLT adapter pod name'
687
688 - string:
689 name: testType
690 default: '{test-type}'
691 description: 'Passes the required test category to the groovy script'
692
693 - string:
694 name: volthaSystemTestsChange
695 default: '{volthaSystemTestsChange}'
696 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
697
698 - string:
699 name: kindVolthaChange
700 default: '{kindVolthaChange}'
701 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
702
703 - string:
704 name: cordTesterChange
705 default: '{cordTesterChange}'
706 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
707 concurrent: true
708
709 project-type: pipeline
710 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000711
712# VOLTHA DMI Test Job
713# This job is triggered by a timer defined in the job
714- job-template:
715 name: 'verify_{config-pod}_{profile}{name-extension}_voltha_{release}_dmi'
716 id: verify_voltha_pod_dmi_test
717 disabled: '{disable-job}'
718 description: |
719 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
720 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500721 Created by QA (Suchitra Vemuri) <br />
722 Copyright 2018-2022 Open Networking Foundation (ONF) and the ONF Contributors
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000723
724 <<: *voltha-pipe-job-boiler-plate
725 # default values
726 pipeline-script: 'voltha/master/dmi-build-and-test.groovy'
Hardik Windlass230fca62022-05-04 08:50:35 +0530727 installVolthaInfra: true
728 installVolthaStack: true
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000729 VolthaEtcdPort: 2379
730 num-of-openonu: 1
731 num-of-onos: 3
732 num-of-atomix: 3
733 num-of-kafka: 3
734 num-of-etcd: 3
735 test-repo: 'voltha-system-tests'
736 release: 'master'
737 name-extension: ''
738 branch: 'master'
739 configurePod: true
740 volthaHelmChartsChange: ''
741 profile: 'Default'
742 logLevel: 'DEBUG'
743 enableMultiUni: false
744 uniPortMask: '0x0001'
745 bbsimReplicas: 0
746 num-of-onus: 0
747 num-of-ponports: 0
748 extraHelmFlags: ''
749 dmiChart: ''
750 OltDevMgr: ''
751 openoltAdapterChart: onf/voltha-adapter-openolt
752 oltAdapterReleaseName: open-olt
753 waitTimerForOltUp: 360
754
755 parameters:
756 - string:
757 name: buildNode
758 default: '{build-node}'
759 description: 'Name of the Jenkins executor node to run the job on'
760
761 - string:
762 name: TestNodeName
763 default: '{build-node}'
764 description: 'DEPRECATED - use buildNode instead'
765
766 - string:
767 name: logLevel
768 default: '{logLevel}'
769 description: 'Log level for all the components'
770
771 - string:
772 name: cordRepoUrl
773 default: '{gerrit-server-url}'
774 description: 'The URL of the CORD Project repository'
775
776 - string:
777 name: configBaseDir
778 default: 'pod-configs'
779 description: 'The directory inside the POD configs repository'
780
781 - string:
782 name: configDeploymentDir
783 default: 'deployment-configs'
784 description: 'The deployment configs folder'
785
786 - string:
787 name: configKubernetesDir
788 default: 'kubernetes-configs'
789 description: 'The kubernetes config folder'
790
791 - string:
792 name: configToscaDir
793 default: 'tosca-configs'
794 description: 'The tosca config folder'
795
796 - string:
797 name: configFileName
798 default: '{config-pod}'
799 description: 'The config file'
800
801 - string:
802 name: profile
803 default: '{profile}'
804 description: 'Technology Profile pushed to the ETCD'
805
806 - string:
807 name: helmRepoUrl
808 default: 'https://charts.opencord.org'
809 description: 'URL where helm-charts are published'
810
811 - string:
812 name: branch
813 default: '{branch}'
814
815 - string:
816 name: workFlow
817 default: '{work-flow}'
818 description: 'Installs and uses the specified work flow on the POD'
819
Hardik Windlassace19e52022-02-10 09:36:21 +0000820 - bool:
Hardik Windlass230fca62022-05-04 08:50:35 +0530821 name: installVolthaInfra
822 default: '{installVolthaInfra}'
823 description: "Whether to install VOLTHA Infra"
824
825 - bool:
826 name: installVolthaStack
827 default: '{installVolthaStack}'
828 description: "Whether to install VOLTHA Stack"
Hardik Windlassace19e52022-02-10 09:36:21 +0000829
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000830 - string:
831 name: extraHelmFlags
832 default: '{extraHelmFlags}'
833 description: 'Helm flags (passed to each deployment)'
834
835 - string:
836 name: dmiChart
837 default: '{dmiChart}'
838 description: 'Device Management Interface Helm Chart'
839
840 - string:
841 name: OltDevMgr
842 default: '{OltDevMgr}'
843 description: 'OLT Device Manager App Name'
844
845 # openonu-go only supports a single replica, remove after 2.8
846 - string:
847 name: NumOfOpenOnu
848 default: '{num-of-openonu}'
849 description: 'Installs the specified Number of OpenOnu Adapters'
850
851 - string:
852 name: NumOfOnos
853 default: '{num-of-onos}'
854 description: 'Installs the specified Number of ONOS instances'
855
856 - bool:
857 name: enableMultiUni
858 default: '{enableMultiUni}'
859 description: "Enables the Multi UNI feature"
860
861 - string:
862 name: uniPortMask
863 default: '{uniPortMask}'
864 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
865
866 - string:
867 name: bbsimReplicas
868 default: '{bbsimReplicas}'
869 description: 'Installs the specified Number of BBSim Instances'
870
871 - string:
872 name: onuNumber
873 default: '{num-of-onus}'
874 description: "Onus per PonPort"
875
876 - string:
877 name: ponNumber
878 default: '{num-of-ponports}'
879 description: "Number of PON Ports"
880
881 - string:
882 name: NumOfAtomix
883 default: '{num-of-atomix}'
884 description: 'Installs the specified Number of Atomix Instances'
885
886 - string:
887 name: NumOfKafka
888 default: '{num-of-kafka}'
889 description: 'Installs the specified Number of Kafka Instances'
890
891 - string:
892 name: NumOfEtcd
893 default: '{num-of-etcd}'
894 description: 'Installs the specified Number of Etcd Instances'
895
896 - bool:
897 name: configurePod
898 default: true
899 description: "Configure POD via TOSCA post build"
900
901 - bool:
902 name: reinstallOlt
903 default: '{reinstall-olt}'
904 description: "Re-install olt software bringing up CORD"
905
906 - bool:
907 name: restartOlt
908 default: '{restart-olt}'
909 description: "Re-install olt software bringing up CORD"
910
911 - string:
912 name: VolthaEtcdPort
913 default: '{VolthaEtcdPort}'
914 description: 'Localhost port that is forwarded to VOLTHA etcd'
915
916 - bool:
917 name: inBandManagement
918 default: '{in-band-management}'
919 description: 'Indicates whether POD is configured for in band management'
920
921 - string:
922 name: volthaSystemTestsChange
923 default: '{volthaSystemTestsChange}'
924 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
925
926 - string:
927 name: volthaHelmChartsChange
928 default: '{volthaHelmChartsChange}'
929 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
930
931 # this is used in the Adtran DT job
932 - string:
933 name: openoltAdapterChart
934 default: '{openoltAdapterChart}'
935 description: 'Olt adapter chart name (or location on file system)'
936
937 # this is used in the Adtran DT job
938 - string:
939 name: oltAdapterReleaseName
940 default: '{oltAdapterReleaseName}'
941 description: 'Olt adapter release name'
942
943 - string:
944 name: waitTimerForOltUp
945 default: '{waitTimerForOltUp}'
946 description: 'Wait timer for the OLT to come up after reboot'
947
948 concurrent: true
949 project-type: pipeline
950 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
951
952 triggers:
953 - timed: |
954 TZ=America/Los_Angeles
955 H {time} * * *