blob: 30a2194cdc71f6aa70f4d15e96e6560ae4d34eaa [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
100 - string:
101 name: uniPortMask
102 default: '{uniPortMask}'
103 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
104
Suchitra Vemuridddc3ac2021-02-11 15:40:43 -0800105 - string:
Hardik Windlass908533a2021-05-24 16:35:58 +0000106 name: bbsimReplicas
107 default: '{bbsimReplicas}'
108 description: 'Installs the specified Number of BBSim Instances'
109
110 - string:
Suchitra Vemuridddc3ac2021-02-11 15:40:43 -0800111 name: onuNumber
112 default: '{num-of-onus}'
113 description: "Onus per PonPort"
114
115 - string:
116 name: ponNumber
117 default: '{num-of-ponports}'
118 description: "Number of PON Ports"
119
Matteo Scandolo9973c652020-08-07 15:23:35 -0700120 - string:
121 name: NumOfAtomix
122 default: '{num-of-atomix}'
123 description: 'Installs the specified Number of Atomix Instances'
124
Hardik Windlassc7379022021-05-12 13:52:24 +0530125 - string:
126 name: NumOfKafka
127 default: '{num-of-kafka}'
128 description: 'Installs the specified Number of Kafka Instances'
129
130 - string:
131 name: NumOfEtcd
132 default: '{num-of-etcd}'
133 description: 'Installs the specified Number of Etcd Instances'
134
Matteo Scandolo9973c652020-08-07 15:23:35 -0700135 - bool:
136 name: configurePod
137 default: true
138 description: "Configure POD via TOSCA post build"
139
140 - bool:
141 name: reinstallOlt
142 default: '{reinstall-olt}'
143 description: "Re-install olt software bringing up CORD"
144
Matteo Scandolo9973c652020-08-07 15:23:35 -0700145 - string:
146 name: VolthaEtcdPort
147 default: '{VolthaEtcdPort}'
148 description: 'Localhost port that is forwarded to VOLTHA etcd'
149
150 - bool:
151 name: inBandManagement
152 default: '{in-band-management}'
153 description: 'Indicates whether POD is configured for in band management'
154
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700155 - string:
156 name: volthaSystemTestsChange
157 default: '{volthaSystemTestsChange}'
158 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
159
160 - string:
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700161 name: volthaHelmChartsChange
162 default: '{volthaHelmChartsChange}'
163 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
164
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700165 # NOTE is this needed/used?
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700166 - string:
167 name: cordTesterChange
168 default: '{cordTesterChange}'
169 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
170
Matteo Scandolo6eb673e2021-05-06 11:24:39 -0700171 # this is used in the Adtran DT job
Andrea Campanella6dfc0432021-01-12 10:43:16 +0100172 - string:
173 name: openoltAdapterChart
174 default: '{openoltAdapterChart}'
Andrea Campanellace8aa762021-08-27 09:32:22 +0200175 description: 'Olt adapter chart name (or location on file system)'
176
Andrea Campanellaecefbc82021-08-27 11:06:31 +0200177 # this is used in the Adtran DT job
Andrea Campanellace8aa762021-08-27 09:32:22 +0200178 - string:
179 name: oltAdapterReleaseName
180 default: '{oltAdapterReleaseName}'
181 description: 'Olt adapter release name'
Andrea Campanella6dfc0432021-01-12 10:43:16 +0100182
Andrea Campanellaecefbc82021-08-27 11:06:31 +0200183 - string:
184 name: waitTimerForOltUp
185 default: '{waitTimerForOltUp}'
186 description: 'Wait timer for the OLT to come up after reboot'
187
Matteo Scandolo9973c652020-08-07 15:23:35 -0700188# defualt properties for the VOLTHA scale jobs
189- voltha-pipe-job-boiler-plate: &voltha-pipe-job-boiler-plate
190 name: voltha-pipe-job-boiler-plate
191
192 project-type: pipeline
193
194 sandbox: true
195
196 properties:
197 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800198 build-days-to-keep: '{big-build-days-to-keep}'
199 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700200
201# VOLTHA Build Jobs
202- job-template:
Hardik Windlassc7379022021-05-12 13:52:24 +0530203 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual'
204 id: build_voltha_pod_manual
205 disabled: '{disable-job}'
206 description: |
207 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
208 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
209 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
210 Copyright (c) 2018 Open Networking Foundation (ONF)
211
212 <<: *voltha-pipe-job-boiler-plate
213 # default values
214 pipeline-script: 'voltha/master/physical-build.groovy'
215 VolthaEtcdPort: 2379
216 num-of-openonu: 1
217 num-of-onos: 1
218 num-of-atomix: 0
219 num-of-kafka: 1
220 num-of-etcd: 1
221 test-repo: 'voltha-system-tests'
222 release: 'master'
223 name-extension: ''
224 branch: 'master'
225 configurePod: true
226 volthaHelmChartsChange: ''
227 profile: 'Default'
228 logLevel: 'DEBUG'
Hardik Windlass6598b032021-07-02 10:12:01 +0000229 enableMultiUni: false
230 uniPortMask: '0x0001'
Hardik Windlass908533a2021-05-24 16:35:58 +0000231 bbsimReplicas: 0
Matteo Scandolo1c895512021-05-13 10:30:13 -0700232 num-of-onus: 0
233 num-of-ponports: 0
Matteo Scandolod47bfb22021-05-24 09:40:05 -0700234 extraHelmFlags: ''
Hardik Windlassc7379022021-05-12 13:52:24 +0530235
236 <<: *voltha-build-job-parameters
237
238 concurrent: true
239 project-type: pipeline
240 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
241
242# VOLTHA Build Jobs
243- job-template:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700244 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
245 id: build_voltha_pod_release_timer
Suchitra Vemuri26fe2432020-09-14 19:51:32 -0700246 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700247 description: |
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700248 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 -0700249 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700250 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
251 Copyright (c) 2018 Open Networking Foundation (ONF)
252
253 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700254 # default values
255 pipeline-script: 'voltha/master/physical-build.groovy'
256 VolthaEtcdPort: 2379
257 num-of-openonu: 1
258 num-of-onos: 3
259 num-of-atomix: 3
Hardik Windlassc7379022021-05-12 13:52:24 +0530260 num-of-kafka: 3
261 num-of-etcd: 3
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700262 test-repo: 'voltha-system-tests'
263 release: 'master'
264 name-extension: ''
265 branch: 'master'
266 configurePod: true
267 volthaHelmChartsChange: ''
268 profile: 'Default'
Matteo Scandolo6ddb0152021-05-07 11:25:17 -0700269 logLevel: 'DEBUG'
Hardik Windlass6598b032021-07-02 10:12:01 +0000270 enableMultiUni: false
271 uniPortMask: '0x0001'
Hardik Windlass908533a2021-05-24 16:35:58 +0000272 bbsimReplicas: 0
Matteo Scandolo1c895512021-05-13 10:30:13 -0700273 num-of-onus: 0
274 num-of-ponports: 0
Matteo Scandolod47bfb22021-05-24 09:40:05 -0700275 extraHelmFlags: ''
Matteo Scandolo9973c652020-08-07 15:23:35 -0700276
277 <<: *voltha-build-job-parameters
278
279 concurrent: true
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700280 project-type: pipeline
281 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Matteo Scandolo9973c652020-08-07 15:23:35 -0700282
283 triggers:
284 - timed: |
285 TZ=America/Los_Angeles
286 H {time} * * *
287
Matteo Scandolo9973c652020-08-07 15:23:35 -0700288# VOLTHA Test Job
289# This job is automatically triggered after a build job has successfully completed
290- job-template:
291 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
292 id: build_voltha_pod_test
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700293 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700294 description: |
295 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700296 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700297 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
298 Copyright (c) 2017 Open Networking Foundation (ONF)
299
300 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700301 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700302 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
303 manifest-branch: 'master'
304
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100305 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000306 enableMultiUni: false
Andrea Campanella2af4b902021-11-05 10:40:02 +0100307 timeout: 300
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100308
Matteo Scandolo9973c652020-08-07 15:23:35 -0700309 parameters:
310 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000311 name: timeout
312 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000313 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000314
315 - string:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700316 name: buildNode
317 default: '{build-node}'
318 description: 'Name of the Jenkins executor node to run the job on'
319
320 - string:
321 name: TestNodeName
322 default: '{build-node}'
323 description: 'DEPRECATED - use buildNode instead'
324
325 - string:
326 name: cordRepoUrl
327 default: '{gerrit-server-url}'
328 description: 'The URL of the CORD Project repository'
329
330 - string:
331 name: configBaseDir
332 default: 'pod-configs'
333 description: 'The directory inside the POD configs repository'
334
335 - string:
336 name: configDeploymentDir
337 default: 'deployment-configs'
338 description: 'The deployment configs folder'
339
340 - string:
341 name: configKubernetesDir
342 default: 'kubernetes-configs'
343 description: 'The kubernetes config folder'
344
345 - string:
346 name: configToscaDir
347 default: 'tosca-configs'
348 description: 'The tosca config folder'
349
350 - string:
351 name: configFileName
352 default: '{config-pod}'
353 description: 'The config file'
354
355 - string:
356 name: profile
357 default: '{profile}'
358 description: 'Technology Profile pushed to the ETCD'
359
360 - string:
361 name: branch
362 default: '{branch}'
363 description: 'Branch of the test libraries to check out'
364
365 - string:
366 name: manifestUrl
367 default: '{manifest-url}'
368 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
369
370 - string:
371 name: manifestBranch
372 default: '{manifest-branch}'
373 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
374
375 - string:
376 name: workFlow
377 default: '{work-flow}'
378 description: 'Installs and uses the specified work flow on the POD'
379
380 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000381 name: enableMultiUni
382 default: '{enableMultiUni}'
383 description: "Enables the Multi UNI feature"
384
385 - bool:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700386 name: powerSwitch
387 default: '{power-switch}'
388 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
389
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000390 - bool:
391 name: powerCycleOlt
392 default: '{power-cycle-olt}'
393 description: "Indicate whether to reboot OLT through power switch"
394
Andrea Campanella6ea62272020-09-16 11:10:52 +0200395 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100396 name: oltAdapterAppLabel
397 default: '{oltAdapterAppLabel}'
398 description: 'OLT adapter pod name'
399
400 - string:
Andrea Campanella6ea62272020-09-16 11:10:52 +0200401 name: volthaSystemTestsChange
402 default: '{volthaSystemTestsChange}'
403 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
404
405 - string:
406 name: kindVolthaChange
407 default: '{kindVolthaChange}'
408 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
409
410 - string:
411 name: cordTesterChange
412 default: '{cordTesterChange}'
413 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
414
Matteo Scandolo9973c652020-08-07 15:23:35 -0700415 concurrent: true
416
417 project-type: pipeline
418 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
419
420 triggers:
421 - reverse:
422 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
423 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700424
425
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700426# VOLTHA Soak Test Job
427# This job is triggered by a timer defined in the job
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700428- job-template:
429 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
430 id: build_voltha_pod_soak_test
Andrea Campanellab54cabe2020-11-26 14:48:11 +0100431 disabled: '{disable-job}'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700432 description: |
433 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
434 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
435 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
436 Copyright (c) 2017 Open Networking Foundation (ONF)
437
438 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700439 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700440 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
441 manifest-branch: 'master'
442
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100443 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000444 timeout: 240
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100445
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700446 parameters:
447 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000448 name: timeout
449 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000450 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000451
452 - string:
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700453 name: buildNode
454 default: '{build-node}'
455 description: 'Name of the Jenkins executor node to run the job on'
456
457 - string:
458 name: TestNodeName
459 default: '{build-node}'
460 description: 'DEPRECATED - use buildNode instead'
461
462 - string:
463 name: cordRepoUrl
464 default: '{gerrit-server-url}'
465 description: 'The URL of the CORD Project repository'
466
467 - string:
468 name: configBaseDir
469 default: 'pod-configs'
470 description: 'The directory inside the POD configs repository'
471
472 - string:
473 name: configDeploymentDir
474 default: 'deployment-configs'
475 description: 'The deployment configs folder'
476
477 - string:
478 name: configKubernetesDir
479 default: 'kubernetes-configs'
480 description: 'The kubernetes config folder'
481
482 - string:
483 name: configToscaDir
484 default: 'tosca-configs'
485 description: 'The tosca config folder'
486
487 - string:
488 name: configFileName
489 default: '{config-pod}'
490 description: 'The config file'
491
492 - string:
493 name: profile
494 default: '{profile}'
495 description: 'Technology Profile pushed to the ETCD'
496
497 - string:
498 name: branch
499 default: '{branch}'
500 description: 'Branch of the test libraries to check out'
501
502 - string:
503 name: manifestUrl
504 default: '{manifest-url}'
505 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
506
507 - string:
508 name: manifestBranch
509 default: '{manifest-branch}'
510 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
511
512 - string:
513 name: workFlow
514 default: '{work-flow}'
515 description: 'Installs and uses the specified work flow on the POD'
516
517 - bool:
518 name: powerSwitch
519 default: '{power-switch}'
520 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
521
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000522 - bool:
523 name: powerCycleOlt
524 default: '{power-cycle-olt}'
525 description: "Indicate whether to reboot OLT through power switch"
526
Suchitra Vemurie6625222020-09-01 17:12:56 -0700527 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100528 name: oltAdapterAppLabel
529 default: '{oltAdapterAppLabel}'
530 description: 'OLT adapter pod name'
531
532 - string:
Suchitra Vemurie6625222020-09-01 17:12:56 -0700533 name: testType
534 default: '{test-type}'
535 description: 'Passes the required test category to the groovy script'
536
Suchitra Vemurie3bb90d2020-09-15 17:15:50 -0700537 - string:
538 name: volthaSystemTestsChange
539 default: '{volthaSystemTestsChange}'
540 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
541
542 - string:
543 name: kindVolthaChange
544 default: '{kindVolthaChange}'
545 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
546
547 - string:
548 name: cordTesterChange
549 default: '{cordTesterChange}'
550 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 -0700551 concurrent: true
552
553 project-type: pipeline
554 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
555
556 triggers:
557 - timed: |
558 TZ=America/Los_Angeles
559 {time-trigger}
Hardik Windlass77221c62021-05-21 06:24:35 +0000560
561
562# VOLTHA Manual Test Job
563# This job is triggered manually
564- job-template:
565 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual_test'
566 id: build_voltha_pod_manual_test
567 disabled: '{disable-job}'
568 description: |
569 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
570 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
571 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
572 Copyright (c) 2017 Open Networking Foundation (ONF)
573 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700574 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Hardik Windlass77221c62021-05-21 06:24:35 +0000575 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
576 manifest-branch: 'master'
577
578 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000579 enableMultiUni: false
Hardik Windlass9ed73662021-09-02 11:06:21 +0000580 timeout: 240
Hardik Windlass77221c62021-05-21 06:24:35 +0000581
582 parameters:
583 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000584 name: timeout
585 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000586 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000587
588 - string:
Hardik Windlass77221c62021-05-21 06:24:35 +0000589 name: buildNode
590 default: '{build-node}'
591 description: 'Name of the Jenkins executor node to run the job on'
592
593 - string:
594 name: TestNodeName
595 default: '{build-node}'
596 description: 'DEPRECATED - use buildNode instead'
597
598 - string:
599 name: cordRepoUrl
600 default: '{gerrit-server-url}'
601 description: 'The URL of the CORD Project repository'
602
603 - string:
604 name: configBaseDir
605 default: 'pod-configs'
606 description: 'The directory inside the POD configs repository'
607
608 - string:
609 name: configDeploymentDir
610 default: 'deployment-configs'
611 description: 'The deployment configs folder'
612
613 - string:
614 name: configKubernetesDir
615 default: 'kubernetes-configs'
616 description: 'The kubernetes config folder'
617
618 - string:
619 name: configToscaDir
620 default: 'tosca-configs'
621 description: 'The tosca config folder'
622
623 - string:
624 name: configFileName
625 default: '{config-pod}'
626 description: 'The config file'
627
628 - string:
629 name: profile
630 default: '{profile}'
631 description: 'Technology Profile pushed to the ETCD'
632
633 - string:
634 name: branch
635 default: '{branch}'
636 description: 'Branch of the test libraries to check out'
637
638 - string:
639 name: manifestUrl
640 default: '{manifest-url}'
641 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
642
643 - string:
644 name: manifestBranch
645 default: '{manifest-branch}'
646 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
647
648 - string:
649 name: workFlow
650 default: '{work-flow}'
651 description: 'Installs and uses the specified work flow on the POD'
652
653 - bool:
654 name: powerSwitch
655 default: '{power-switch}'
656 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
657
Hardik Windlass6598b032021-07-02 10:12:01 +0000658 - bool:
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000659 name: powerCycleOlt
660 default: '{power-cycle-olt}'
661 description: "Indicate whether to reboot OLT through power switch"
662
663 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000664 name: enableMultiUni
665 default: '{enableMultiUni}'
666 description: "Enables the Multi UNI feature"
667
Hardik Windlass77221c62021-05-21 06:24:35 +0000668 - string:
669 name: oltAdapterAppLabel
670 default: '{oltAdapterAppLabel}'
671 description: 'OLT adapter pod name'
672
673 - string:
674 name: testType
675 default: '{test-type}'
676 description: 'Passes the required test category to the groovy script'
677
678 - string:
679 name: volthaSystemTestsChange
680 default: '{volthaSystemTestsChange}'
681 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
682
683 - string:
684 name: kindVolthaChange
685 default: '{kindVolthaChange}'
686 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
687
688 - string:
689 name: cordTesterChange
690 default: '{cordTesterChange}'
691 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
692 concurrent: true
693
694 project-type: pipeline
695 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000696
697# VOLTHA DMI Test Job
698# This job is triggered by a timer defined in the job
699- job-template:
700 name: 'verify_{config-pod}_{profile}{name-extension}_voltha_{release}_dmi'
701 id: verify_voltha_pod_dmi_test
702 disabled: '{disable-job}'
703 description: |
704 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
705 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
706 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
707 Copyright (c) 2018 Open Networking Foundation (ONF)
708
709 <<: *voltha-pipe-job-boiler-plate
710 # default values
711 pipeline-script: 'voltha/master/dmi-build-and-test.groovy'
Hardik Windlass230fca62022-05-04 08:50:35 +0530712 installVolthaInfra: true
713 installVolthaStack: true
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000714 VolthaEtcdPort: 2379
715 num-of-openonu: 1
716 num-of-onos: 3
717 num-of-atomix: 3
718 num-of-kafka: 3
719 num-of-etcd: 3
720 test-repo: 'voltha-system-tests'
721 release: 'master'
722 name-extension: ''
723 branch: 'master'
724 configurePod: true
725 volthaHelmChartsChange: ''
726 profile: 'Default'
727 logLevel: 'DEBUG'
728 enableMultiUni: false
729 uniPortMask: '0x0001'
730 bbsimReplicas: 0
731 num-of-onus: 0
732 num-of-ponports: 0
733 extraHelmFlags: ''
734 dmiChart: ''
735 OltDevMgr: ''
736 openoltAdapterChart: onf/voltha-adapter-openolt
737 oltAdapterReleaseName: open-olt
738 waitTimerForOltUp: 360
739
740 parameters:
741 - string:
742 name: buildNode
743 default: '{build-node}'
744 description: 'Name of the Jenkins executor node to run the job on'
745
746 - string:
747 name: TestNodeName
748 default: '{build-node}'
749 description: 'DEPRECATED - use buildNode instead'
750
751 - string:
752 name: logLevel
753 default: '{logLevel}'
754 description: 'Log level for all the components'
755
756 - string:
757 name: cordRepoUrl
758 default: '{gerrit-server-url}'
759 description: 'The URL of the CORD Project repository'
760
761 - string:
762 name: configBaseDir
763 default: 'pod-configs'
764 description: 'The directory inside the POD configs repository'
765
766 - string:
767 name: configDeploymentDir
768 default: 'deployment-configs'
769 description: 'The deployment configs folder'
770
771 - string:
772 name: configKubernetesDir
773 default: 'kubernetes-configs'
774 description: 'The kubernetes config folder'
775
776 - string:
777 name: configToscaDir
778 default: 'tosca-configs'
779 description: 'The tosca config folder'
780
781 - string:
782 name: configFileName
783 default: '{config-pod}'
784 description: 'The config file'
785
786 - string:
787 name: profile
788 default: '{profile}'
789 description: 'Technology Profile pushed to the ETCD'
790
791 - string:
792 name: helmRepoUrl
793 default: 'https://charts.opencord.org'
794 description: 'URL where helm-charts are published'
795
796 - string:
797 name: branch
798 default: '{branch}'
799
800 - string:
801 name: workFlow
802 default: '{work-flow}'
803 description: 'Installs and uses the specified work flow on the POD'
804
Hardik Windlassace19e52022-02-10 09:36:21 +0000805 - bool:
Hardik Windlass230fca62022-05-04 08:50:35 +0530806 name: installVolthaInfra
807 default: '{installVolthaInfra}'
808 description: "Whether to install VOLTHA Infra"
809
810 - bool:
811 name: installVolthaStack
812 default: '{installVolthaStack}'
813 description: "Whether to install VOLTHA Stack"
Hardik Windlassace19e52022-02-10 09:36:21 +0000814
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000815 - string:
816 name: extraHelmFlags
817 default: '{extraHelmFlags}'
818 description: 'Helm flags (passed to each deployment)'
819
820 - string:
821 name: dmiChart
822 default: '{dmiChart}'
823 description: 'Device Management Interface Helm Chart'
824
825 - string:
826 name: OltDevMgr
827 default: '{OltDevMgr}'
828 description: 'OLT Device Manager App Name'
829
830 # openonu-go only supports a single replica, remove after 2.8
831 - string:
832 name: NumOfOpenOnu
833 default: '{num-of-openonu}'
834 description: 'Installs the specified Number of OpenOnu Adapters'
835
836 - string:
837 name: NumOfOnos
838 default: '{num-of-onos}'
839 description: 'Installs the specified Number of ONOS instances'
840
841 - bool:
842 name: enableMultiUni
843 default: '{enableMultiUni}'
844 description: "Enables the Multi UNI feature"
845
846 - string:
847 name: uniPortMask
848 default: '{uniPortMask}'
849 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
850
851 - string:
852 name: bbsimReplicas
853 default: '{bbsimReplicas}'
854 description: 'Installs the specified Number of BBSim Instances'
855
856 - string:
857 name: onuNumber
858 default: '{num-of-onus}'
859 description: "Onus per PonPort"
860
861 - string:
862 name: ponNumber
863 default: '{num-of-ponports}'
864 description: "Number of PON Ports"
865
866 - string:
867 name: NumOfAtomix
868 default: '{num-of-atomix}'
869 description: 'Installs the specified Number of Atomix Instances'
870
871 - string:
872 name: NumOfKafka
873 default: '{num-of-kafka}'
874 description: 'Installs the specified Number of Kafka Instances'
875
876 - string:
877 name: NumOfEtcd
878 default: '{num-of-etcd}'
879 description: 'Installs the specified Number of Etcd Instances'
880
881 - bool:
882 name: configurePod
883 default: true
884 description: "Configure POD via TOSCA post build"
885
886 - bool:
887 name: reinstallOlt
888 default: '{reinstall-olt}'
889 description: "Re-install olt software bringing up CORD"
890
891 - bool:
892 name: restartOlt
893 default: '{restart-olt}'
894 description: "Re-install olt software bringing up CORD"
895
896 - string:
897 name: VolthaEtcdPort
898 default: '{VolthaEtcdPort}'
899 description: 'Localhost port that is forwarded to VOLTHA etcd'
900
901 - bool:
902 name: inBandManagement
903 default: '{in-band-management}'
904 description: 'Indicates whether POD is configured for in band management'
905
906 - string:
907 name: volthaSystemTestsChange
908 default: '{volthaSystemTestsChange}'
909 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
910
911 - string:
912 name: volthaHelmChartsChange
913 default: '{volthaHelmChartsChange}'
914 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
915
916 # this is used in the Adtran DT job
917 - string:
918 name: openoltAdapterChart
919 default: '{openoltAdapterChart}'
920 description: 'Olt adapter chart name (or location on file system)'
921
922 # this is used in the Adtran DT job
923 - string:
924 name: oltAdapterReleaseName
925 default: '{oltAdapterReleaseName}'
926 description: 'Olt adapter release name'
927
928 - string:
929 name: waitTimerForOltUp
930 default: '{waitTimerForOltUp}'
931 description: 'Wait timer for the OLT to come up after reboot'
932
933 concurrent: true
934 project-type: pipeline
935 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
936
937 triggers:
938 - timed: |
939 TZ=America/Los_Angeles
940 H {time} * * *