blob: 626e393b6b1da14451eb9e9e597ea7df9abf7277 [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 Windlassace19e52022-02-10 09:36:21 +0000712 installVoltha: true
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000713 VolthaEtcdPort: 2379
714 num-of-openonu: 1
715 num-of-onos: 3
716 num-of-atomix: 3
717 num-of-kafka: 3
718 num-of-etcd: 3
719 test-repo: 'voltha-system-tests'
720 release: 'master'
721 name-extension: ''
722 branch: 'master'
723 configurePod: true
724 volthaHelmChartsChange: ''
725 profile: 'Default'
726 logLevel: 'DEBUG'
727 enableMultiUni: false
728 uniPortMask: '0x0001'
729 bbsimReplicas: 0
730 num-of-onus: 0
731 num-of-ponports: 0
732 extraHelmFlags: ''
733 dmiChart: ''
734 OltDevMgr: ''
735 openoltAdapterChart: onf/voltha-adapter-openolt
736 oltAdapterReleaseName: open-olt
737 waitTimerForOltUp: 360
738
739 parameters:
740 - string:
741 name: buildNode
742 default: '{build-node}'
743 description: 'Name of the Jenkins executor node to run the job on'
744
745 - string:
746 name: TestNodeName
747 default: '{build-node}'
748 description: 'DEPRECATED - use buildNode instead'
749
750 - string:
751 name: logLevel
752 default: '{logLevel}'
753 description: 'Log level for all the components'
754
755 - string:
756 name: cordRepoUrl
757 default: '{gerrit-server-url}'
758 description: 'The URL of the CORD Project repository'
759
760 - string:
761 name: configBaseDir
762 default: 'pod-configs'
763 description: 'The directory inside the POD configs repository'
764
765 - string:
766 name: configDeploymentDir
767 default: 'deployment-configs'
768 description: 'The deployment configs folder'
769
770 - string:
771 name: configKubernetesDir
772 default: 'kubernetes-configs'
773 description: 'The kubernetes config folder'
774
775 - string:
776 name: configToscaDir
777 default: 'tosca-configs'
778 description: 'The tosca config folder'
779
780 - string:
781 name: configFileName
782 default: '{config-pod}'
783 description: 'The config file'
784
785 - string:
786 name: profile
787 default: '{profile}'
788 description: 'Technology Profile pushed to the ETCD'
789
790 - string:
791 name: helmRepoUrl
792 default: 'https://charts.opencord.org'
793 description: 'URL where helm-charts are published'
794
795 - string:
796 name: branch
797 default: '{branch}'
798
799 - string:
800 name: workFlow
801 default: '{work-flow}'
802 description: 'Installs and uses the specified work flow on the POD'
803
Hardik Windlassace19e52022-02-10 09:36:21 +0000804 - bool:
805 name: installVoltha
806 default: '{installVoltha}'
807 description: "Whether to install VOLTHA"
808
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000809 - string:
810 name: extraHelmFlags
811 default: '{extraHelmFlags}'
812 description: 'Helm flags (passed to each deployment)'
813
814 - string:
815 name: dmiChart
816 default: '{dmiChart}'
817 description: 'Device Management Interface Helm Chart'
818
819 - string:
820 name: OltDevMgr
821 default: '{OltDevMgr}'
822 description: 'OLT Device Manager App Name'
823
824 # openonu-go only supports a single replica, remove after 2.8
825 - string:
826 name: NumOfOpenOnu
827 default: '{num-of-openonu}'
828 description: 'Installs the specified Number of OpenOnu Adapters'
829
830 - string:
831 name: NumOfOnos
832 default: '{num-of-onos}'
833 description: 'Installs the specified Number of ONOS instances'
834
835 - bool:
836 name: enableMultiUni
837 default: '{enableMultiUni}'
838 description: "Enables the Multi UNI feature"
839
840 - string:
841 name: uniPortMask
842 default: '{uniPortMask}'
843 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
844
845 - string:
846 name: bbsimReplicas
847 default: '{bbsimReplicas}'
848 description: 'Installs the specified Number of BBSim Instances'
849
850 - string:
851 name: onuNumber
852 default: '{num-of-onus}'
853 description: "Onus per PonPort"
854
855 - string:
856 name: ponNumber
857 default: '{num-of-ponports}'
858 description: "Number of PON Ports"
859
860 - string:
861 name: NumOfAtomix
862 default: '{num-of-atomix}'
863 description: 'Installs the specified Number of Atomix Instances'
864
865 - string:
866 name: NumOfKafka
867 default: '{num-of-kafka}'
868 description: 'Installs the specified Number of Kafka Instances'
869
870 - string:
871 name: NumOfEtcd
872 default: '{num-of-etcd}'
873 description: 'Installs the specified Number of Etcd Instances'
874
875 - bool:
876 name: configurePod
877 default: true
878 description: "Configure POD via TOSCA post build"
879
880 - bool:
881 name: reinstallOlt
882 default: '{reinstall-olt}'
883 description: "Re-install olt software bringing up CORD"
884
885 - bool:
886 name: restartOlt
887 default: '{restart-olt}'
888 description: "Re-install olt software bringing up CORD"
889
890 - string:
891 name: VolthaEtcdPort
892 default: '{VolthaEtcdPort}'
893 description: 'Localhost port that is forwarded to VOLTHA etcd'
894
895 - bool:
896 name: inBandManagement
897 default: '{in-band-management}'
898 description: 'Indicates whether POD is configured for in band management'
899
900 - string:
901 name: volthaSystemTestsChange
902 default: '{volthaSystemTestsChange}'
903 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
904
905 - string:
906 name: volthaHelmChartsChange
907 default: '{volthaHelmChartsChange}'
908 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
909
910 # this is used in the Adtran DT job
911 - string:
912 name: openoltAdapterChart
913 default: '{openoltAdapterChart}'
914 description: 'Olt adapter chart name (or location on file system)'
915
916 # this is used in the Adtran DT job
917 - string:
918 name: oltAdapterReleaseName
919 default: '{oltAdapterReleaseName}'
920 description: 'Olt adapter release name'
921
922 - string:
923 name: waitTimerForOltUp
924 default: '{waitTimerForOltUp}'
925 description: 'Wait timer for the OLT to come up after reboot'
926
927 concurrent: true
928 project-type: pipeline
929 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
930
931 triggers:
932 - timed: |
933 TZ=America/Los_Angeles
934 H {time} * * *