blob: 0d07a91cbb91ad05777438addffffabf6dcee9e3 [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
Andrea Campanella6ea62272020-09-16 11:10:52 +0200390 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100391 name: oltAdapterAppLabel
392 default: '{oltAdapterAppLabel}'
393 description: 'OLT adapter pod name'
394
395 - string:
Andrea Campanella6ea62272020-09-16 11:10:52 +0200396 name: volthaSystemTestsChange
397 default: '{volthaSystemTestsChange}'
398 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
399
400 - string:
401 name: kindVolthaChange
402 default: '{kindVolthaChange}'
403 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
404
405 - string:
406 name: cordTesterChange
407 default: '{cordTesterChange}'
408 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
409
Matteo Scandolo9973c652020-08-07 15:23:35 -0700410 concurrent: true
411
412 project-type: pipeline
413 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
414
415 triggers:
416 - reverse:
417 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
418 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700419
420
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700421# VOLTHA Soak Test Job
422# This job is triggered by a timer defined in the job
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700423- job-template:
424 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
425 id: build_voltha_pod_soak_test
Andrea Campanellab54cabe2020-11-26 14:48:11 +0100426 disabled: '{disable-job}'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700427 description: |
428 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
429 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
430 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
431 Copyright (c) 2017 Open Networking Foundation (ONF)
432
433 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700434 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700435 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
436 manifest-branch: 'master'
437
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100438 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000439 timeout: 240
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100440
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700441 parameters:
442 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000443 name: timeout
444 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000445 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000446
447 - string:
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700448 name: buildNode
449 default: '{build-node}'
450 description: 'Name of the Jenkins executor node to run the job on'
451
452 - string:
453 name: TestNodeName
454 default: '{build-node}'
455 description: 'DEPRECATED - use buildNode instead'
456
457 - string:
458 name: cordRepoUrl
459 default: '{gerrit-server-url}'
460 description: 'The URL of the CORD Project repository'
461
462 - string:
463 name: configBaseDir
464 default: 'pod-configs'
465 description: 'The directory inside the POD configs repository'
466
467 - string:
468 name: configDeploymentDir
469 default: 'deployment-configs'
470 description: 'The deployment configs folder'
471
472 - string:
473 name: configKubernetesDir
474 default: 'kubernetes-configs'
475 description: 'The kubernetes config folder'
476
477 - string:
478 name: configToscaDir
479 default: 'tosca-configs'
480 description: 'The tosca config folder'
481
482 - string:
483 name: configFileName
484 default: '{config-pod}'
485 description: 'The config file'
486
487 - string:
488 name: profile
489 default: '{profile}'
490 description: 'Technology Profile pushed to the ETCD'
491
492 - string:
493 name: branch
494 default: '{branch}'
495 description: 'Branch of the test libraries to check out'
496
497 - string:
498 name: manifestUrl
499 default: '{manifest-url}'
500 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
501
502 - string:
503 name: manifestBranch
504 default: '{manifest-branch}'
505 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
506
507 - string:
508 name: workFlow
509 default: '{work-flow}'
510 description: 'Installs and uses the specified work flow on the POD'
511
512 - bool:
513 name: powerSwitch
514 default: '{power-switch}'
515 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
516
Suchitra Vemurie6625222020-09-01 17:12:56 -0700517 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100518 name: oltAdapterAppLabel
519 default: '{oltAdapterAppLabel}'
520 description: 'OLT adapter pod name'
521
522 - string:
Suchitra Vemurie6625222020-09-01 17:12:56 -0700523 name: testType
524 default: '{test-type}'
525 description: 'Passes the required test category to the groovy script'
526
Suchitra Vemurie3bb90d2020-09-15 17:15:50 -0700527 - string:
528 name: volthaSystemTestsChange
529 default: '{volthaSystemTestsChange}'
530 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
531
532 - string:
533 name: kindVolthaChange
534 default: '{kindVolthaChange}'
535 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
536
537 - string:
538 name: cordTesterChange
539 default: '{cordTesterChange}'
540 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 -0700541 concurrent: true
542
543 project-type: pipeline
544 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
545
546 triggers:
547 - timed: |
548 TZ=America/Los_Angeles
549 {time-trigger}
Hardik Windlass77221c62021-05-21 06:24:35 +0000550
551
552# VOLTHA Manual Test Job
553# This job is triggered manually
554- job-template:
555 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual_test'
556 id: build_voltha_pod_manual_test
557 disabled: '{disable-job}'
558 description: |
559 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
560 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
561 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
562 Copyright (c) 2017 Open Networking Foundation (ONF)
563 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700564 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Hardik Windlass77221c62021-05-21 06:24:35 +0000565 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
566 manifest-branch: 'master'
567
568 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000569 enableMultiUni: false
Hardik Windlass9ed73662021-09-02 11:06:21 +0000570 timeout: 240
Hardik Windlass77221c62021-05-21 06:24:35 +0000571
572 parameters:
573 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000574 name: timeout
575 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000576 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000577
578 - string:
Hardik Windlass77221c62021-05-21 06:24:35 +0000579 name: buildNode
580 default: '{build-node}'
581 description: 'Name of the Jenkins executor node to run the job on'
582
583 - string:
584 name: TestNodeName
585 default: '{build-node}'
586 description: 'DEPRECATED - use buildNode instead'
587
588 - string:
589 name: cordRepoUrl
590 default: '{gerrit-server-url}'
591 description: 'The URL of the CORD Project repository'
592
593 - string:
594 name: configBaseDir
595 default: 'pod-configs'
596 description: 'The directory inside the POD configs repository'
597
598 - string:
599 name: configDeploymentDir
600 default: 'deployment-configs'
601 description: 'The deployment configs folder'
602
603 - string:
604 name: configKubernetesDir
605 default: 'kubernetes-configs'
606 description: 'The kubernetes config folder'
607
608 - string:
609 name: configToscaDir
610 default: 'tosca-configs'
611 description: 'The tosca config folder'
612
613 - string:
614 name: configFileName
615 default: '{config-pod}'
616 description: 'The config file'
617
618 - string:
619 name: profile
620 default: '{profile}'
621 description: 'Technology Profile pushed to the ETCD'
622
623 - string:
624 name: branch
625 default: '{branch}'
626 description: 'Branch of the test libraries to check out'
627
628 - string:
629 name: manifestUrl
630 default: '{manifest-url}'
631 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
632
633 - string:
634 name: manifestBranch
635 default: '{manifest-branch}'
636 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
637
638 - string:
639 name: workFlow
640 default: '{work-flow}'
641 description: 'Installs and uses the specified work flow on the POD'
642
643 - bool:
644 name: powerSwitch
645 default: '{power-switch}'
646 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
647
Hardik Windlass6598b032021-07-02 10:12:01 +0000648 - bool:
649 name: enableMultiUni
650 default: '{enableMultiUni}'
651 description: "Enables the Multi UNI feature"
652
Hardik Windlass77221c62021-05-21 06:24:35 +0000653 - string:
654 name: oltAdapterAppLabel
655 default: '{oltAdapterAppLabel}'
656 description: 'OLT adapter pod name'
657
658 - string:
659 name: testType
660 default: '{test-type}'
661 description: 'Passes the required test category to the groovy script'
662
663 - string:
664 name: volthaSystemTestsChange
665 default: '{volthaSystemTestsChange}'
666 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
667
668 - string:
669 name: kindVolthaChange
670 default: '{kindVolthaChange}'
671 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
672
673 - string:
674 name: cordTesterChange
675 default: '{cordTesterChange}'
676 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
677 concurrent: true
678
679 project-type: pipeline
680 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000681
682# VOLTHA DMI Test Job
683# This job is triggered by a timer defined in the job
684- job-template:
685 name: 'verify_{config-pod}_{profile}{name-extension}_voltha_{release}_dmi'
686 id: verify_voltha_pod_dmi_test
687 disabled: '{disable-job}'
688 description: |
689 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
690 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
691 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
692 Copyright (c) 2018 Open Networking Foundation (ONF)
693
694 <<: *voltha-pipe-job-boiler-plate
695 # default values
696 pipeline-script: 'voltha/master/dmi-build-and-test.groovy'
Hardik Windlassace19e52022-02-10 09:36:21 +0000697 installVoltha: true
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000698 VolthaEtcdPort: 2379
699 num-of-openonu: 1
700 num-of-onos: 3
701 num-of-atomix: 3
702 num-of-kafka: 3
703 num-of-etcd: 3
704 test-repo: 'voltha-system-tests'
705 release: 'master'
706 name-extension: ''
707 branch: 'master'
708 configurePod: true
709 volthaHelmChartsChange: ''
710 profile: 'Default'
711 logLevel: 'DEBUG'
712 enableMultiUni: false
713 uniPortMask: '0x0001'
714 bbsimReplicas: 0
715 num-of-onus: 0
716 num-of-ponports: 0
717 extraHelmFlags: ''
718 dmiChart: ''
719 OltDevMgr: ''
720 openoltAdapterChart: onf/voltha-adapter-openolt
721 oltAdapterReleaseName: open-olt
722 waitTimerForOltUp: 360
723
724 parameters:
725 - string:
726 name: buildNode
727 default: '{build-node}'
728 description: 'Name of the Jenkins executor node to run the job on'
729
730 - string:
731 name: TestNodeName
732 default: '{build-node}'
733 description: 'DEPRECATED - use buildNode instead'
734
735 - string:
736 name: logLevel
737 default: '{logLevel}'
738 description: 'Log level for all the components'
739
740 - string:
741 name: cordRepoUrl
742 default: '{gerrit-server-url}'
743 description: 'The URL of the CORD Project repository'
744
745 - string:
746 name: configBaseDir
747 default: 'pod-configs'
748 description: 'The directory inside the POD configs repository'
749
750 - string:
751 name: configDeploymentDir
752 default: 'deployment-configs'
753 description: 'The deployment configs folder'
754
755 - string:
756 name: configKubernetesDir
757 default: 'kubernetes-configs'
758 description: 'The kubernetes config folder'
759
760 - string:
761 name: configToscaDir
762 default: 'tosca-configs'
763 description: 'The tosca config folder'
764
765 - string:
766 name: configFileName
767 default: '{config-pod}'
768 description: 'The config file'
769
770 - string:
771 name: profile
772 default: '{profile}'
773 description: 'Technology Profile pushed to the ETCD'
774
775 - string:
776 name: helmRepoUrl
777 default: 'https://charts.opencord.org'
778 description: 'URL where helm-charts are published'
779
780 - string:
781 name: branch
782 default: '{branch}'
783
784 - string:
785 name: workFlow
786 default: '{work-flow}'
787 description: 'Installs and uses the specified work flow on the POD'
788
Hardik Windlassace19e52022-02-10 09:36:21 +0000789 - bool:
790 name: installVoltha
791 default: '{installVoltha}'
792 description: "Whether to install VOLTHA"
793
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000794 - string:
795 name: extraHelmFlags
796 default: '{extraHelmFlags}'
797 description: 'Helm flags (passed to each deployment)'
798
799 - string:
800 name: dmiChart
801 default: '{dmiChart}'
802 description: 'Device Management Interface Helm Chart'
803
804 - string:
805 name: OltDevMgr
806 default: '{OltDevMgr}'
807 description: 'OLT Device Manager App Name'
808
809 # openonu-go only supports a single replica, remove after 2.8
810 - string:
811 name: NumOfOpenOnu
812 default: '{num-of-openonu}'
813 description: 'Installs the specified Number of OpenOnu Adapters'
814
815 - string:
816 name: NumOfOnos
817 default: '{num-of-onos}'
818 description: 'Installs the specified Number of ONOS instances'
819
820 - bool:
821 name: enableMultiUni
822 default: '{enableMultiUni}'
823 description: "Enables the Multi UNI feature"
824
825 - string:
826 name: uniPortMask
827 default: '{uniPortMask}'
828 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
829
830 - string:
831 name: bbsimReplicas
832 default: '{bbsimReplicas}'
833 description: 'Installs the specified Number of BBSim Instances'
834
835 - string:
836 name: onuNumber
837 default: '{num-of-onus}'
838 description: "Onus per PonPort"
839
840 - string:
841 name: ponNumber
842 default: '{num-of-ponports}'
843 description: "Number of PON Ports"
844
845 - string:
846 name: NumOfAtomix
847 default: '{num-of-atomix}'
848 description: 'Installs the specified Number of Atomix Instances'
849
850 - string:
851 name: NumOfKafka
852 default: '{num-of-kafka}'
853 description: 'Installs the specified Number of Kafka Instances'
854
855 - string:
856 name: NumOfEtcd
857 default: '{num-of-etcd}'
858 description: 'Installs the specified Number of Etcd Instances'
859
860 - bool:
861 name: configurePod
862 default: true
863 description: "Configure POD via TOSCA post build"
864
865 - bool:
866 name: reinstallOlt
867 default: '{reinstall-olt}'
868 description: "Re-install olt software bringing up CORD"
869
870 - bool:
871 name: restartOlt
872 default: '{restart-olt}'
873 description: "Re-install olt software bringing up CORD"
874
875 - string:
876 name: VolthaEtcdPort
877 default: '{VolthaEtcdPort}'
878 description: 'Localhost port that is forwarded to VOLTHA etcd'
879
880 - bool:
881 name: inBandManagement
882 default: '{in-band-management}'
883 description: 'Indicates whether POD is configured for in band management'
884
885 - string:
886 name: volthaSystemTestsChange
887 default: '{volthaSystemTestsChange}'
888 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
889
890 - string:
891 name: volthaHelmChartsChange
892 default: '{volthaHelmChartsChange}'
893 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
894
895 # this is used in the Adtran DT job
896 - string:
897 name: openoltAdapterChart
898 default: '{openoltAdapterChart}'
899 description: 'Olt adapter chart name (or location on file system)'
900
901 # this is used in the Adtran DT job
902 - string:
903 name: oltAdapterReleaseName
904 default: '{oltAdapterReleaseName}'
905 description: 'Olt adapter release name'
906
907 - string:
908 name: waitTimerForOltUp
909 default: '{waitTimerForOltUp}'
910 description: 'Wait timer for the OLT to come up after reboot'
911
912 concurrent: true
913 project-type: pipeline
914 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
915
916 triggers:
917 - timed: |
918 TZ=America/Los_Angeles
919 H {time} * * *