blob: b2e46b35bf77d1365cba61c2e68923d123eb67ff [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}'
163 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
164
165 - string:
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700166 name: volthaHelmChartsChange
167 default: '{volthaHelmChartsChange}'
168 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
169
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 />
215 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
216 Copyright (c) 2018 Open Networking Foundation (ONF)
217
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 />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700257 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
258 Copyright (c) 2018 Open Networking Foundation (ONF)
259
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 />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700305 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
306 Copyright (c) 2017 Open Networking Foundation (ONF)
307
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 />
449 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
450 Copyright (c) 2017 Open Networking Foundation (ONF)
451
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 />
585 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
586 Copyright (c) 2017 Open Networking Foundation (ONF)
587 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700588 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Hardik Windlass77221c62021-05-21 06:24:35 +0000589 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
590 manifest-branch: 'master'
591
592 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000593 enableMultiUni: false
Hardik Windlass9ed73662021-09-02 11:06:21 +0000594 timeout: 240
Hardik Windlass77221c62021-05-21 06:24:35 +0000595
596 parameters:
597 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000598 name: timeout
599 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000600 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000601
602 - string:
Hardik Windlass77221c62021-05-21 06:24:35 +0000603 name: buildNode
604 default: '{build-node}'
605 description: 'Name of the Jenkins executor node to run the job on'
606
607 - string:
608 name: TestNodeName
609 default: '{build-node}'
610 description: 'DEPRECATED - use buildNode instead'
611
612 - string:
613 name: cordRepoUrl
614 default: '{gerrit-server-url}'
615 description: 'The URL of the CORD Project repository'
616
617 - string:
618 name: configBaseDir
619 default: 'pod-configs'
620 description: 'The directory inside the POD configs repository'
621
622 - string:
623 name: configDeploymentDir
624 default: 'deployment-configs'
625 description: 'The deployment configs folder'
626
627 - string:
628 name: configKubernetesDir
629 default: 'kubernetes-configs'
630 description: 'The kubernetes config folder'
631
632 - string:
633 name: configToscaDir
634 default: 'tosca-configs'
635 description: 'The tosca config folder'
636
637 - string:
638 name: configFileName
639 default: '{config-pod}'
640 description: 'The config file'
641
642 - string:
643 name: profile
644 default: '{profile}'
645 description: 'Technology Profile pushed to the ETCD'
646
647 - string:
648 name: branch
649 default: '{branch}'
650 description: 'Branch of the test libraries to check out'
651
652 - string:
653 name: manifestUrl
654 default: '{manifest-url}'
655 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
656
657 - string:
658 name: manifestBranch
659 default: '{manifest-branch}'
660 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
661
662 - string:
663 name: workFlow
664 default: '{work-flow}'
665 description: 'Installs and uses the specified work flow on the POD'
666
667 - bool:
668 name: powerSwitch
669 default: '{power-switch}'
670 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
671
Hardik Windlass6598b032021-07-02 10:12:01 +0000672 - bool:
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000673 name: powerCycleOlt
674 default: '{power-cycle-olt}'
675 description: "Indicate whether to reboot OLT through power switch"
676
677 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000678 name: enableMultiUni
679 default: '{enableMultiUni}'
680 description: "Enables the Multi UNI feature"
681
Hardik Windlass77221c62021-05-21 06:24:35 +0000682 - string:
683 name: oltAdapterAppLabel
684 default: '{oltAdapterAppLabel}'
685 description: 'OLT adapter pod name'
686
687 - string:
688 name: testType
689 default: '{test-type}'
690 description: 'Passes the required test category to the groovy script'
691
692 - string:
693 name: volthaSystemTestsChange
694 default: '{volthaSystemTestsChange}'
695 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
696
697 - string:
698 name: kindVolthaChange
699 default: '{kindVolthaChange}'
700 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
701
702 - string:
703 name: cordTesterChange
704 default: '{cordTesterChange}'
705 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
706 concurrent: true
707
708 project-type: pipeline
709 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000710
711# VOLTHA DMI Test Job
712# This job is triggered by a timer defined in the job
713- job-template:
714 name: 'verify_{config-pod}_{profile}{name-extension}_voltha_{release}_dmi'
715 id: verify_voltha_pod_dmi_test
716 disabled: '{disable-job}'
717 description: |
718 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
719 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
720 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
721 Copyright (c) 2018 Open Networking Foundation (ONF)
722
723 <<: *voltha-pipe-job-boiler-plate
724 # default values
725 pipeline-script: 'voltha/master/dmi-build-and-test.groovy'
Hardik Windlass230fca62022-05-04 08:50:35 +0530726 installVolthaInfra: true
727 installVolthaStack: true
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000728 VolthaEtcdPort: 2379
729 num-of-openonu: 1
730 num-of-onos: 3
731 num-of-atomix: 3
732 num-of-kafka: 3
733 num-of-etcd: 3
734 test-repo: 'voltha-system-tests'
735 release: 'master'
736 name-extension: ''
737 branch: 'master'
738 configurePod: true
739 volthaHelmChartsChange: ''
740 profile: 'Default'
741 logLevel: 'DEBUG'
742 enableMultiUni: false
743 uniPortMask: '0x0001'
744 bbsimReplicas: 0
745 num-of-onus: 0
746 num-of-ponports: 0
747 extraHelmFlags: ''
748 dmiChart: ''
749 OltDevMgr: ''
750 openoltAdapterChart: onf/voltha-adapter-openolt
751 oltAdapterReleaseName: open-olt
752 waitTimerForOltUp: 360
753
754 parameters:
755 - string:
756 name: buildNode
757 default: '{build-node}'
758 description: 'Name of the Jenkins executor node to run the job on'
759
760 - string:
761 name: TestNodeName
762 default: '{build-node}'
763 description: 'DEPRECATED - use buildNode instead'
764
765 - string:
766 name: logLevel
767 default: '{logLevel}'
768 description: 'Log level for all the components'
769
770 - string:
771 name: cordRepoUrl
772 default: '{gerrit-server-url}'
773 description: 'The URL of the CORD Project repository'
774
775 - string:
776 name: configBaseDir
777 default: 'pod-configs'
778 description: 'The directory inside the POD configs repository'
779
780 - string:
781 name: configDeploymentDir
782 default: 'deployment-configs'
783 description: 'The deployment configs folder'
784
785 - string:
786 name: configKubernetesDir
787 default: 'kubernetes-configs'
788 description: 'The kubernetes config folder'
789
790 - string:
791 name: configToscaDir
792 default: 'tosca-configs'
793 description: 'The tosca config folder'
794
795 - string:
796 name: configFileName
797 default: '{config-pod}'
798 description: 'The config file'
799
800 - string:
801 name: profile
802 default: '{profile}'
803 description: 'Technology Profile pushed to the ETCD'
804
805 - string:
806 name: helmRepoUrl
807 default: 'https://charts.opencord.org'
808 description: 'URL where helm-charts are published'
809
810 - string:
811 name: branch
812 default: '{branch}'
813
814 - string:
815 name: workFlow
816 default: '{work-flow}'
817 description: 'Installs and uses the specified work flow on the POD'
818
Hardik Windlassace19e52022-02-10 09:36:21 +0000819 - bool:
Hardik Windlass230fca62022-05-04 08:50:35 +0530820 name: installVolthaInfra
821 default: '{installVolthaInfra}'
822 description: "Whether to install VOLTHA Infra"
823
824 - bool:
825 name: installVolthaStack
826 default: '{installVolthaStack}'
827 description: "Whether to install VOLTHA Stack"
Hardik Windlassace19e52022-02-10 09:36:21 +0000828
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000829 - string:
830 name: extraHelmFlags
831 default: '{extraHelmFlags}'
832 description: 'Helm flags (passed to each deployment)'
833
834 - string:
835 name: dmiChart
836 default: '{dmiChart}'
837 description: 'Device Management Interface Helm Chart'
838
839 - string:
840 name: OltDevMgr
841 default: '{OltDevMgr}'
842 description: 'OLT Device Manager App Name'
843
844 # openonu-go only supports a single replica, remove after 2.8
845 - string:
846 name: NumOfOpenOnu
847 default: '{num-of-openonu}'
848 description: 'Installs the specified Number of OpenOnu Adapters'
849
850 - string:
851 name: NumOfOnos
852 default: '{num-of-onos}'
853 description: 'Installs the specified Number of ONOS instances'
854
855 - bool:
856 name: enableMultiUni
857 default: '{enableMultiUni}'
858 description: "Enables the Multi UNI feature"
859
860 - string:
861 name: uniPortMask
862 default: '{uniPortMask}'
863 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
864
865 - string:
866 name: bbsimReplicas
867 default: '{bbsimReplicas}'
868 description: 'Installs the specified Number of BBSim Instances'
869
870 - string:
871 name: onuNumber
872 default: '{num-of-onus}'
873 description: "Onus per PonPort"
874
875 - string:
876 name: ponNumber
877 default: '{num-of-ponports}'
878 description: "Number of PON Ports"
879
880 - string:
881 name: NumOfAtomix
882 default: '{num-of-atomix}'
883 description: 'Installs the specified Number of Atomix Instances'
884
885 - string:
886 name: NumOfKafka
887 default: '{num-of-kafka}'
888 description: 'Installs the specified Number of Kafka Instances'
889
890 - string:
891 name: NumOfEtcd
892 default: '{num-of-etcd}'
893 description: 'Installs the specified Number of Etcd Instances'
894
895 - bool:
896 name: configurePod
897 default: true
898 description: "Configure POD via TOSCA post build"
899
900 - bool:
901 name: reinstallOlt
902 default: '{reinstall-olt}'
903 description: "Re-install olt software bringing up CORD"
904
905 - bool:
906 name: restartOlt
907 default: '{restart-olt}'
908 description: "Re-install olt software bringing up CORD"
909
910 - string:
911 name: VolthaEtcdPort
912 default: '{VolthaEtcdPort}'
913 description: 'Localhost port that is forwarded to VOLTHA etcd'
914
915 - bool:
916 name: inBandManagement
917 default: '{in-band-management}'
918 description: 'Indicates whether POD is configured for in band management'
919
920 - string:
921 name: volthaSystemTestsChange
922 default: '{volthaSystemTestsChange}'
923 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
924
925 - string:
926 name: volthaHelmChartsChange
927 default: '{volthaHelmChartsChange}'
928 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
929
930 # this is used in the Adtran DT job
931 - string:
932 name: openoltAdapterChart
933 default: '{openoltAdapterChart}'
934 description: 'Olt adapter chart name (or location on file system)'
935
936 # this is used in the Adtran DT job
937 - string:
938 name: oltAdapterReleaseName
939 default: '{oltAdapterReleaseName}'
940 description: 'Olt adapter release name'
941
942 - string:
943 name: waitTimerForOltUp
944 default: '{waitTimerForOltUp}'
945 description: 'Wait timer for the OLT to come up after reboot'
946
947 concurrent: true
948 project-type: pipeline
949 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
950
951 triggers:
952 - timed: |
953 TZ=America/Los_Angeles
954 H {time} * * *