blob: fcf589bfc8a7e132de7d89f0e3b7dfd3a6143842 [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:
202 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800203 build-days-to-keep: '{big-build-days-to-keep}'
204 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700205
206# VOLTHA Build Jobs
207- job-template:
Hardik Windlassc7379022021-05-12 13:52:24 +0530208 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual'
209 id: build_voltha_pod_manual
210 disabled: '{disable-job}'
211 description: |
212 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
213 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
214 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
215 Copyright (c) 2018 Open Networking Foundation (ONF)
216
217 <<: *voltha-pipe-job-boiler-plate
218 # default values
219 pipeline-script: 'voltha/master/physical-build.groovy'
220 VolthaEtcdPort: 2379
221 num-of-openonu: 1
222 num-of-onos: 1
223 num-of-atomix: 0
224 num-of-kafka: 1
225 num-of-etcd: 1
226 test-repo: 'voltha-system-tests'
227 release: 'master'
228 name-extension: ''
229 branch: 'master'
230 configurePod: true
231 volthaHelmChartsChange: ''
232 profile: 'Default'
233 logLevel: 'DEBUG'
Hardik Windlass6598b032021-07-02 10:12:01 +0000234 enableMultiUni: false
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530235 withFttb: false
Hardik Windlass6598b032021-07-02 10:12:01 +0000236 uniPortMask: '0x0001'
Hardik Windlass908533a2021-05-24 16:35:58 +0000237 bbsimReplicas: 0
Matteo Scandolo1c895512021-05-13 10:30:13 -0700238 num-of-onus: 0
239 num-of-ponports: 0
Matteo Scandolod47bfb22021-05-24 09:40:05 -0700240 extraHelmFlags: ''
Hardik Windlassc7379022021-05-12 13:52:24 +0530241
242 <<: *voltha-build-job-parameters
243
244 concurrent: true
245 project-type: pipeline
246 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
247
248# VOLTHA Build Jobs
249- job-template:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700250 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
251 id: build_voltha_pod_release_timer
Suchitra Vemuri26fe2432020-09-14 19:51:32 -0700252 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700253 description: |
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700254 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 -0700255 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700256 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
257 Copyright (c) 2018 Open Networking Foundation (ONF)
258
259 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700260 # default values
261 pipeline-script: 'voltha/master/physical-build.groovy'
262 VolthaEtcdPort: 2379
263 num-of-openonu: 1
264 num-of-onos: 3
265 num-of-atomix: 3
Hardik Windlassc7379022021-05-12 13:52:24 +0530266 num-of-kafka: 3
267 num-of-etcd: 3
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700268 test-repo: 'voltha-system-tests'
269 release: 'master'
270 name-extension: ''
271 branch: 'master'
272 configurePod: true
273 volthaHelmChartsChange: ''
274 profile: 'Default'
Matteo Scandolo6ddb0152021-05-07 11:25:17 -0700275 logLevel: 'DEBUG'
Hardik Windlass6598b032021-07-02 10:12:01 +0000276 enableMultiUni: false
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530277 withFttb: false
Hardik Windlass6598b032021-07-02 10:12:01 +0000278 uniPortMask: '0x0001'
Hardik Windlass908533a2021-05-24 16:35:58 +0000279 bbsimReplicas: 0
Matteo Scandolo1c895512021-05-13 10:30:13 -0700280 num-of-onus: 0
281 num-of-ponports: 0
Matteo Scandolod47bfb22021-05-24 09:40:05 -0700282 extraHelmFlags: ''
Matteo Scandolo9973c652020-08-07 15:23:35 -0700283
284 <<: *voltha-build-job-parameters
285
286 concurrent: true
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700287 project-type: pipeline
288 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Matteo Scandolo9973c652020-08-07 15:23:35 -0700289
290 triggers:
291 - timed: |
292 TZ=America/Los_Angeles
293 H {time} * * *
294
Matteo Scandolo9973c652020-08-07 15:23:35 -0700295# VOLTHA Test Job
296# This job is automatically triggered after a build job has successfully completed
297- job-template:
298 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
299 id: build_voltha_pod_test
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700300 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700301 description: |
302 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700303 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700304 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
305 Copyright (c) 2017 Open Networking Foundation (ONF)
306
307 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700308 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700309 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
310 manifest-branch: 'master'
311
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100312 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000313 enableMultiUni: false
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530314 withFttb: false
Andrea Campanella2af4b902021-11-05 10:40:02 +0100315 timeout: 300
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100316
Matteo Scandolo9973c652020-08-07 15:23:35 -0700317 parameters:
318 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000319 name: timeout
320 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000321 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000322
323 - string:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700324 name: buildNode
325 default: '{build-node}'
326 description: 'Name of the Jenkins executor node to run the job on'
327
328 - string:
329 name: TestNodeName
330 default: '{build-node}'
331 description: 'DEPRECATED - use buildNode instead'
332
333 - string:
334 name: cordRepoUrl
335 default: '{gerrit-server-url}'
336 description: 'The URL of the CORD Project repository'
337
338 - string:
339 name: configBaseDir
340 default: 'pod-configs'
341 description: 'The directory inside the POD configs repository'
342
343 - string:
344 name: configDeploymentDir
345 default: 'deployment-configs'
346 description: 'The deployment configs folder'
347
348 - string:
349 name: configKubernetesDir
350 default: 'kubernetes-configs'
351 description: 'The kubernetes config folder'
352
353 - string:
354 name: configToscaDir
355 default: 'tosca-configs'
356 description: 'The tosca config folder'
357
358 - string:
359 name: configFileName
360 default: '{config-pod}'
361 description: 'The config file'
362
363 - string:
364 name: profile
365 default: '{profile}'
366 description: 'Technology Profile pushed to the ETCD'
367
368 - string:
369 name: branch
370 default: '{branch}'
371 description: 'Branch of the test libraries to check out'
372
373 - string:
374 name: manifestUrl
375 default: '{manifest-url}'
376 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
377
378 - string:
379 name: manifestBranch
380 default: '{manifest-branch}'
381 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
382
383 - string:
384 name: workFlow
385 default: '{work-flow}'
386 description: 'Installs and uses the specified work flow on the POD'
387
388 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000389 name: enableMultiUni
390 default: '{enableMultiUni}'
391 description: "Enables the Multi UNI feature"
392
393 - bool:
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530394 name: withFttb
395 default: '{withFttb}'
396 description: "Test with FTTB enabled"
397
398 - bool:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700399 name: powerSwitch
400 default: '{power-switch}'
401 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
402
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000403 - bool:
404 name: powerCycleOlt
405 default: '{power-cycle-olt}'
406 description: "Indicate whether to reboot OLT through power switch"
407
Andrea Campanella6ea62272020-09-16 11:10:52 +0200408 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100409 name: oltAdapterAppLabel
410 default: '{oltAdapterAppLabel}'
411 description: 'OLT adapter pod name'
412
413 - string:
Andrea Campanella6ea62272020-09-16 11:10:52 +0200414 name: volthaSystemTestsChange
415 default: '{volthaSystemTestsChange}'
416 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
417
418 - string:
419 name: kindVolthaChange
420 default: '{kindVolthaChange}'
421 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
422
423 - string:
424 name: cordTesterChange
425 default: '{cordTesterChange}'
426 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
427
Matteo Scandolo9973c652020-08-07 15:23:35 -0700428 concurrent: true
429
430 project-type: pipeline
431 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
432
433 triggers:
434 - reverse:
435 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
436 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700437
438
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700439# VOLTHA Soak Test Job
440# This job is triggered by a timer defined in the job
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700441- job-template:
442 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
443 id: build_voltha_pod_soak_test
Andrea Campanellab54cabe2020-11-26 14:48:11 +0100444 disabled: '{disable-job}'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700445 description: |
446 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
447 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
448 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
449 Copyright (c) 2017 Open Networking Foundation (ONF)
450
451 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700452 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700453 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
454 manifest-branch: 'master'
455
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100456 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000457 timeout: 240
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100458
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700459 parameters:
460 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000461 name: timeout
462 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000463 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000464
465 - string:
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700466 name: buildNode
467 default: '{build-node}'
468 description: 'Name of the Jenkins executor node to run the job on'
469
470 - string:
471 name: TestNodeName
472 default: '{build-node}'
473 description: 'DEPRECATED - use buildNode instead'
474
475 - string:
476 name: cordRepoUrl
477 default: '{gerrit-server-url}'
478 description: 'The URL of the CORD Project repository'
479
480 - string:
481 name: configBaseDir
482 default: 'pod-configs'
483 description: 'The directory inside the POD configs repository'
484
485 - string:
486 name: configDeploymentDir
487 default: 'deployment-configs'
488 description: 'The deployment configs folder'
489
490 - string:
491 name: configKubernetesDir
492 default: 'kubernetes-configs'
493 description: 'The kubernetes config folder'
494
495 - string:
496 name: configToscaDir
497 default: 'tosca-configs'
498 description: 'The tosca config folder'
499
500 - string:
501 name: configFileName
502 default: '{config-pod}'
503 description: 'The config file'
504
505 - string:
506 name: profile
507 default: '{profile}'
508 description: 'Technology Profile pushed to the ETCD'
509
510 - string:
511 name: branch
512 default: '{branch}'
513 description: 'Branch of the test libraries to check out'
514
515 - string:
516 name: manifestUrl
517 default: '{manifest-url}'
518 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
519
520 - string:
521 name: manifestBranch
522 default: '{manifest-branch}'
523 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
524
525 - string:
526 name: workFlow
527 default: '{work-flow}'
528 description: 'Installs and uses the specified work flow on the POD'
529
530 - bool:
531 name: powerSwitch
532 default: '{power-switch}'
533 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
534
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000535 - bool:
536 name: powerCycleOlt
537 default: '{power-cycle-olt}'
538 description: "Indicate whether to reboot OLT through power switch"
539
Suchitra Vemurie6625222020-09-01 17:12:56 -0700540 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100541 name: oltAdapterAppLabel
542 default: '{oltAdapterAppLabel}'
543 description: 'OLT adapter pod name'
544
545 - string:
Suchitra Vemurie6625222020-09-01 17:12:56 -0700546 name: testType
547 default: '{test-type}'
548 description: 'Passes the required test category to the groovy script'
549
Suchitra Vemurie3bb90d2020-09-15 17:15:50 -0700550 - string:
551 name: volthaSystemTestsChange
552 default: '{volthaSystemTestsChange}'
553 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
554
555 - string:
556 name: kindVolthaChange
557 default: '{kindVolthaChange}'
558 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
559
560 - string:
561 name: cordTesterChange
562 default: '{cordTesterChange}'
563 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 -0700564 concurrent: true
565
566 project-type: pipeline
567 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
568
569 triggers:
570 - timed: |
571 TZ=America/Los_Angeles
572 {time-trigger}
Hardik Windlass77221c62021-05-21 06:24:35 +0000573
574
575# VOLTHA Manual Test Job
576# This job is triggered manually
577- job-template:
578 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual_test'
579 id: build_voltha_pod_manual_test
580 disabled: '{disable-job}'
581 description: |
582 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
583 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
584 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
585 Copyright (c) 2017 Open Networking Foundation (ONF)
586 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700587 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Hardik Windlass77221c62021-05-21 06:24:35 +0000588 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
589 manifest-branch: 'master'
590
591 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000592 enableMultiUni: false
Hardik Windlass9ed73662021-09-02 11:06:21 +0000593 timeout: 240
Hardik Windlass77221c62021-05-21 06:24:35 +0000594
595 parameters:
596 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000597 name: timeout
598 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000599 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000600
601 - string:
Hardik Windlass77221c62021-05-21 06:24:35 +0000602 name: buildNode
603 default: '{build-node}'
604 description: 'Name of the Jenkins executor node to run the job on'
605
606 - string:
607 name: TestNodeName
608 default: '{build-node}'
609 description: 'DEPRECATED - use buildNode instead'
610
611 - string:
612 name: cordRepoUrl
613 default: '{gerrit-server-url}'
614 description: 'The URL of the CORD Project repository'
615
616 - string:
617 name: configBaseDir
618 default: 'pod-configs'
619 description: 'The directory inside the POD configs repository'
620
621 - string:
622 name: configDeploymentDir
623 default: 'deployment-configs'
624 description: 'The deployment configs folder'
625
626 - string:
627 name: configKubernetesDir
628 default: 'kubernetes-configs'
629 description: 'The kubernetes config folder'
630
631 - string:
632 name: configToscaDir
633 default: 'tosca-configs'
634 description: 'The tosca config folder'
635
636 - string:
637 name: configFileName
638 default: '{config-pod}'
639 description: 'The config file'
640
641 - string:
642 name: profile
643 default: '{profile}'
644 description: 'Technology Profile pushed to the ETCD'
645
646 - string:
647 name: branch
648 default: '{branch}'
649 description: 'Branch of the test libraries to check out'
650
651 - string:
652 name: manifestUrl
653 default: '{manifest-url}'
654 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
655
656 - string:
657 name: manifestBranch
658 default: '{manifest-branch}'
659 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
660
661 - string:
662 name: workFlow
663 default: '{work-flow}'
664 description: 'Installs and uses the specified work flow on the POD'
665
666 - bool:
667 name: powerSwitch
668 default: '{power-switch}'
669 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
670
Hardik Windlass6598b032021-07-02 10:12:01 +0000671 - bool:
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000672 name: powerCycleOlt
673 default: '{power-cycle-olt}'
674 description: "Indicate whether to reboot OLT through power switch"
675
676 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000677 name: enableMultiUni
678 default: '{enableMultiUni}'
679 description: "Enables the Multi UNI feature"
680
Hardik Windlass77221c62021-05-21 06:24:35 +0000681 - string:
682 name: oltAdapterAppLabel
683 default: '{oltAdapterAppLabel}'
684 description: 'OLT adapter pod name'
685
686 - string:
687 name: testType
688 default: '{test-type}'
689 description: 'Passes the required test category to the groovy script'
690
691 - string:
692 name: volthaSystemTestsChange
693 default: '{volthaSystemTestsChange}'
694 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
695
696 - string:
697 name: kindVolthaChange
698 default: '{kindVolthaChange}'
699 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
700
701 - string:
702 name: cordTesterChange
703 default: '{cordTesterChange}'
704 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
705 concurrent: true
706
707 project-type: pipeline
708 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000709
710# VOLTHA DMI Test Job
711# This job is triggered by a timer defined in the job
712- job-template:
713 name: 'verify_{config-pod}_{profile}{name-extension}_voltha_{release}_dmi'
714 id: verify_voltha_pod_dmi_test
715 disabled: '{disable-job}'
716 description: |
717 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
718 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
719 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
720 Copyright (c) 2018 Open Networking Foundation (ONF)
721
722 <<: *voltha-pipe-job-boiler-plate
723 # default values
724 pipeline-script: 'voltha/master/dmi-build-and-test.groovy'
Hardik Windlass230fca62022-05-04 08:50:35 +0530725 installVolthaInfra: true
726 installVolthaStack: true
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000727 VolthaEtcdPort: 2379
728 num-of-openonu: 1
729 num-of-onos: 3
730 num-of-atomix: 3
731 num-of-kafka: 3
732 num-of-etcd: 3
733 test-repo: 'voltha-system-tests'
734 release: 'master'
735 name-extension: ''
736 branch: 'master'
737 configurePod: true
738 volthaHelmChartsChange: ''
739 profile: 'Default'
740 logLevel: 'DEBUG'
741 enableMultiUni: false
742 uniPortMask: '0x0001'
743 bbsimReplicas: 0
744 num-of-onus: 0
745 num-of-ponports: 0
746 extraHelmFlags: ''
747 dmiChart: ''
748 OltDevMgr: ''
749 openoltAdapterChart: onf/voltha-adapter-openolt
750 oltAdapterReleaseName: open-olt
751 waitTimerForOltUp: 360
752
753 parameters:
754 - string:
755 name: buildNode
756 default: '{build-node}'
757 description: 'Name of the Jenkins executor node to run the job on'
758
759 - string:
760 name: TestNodeName
761 default: '{build-node}'
762 description: 'DEPRECATED - use buildNode instead'
763
764 - string:
765 name: logLevel
766 default: '{logLevel}'
767 description: 'Log level for all the components'
768
769 - string:
770 name: cordRepoUrl
771 default: '{gerrit-server-url}'
772 description: 'The URL of the CORD Project repository'
773
774 - string:
775 name: configBaseDir
776 default: 'pod-configs'
777 description: 'The directory inside the POD configs repository'
778
779 - string:
780 name: configDeploymentDir
781 default: 'deployment-configs'
782 description: 'The deployment configs folder'
783
784 - string:
785 name: configKubernetesDir
786 default: 'kubernetes-configs'
787 description: 'The kubernetes config folder'
788
789 - string:
790 name: configToscaDir
791 default: 'tosca-configs'
792 description: 'The tosca config folder'
793
794 - string:
795 name: configFileName
796 default: '{config-pod}'
797 description: 'The config file'
798
799 - string:
800 name: profile
801 default: '{profile}'
802 description: 'Technology Profile pushed to the ETCD'
803
804 - string:
805 name: helmRepoUrl
806 default: 'https://charts.opencord.org'
807 description: 'URL where helm-charts are published'
808
809 - string:
810 name: branch
811 default: '{branch}'
812
813 - string:
814 name: workFlow
815 default: '{work-flow}'
816 description: 'Installs and uses the specified work flow on the POD'
817
Hardik Windlassace19e52022-02-10 09:36:21 +0000818 - bool:
Hardik Windlass230fca62022-05-04 08:50:35 +0530819 name: installVolthaInfra
820 default: '{installVolthaInfra}'
821 description: "Whether to install VOLTHA Infra"
822
823 - bool:
824 name: installVolthaStack
825 default: '{installVolthaStack}'
826 description: "Whether to install VOLTHA Stack"
Hardik Windlassace19e52022-02-10 09:36:21 +0000827
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000828 - string:
829 name: extraHelmFlags
830 default: '{extraHelmFlags}'
831 description: 'Helm flags (passed to each deployment)'
832
833 - string:
834 name: dmiChart
835 default: '{dmiChart}'
836 description: 'Device Management Interface Helm Chart'
837
838 - string:
839 name: OltDevMgr
840 default: '{OltDevMgr}'
841 description: 'OLT Device Manager App Name'
842
843 # openonu-go only supports a single replica, remove after 2.8
844 - string:
845 name: NumOfOpenOnu
846 default: '{num-of-openonu}'
847 description: 'Installs the specified Number of OpenOnu Adapters'
848
849 - string:
850 name: NumOfOnos
851 default: '{num-of-onos}'
852 description: 'Installs the specified Number of ONOS instances'
853
854 - bool:
855 name: enableMultiUni
856 default: '{enableMultiUni}'
857 description: "Enables the Multi UNI feature"
858
859 - string:
860 name: uniPortMask
861 default: '{uniPortMask}'
862 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
863
864 - string:
865 name: bbsimReplicas
866 default: '{bbsimReplicas}'
867 description: 'Installs the specified Number of BBSim Instances'
868
869 - string:
870 name: onuNumber
871 default: '{num-of-onus}'
872 description: "Onus per PonPort"
873
874 - string:
875 name: ponNumber
876 default: '{num-of-ponports}'
877 description: "Number of PON Ports"
878
879 - string:
880 name: NumOfAtomix
881 default: '{num-of-atomix}'
882 description: 'Installs the specified Number of Atomix Instances'
883
884 - string:
885 name: NumOfKafka
886 default: '{num-of-kafka}'
887 description: 'Installs the specified Number of Kafka Instances'
888
889 - string:
890 name: NumOfEtcd
891 default: '{num-of-etcd}'
892 description: 'Installs the specified Number of Etcd Instances'
893
894 - bool:
895 name: configurePod
896 default: true
897 description: "Configure POD via TOSCA post build"
898
899 - bool:
900 name: reinstallOlt
901 default: '{reinstall-olt}'
902 description: "Re-install olt software bringing up CORD"
903
904 - bool:
905 name: restartOlt
906 default: '{restart-olt}'
907 description: "Re-install olt software bringing up CORD"
908
909 - string:
910 name: VolthaEtcdPort
911 default: '{VolthaEtcdPort}'
912 description: 'Localhost port that is forwarded to VOLTHA etcd'
913
914 - bool:
915 name: inBandManagement
916 default: '{in-band-management}'
917 description: 'Indicates whether POD is configured for in band management'
918
919 - string:
920 name: volthaSystemTestsChange
921 default: '{volthaSystemTestsChange}'
922 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
923
924 - string:
925 name: volthaHelmChartsChange
926 default: '{volthaHelmChartsChange}'
927 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
928
929 # this is used in the Adtran DT job
930 - string:
931 name: openoltAdapterChart
932 default: '{openoltAdapterChart}'
933 description: 'Olt adapter chart name (or location on file system)'
934
935 # this is used in the Adtran DT job
936 - string:
937 name: oltAdapterReleaseName
938 default: '{oltAdapterReleaseName}'
939 description: 'Olt adapter release name'
940
941 - string:
942 name: waitTimerForOltUp
943 default: '{waitTimerForOltUp}'
944 description: 'Wait timer for the OLT to come up after reboot'
945
946 concurrent: true
947 project-type: pipeline
948 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
949
950 triggers:
951 - timed: |
952 TZ=America/Los_Angeles
953 H {time} * * *