blob: e34538dade9a0feae832769608bc649eb05d5c36 [file] [log] [blame]
Matteo Scandolo9973c652020-08-07 15:23:35 -07001---
2# list of parameters for the VOLTHA Jobs,
3# used as anchor so that can be shared across multiple jobs
4# to use in a job: `parameters: *voltha-build-job-parameters`
5- voltha-build-job-parameters: &voltha-build-job-parameters
6 name: voltha-build-job-parameters
Andrea Campanella6dfc0432021-01-12 10:43:16 +01007
8 openoltAdapterChart: onf/voltha-adapter-openolt
9
Andrea Campanellace8aa762021-08-27 09:32:22 +020010 oltAdapterReleaseName: open-olt
11
Andrea Campanellaecefbc82021-08-27 11:06:31 +020012 waitTimerForOltUp: 360
13
Matteo Scandolo9973c652020-08-07 15:23:35 -070014 parameters:
15 - string:
16 name: buildNode
17 default: '{build-node}'
18 description: 'Name of the Jenkins executor node to run the job on'
19
20 - string:
21 name: TestNodeName
22 default: '{build-node}'
23 description: 'DEPRECATED - use buildNode instead'
24
25 - string:
Matteo Scandolo982b69d2021-05-10 12:01:57 -070026 name: logLevel
27 default: '{logLevel}'
28 description: 'Log level for all the components'
29
30 - string:
Matteo Scandolo9973c652020-08-07 15:23:35 -070031 name: cordRepoUrl
32 default: '{gerrit-server-url}'
33 description: 'The URL of the CORD Project repository'
34
35 - string:
36 name: configBaseDir
37 default: 'pod-configs'
38 description: 'The directory inside the POD configs repository'
39
40 - string:
41 name: configDeploymentDir
42 default: 'deployment-configs'
43 description: 'The deployment configs folder'
44
45 - string:
46 name: configKubernetesDir
47 default: 'kubernetes-configs'
48 description: 'The kubernetes config folder'
49
50 - string:
51 name: configToscaDir
52 default: 'tosca-configs'
53 description: 'The tosca config folder'
54
55 - string:
56 name: configFileName
57 default: '{config-pod}'
58 description: 'The config file'
59
60 - string:
61 name: profile
62 default: '{profile}'
63 description: 'Technology Profile pushed to the ETCD'
64
65 - string:
66 name: helmRepoUrl
67 default: 'https://charts.opencord.org'
68 description: 'URL where helm-charts are published'
69
70 - string:
71 name: branch
72 default: '{branch}'
73
74 - string:
Matteo Scandolo9973c652020-08-07 15:23:35 -070075 name: workFlow
76 default: '{work-flow}'
77 description: 'Installs and uses the specified work flow on the POD'
78
Matteo Scandolod47bfb22021-05-24 09:40:05 -070079 - string:
80 name: extraHelmFlags
81 default: '{extraHelmFlags}'
82 description: 'Helm flags (passed to each deployment)'
83
Matteo Scandolod82d1de2021-04-06 14:55:58 -070084 # openonu-go only supports a single replica, remove after 2.8
Matteo Scandolo9973c652020-08-07 15:23:35 -070085 - string:
86 name: NumOfOpenOnu
87 default: '{num-of-openonu}'
88 description: 'Installs the specified Number of OpenOnu Adapters'
89
90 - string:
91 name: NumOfOnos
92 default: '{num-of-onos}'
93 description: 'Installs the specified Number of ONOS instances'
94
Hardik Windlass6598b032021-07-02 10:12:01 +000095 - bool:
96 name: enableMultiUni
97 default: '{enableMultiUni}'
98 description: "Enables the Multi UNI feature"
99
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530100 - bool:
101 name: withFttb
102 default: '{withFttb}'
103 description: "Deploy with FTTB"
104
Hardik Windlass6598b032021-07-02 10:12:01 +0000105 - string:
106 name: uniPortMask
107 default: '{uniPortMask}'
108 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
109
Suchitra Vemuridddc3ac2021-02-11 15:40:43 -0800110 - string:
Hardik Windlass908533a2021-05-24 16:35:58 +0000111 name: bbsimReplicas
112 default: '{bbsimReplicas}'
113 description: 'Installs the specified Number of BBSim Instances'
114
115 - string:
Suchitra Vemuridddc3ac2021-02-11 15:40:43 -0800116 name: onuNumber
117 default: '{num-of-onus}'
118 description: "Onus per PonPort"
119
120 - string:
121 name: ponNumber
122 default: '{num-of-ponports}'
123 description: "Number of PON Ports"
124
Matteo Scandolo9973c652020-08-07 15:23:35 -0700125 - string:
126 name: NumOfAtomix
127 default: '{num-of-atomix}'
128 description: 'Installs the specified Number of Atomix Instances'
129
Hardik Windlassc7379022021-05-12 13:52:24 +0530130 - string:
131 name: NumOfKafka
132 default: '{num-of-kafka}'
133 description: 'Installs the specified Number of Kafka Instances'
134
135 - string:
136 name: NumOfEtcd
137 default: '{num-of-etcd}'
138 description: 'Installs the specified Number of Etcd Instances'
139
Matteo Scandolo9973c652020-08-07 15:23:35 -0700140 - bool:
141 name: configurePod
142 default: true
143 description: "Configure POD via TOSCA post build"
144
145 - bool:
146 name: reinstallOlt
147 default: '{reinstall-olt}'
148 description: "Re-install olt software bringing up CORD"
149
Matteo Scandolo9973c652020-08-07 15:23:35 -0700150 - string:
151 name: VolthaEtcdPort
152 default: '{VolthaEtcdPort}'
153 description: 'Localhost port that is forwarded to VOLTHA etcd'
154
155 - bool:
156 name: inBandManagement
157 default: '{in-band-management}'
158 description: 'Indicates whether POD is configured for in band management'
159
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700160 - string:
161 name: volthaSystemTestsChange
162 default: '{volthaSystemTestsChange}'
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500163 description: 'Download delta from gerrit:voltha-system-tests, example value: "refs/changes/79/18779/13"'
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700164
165 - string:
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700166 name: volthaHelmChartsChange
167 default: '{volthaHelmChartsChange}'
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500168 description: 'Download delta from gerrit:voltha-helm-charts, example value: "refs/changes/32/19132/1"'
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700169
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700170 # NOTE is this needed/used?
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700171 - string:
172 name: cordTesterChange
173 default: '{cordTesterChange}'
174 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
175
Matteo Scandolo6eb673e2021-05-06 11:24:39 -0700176 # this is used in the Adtran DT job
Andrea Campanella6dfc0432021-01-12 10:43:16 +0100177 - string:
178 name: openoltAdapterChart
179 default: '{openoltAdapterChart}'
Andrea Campanellace8aa762021-08-27 09:32:22 +0200180 description: 'Olt adapter chart name (or location on file system)'
181
Andrea Campanellaecefbc82021-08-27 11:06:31 +0200182 # this is used in the Adtran DT job
Andrea Campanellace8aa762021-08-27 09:32:22 +0200183 - string:
184 name: oltAdapterReleaseName
185 default: '{oltAdapterReleaseName}'
186 description: 'Olt adapter release name'
Andrea Campanella6dfc0432021-01-12 10:43:16 +0100187
Andrea Campanellaecefbc82021-08-27 11:06:31 +0200188 - string:
189 name: waitTimerForOltUp
190 default: '{waitTimerForOltUp}'
191 description: 'Wait timer for the OLT to come up after reboot'
192
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500193 - bool:
194 name: DebugMode
195 default: false
196 description: "Enable script debugging (unused)"
197
198# -----------------------------------------------------------------------
199# default properties for the VOLTHA scale jobs
200# -----------------------------------------------------------------------
Matteo Scandolo9973c652020-08-07 15:23:35 -0700201- voltha-pipe-job-boiler-plate: &voltha-pipe-job-boiler-plate
202 name: voltha-pipe-job-boiler-plate
203
204 project-type: pipeline
205
206 sandbox: true
207
208 properties:
Joey Armstronge04fe1f2022-08-25 13:48:13 -0400209 - onf-infra-volthadevs-permissions
Matteo Scandolo9973c652020-08-07 15:23:35 -0700210 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800211 build-days-to-keep: '{big-build-days-to-keep}'
212 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700213
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500214# -----------------------------------------------------------------------
Matteo Scandolo9973c652020-08-07 15:23:35 -0700215# VOLTHA Build Jobs
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500216# -----------------------------------------------------------------------
Matteo Scandolo9973c652020-08-07 15:23:35 -0700217- job-template:
Hardik Windlassc7379022021-05-12 13:52:24 +0530218 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual'
219 id: build_voltha_pod_manual
220 disabled: '{disable-job}'
221 description: |
222 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
223 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500224 Created by QA (Suchitra Vemuri) <br />
225 Copyright 2018-2022 Open Networking Foundation (ONF) and the ONF Contributors
Hardik Windlassc7379022021-05-12 13:52:24 +0530226
227 <<: *voltha-pipe-job-boiler-plate
228 # default values
229 pipeline-script: 'voltha/master/physical-build.groovy'
230 VolthaEtcdPort: 2379
231 num-of-openonu: 1
232 num-of-onos: 1
233 num-of-atomix: 0
234 num-of-kafka: 1
235 num-of-etcd: 1
236 test-repo: 'voltha-system-tests'
237 release: 'master'
238 name-extension: ''
239 branch: 'master'
240 configurePod: true
241 volthaHelmChartsChange: ''
242 profile: 'Default'
243 logLevel: 'DEBUG'
Hardik Windlass6598b032021-07-02 10:12:01 +0000244 enableMultiUni: false
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530245 withFttb: false
Hardik Windlass6598b032021-07-02 10:12:01 +0000246 uniPortMask: '0x0001'
Hardik Windlass908533a2021-05-24 16:35:58 +0000247 bbsimReplicas: 0
Matteo Scandolo1c895512021-05-13 10:30:13 -0700248 num-of-onus: 0
249 num-of-ponports: 0
Matteo Scandolod47bfb22021-05-24 09:40:05 -0700250 extraHelmFlags: ''
Hardik Windlassc7379022021-05-12 13:52:24 +0530251
252 <<: *voltha-build-job-parameters
253
254 concurrent: true
255 project-type: pipeline
256 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
257
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500258# -----------------------------------------------------------------------
Hardik Windlassc7379022021-05-12 13:52:24 +0530259# VOLTHA Build Jobs
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500260# -----------------------------------------------------------------------
Hardik Windlassc7379022021-05-12 13:52:24 +0530261- job-template:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700262 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
263 id: build_voltha_pod_release_timer
Suchitra Vemuri26fe2432020-09-14 19:51:32 -0700264 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700265 description: |
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700266 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 -0700267 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500268 Created by QA (Suchitra Vemuri) <br />
269 Copyright 2018-2022 Open Networking Foundation (ONF) and the ONF Contributors
Matteo Scandolo9973c652020-08-07 15:23:35 -0700270
271 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700272 # default values
273 pipeline-script: 'voltha/master/physical-build.groovy'
274 VolthaEtcdPort: 2379
275 num-of-openonu: 1
276 num-of-onos: 3
277 num-of-atomix: 3
Hardik Windlassc7379022021-05-12 13:52:24 +0530278 num-of-kafka: 3
279 num-of-etcd: 3
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700280 test-repo: 'voltha-system-tests'
281 release: 'master'
282 name-extension: ''
283 branch: 'master'
284 configurePod: true
285 volthaHelmChartsChange: ''
286 profile: 'Default'
Matteo Scandolo6ddb0152021-05-07 11:25:17 -0700287 logLevel: 'DEBUG'
Hardik Windlass6598b032021-07-02 10:12:01 +0000288 enableMultiUni: false
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530289 withFttb: false
Hardik Windlass6598b032021-07-02 10:12:01 +0000290 uniPortMask: '0x0001'
Hardik Windlass908533a2021-05-24 16:35:58 +0000291 bbsimReplicas: 0
Matteo Scandolo1c895512021-05-13 10:30:13 -0700292 num-of-onus: 0
293 num-of-ponports: 0
Matteo Scandolod47bfb22021-05-24 09:40:05 -0700294 extraHelmFlags: ''
Matteo Scandolo9973c652020-08-07 15:23:35 -0700295
296 <<: *voltha-build-job-parameters
297
298 concurrent: true
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700299 project-type: pipeline
300 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Matteo Scandolo9973c652020-08-07 15:23:35 -0700301
302 triggers:
303 - timed: |
304 TZ=America/Los_Angeles
305 H {time} * * *
306
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500307# -----------------------------------------------------------------------
Matteo Scandolo9973c652020-08-07 15:23:35 -0700308# VOLTHA Test Job
309# This job is automatically triggered after a build job has successfully completed
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500310# -----------------------------------------------------------------------
Matteo Scandolo9973c652020-08-07 15:23:35 -0700311- job-template:
312 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
313 id: build_voltha_pod_test
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700314 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700315 description: |
316 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700317 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500318 Created by (Suchitra Vemuri) <br />
319 Copyright 2017-2022 Open Networking Foundation (ONF) and the ONF Contributors
Matteo Scandolo9973c652020-08-07 15:23:35 -0700320
321 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700322 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700323 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
324 manifest-branch: 'master'
325
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100326 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000327 enableMultiUni: false
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530328 withFttb: false
Andrea Campanella2af4b902021-11-05 10:40:02 +0100329 timeout: 300
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100330
Matteo Scandolo9973c652020-08-07 15:23:35 -0700331 parameters:
332 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000333 name: timeout
334 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000335 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000336
337 - string:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700338 name: buildNode
339 default: '{build-node}'
340 description: 'Name of the Jenkins executor node to run the job on'
341
342 - string:
343 name: TestNodeName
344 default: '{build-node}'
345 description: 'DEPRECATED - use buildNode instead'
346
347 - string:
348 name: cordRepoUrl
349 default: '{gerrit-server-url}'
350 description: 'The URL of the CORD Project repository'
351
352 - string:
353 name: configBaseDir
354 default: 'pod-configs'
355 description: 'The directory inside the POD configs repository'
356
357 - string:
358 name: configDeploymentDir
359 default: 'deployment-configs'
360 description: 'The deployment configs folder'
361
362 - string:
363 name: configKubernetesDir
364 default: 'kubernetes-configs'
365 description: 'The kubernetes config folder'
366
367 - string:
368 name: configToscaDir
369 default: 'tosca-configs'
370 description: 'The tosca config folder'
371
372 - string:
373 name: configFileName
374 default: '{config-pod}'
375 description: 'The config file'
376
377 - string:
378 name: profile
379 default: '{profile}'
380 description: 'Technology Profile pushed to the ETCD'
381
382 - string:
383 name: branch
384 default: '{branch}'
385 description: 'Branch of the test libraries to check out'
386
387 - string:
388 name: manifestUrl
389 default: '{manifest-url}'
390 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
391
392 - string:
393 name: manifestBranch
394 default: '{manifest-branch}'
395 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
396
397 - string:
398 name: workFlow
399 default: '{work-flow}'
400 description: 'Installs and uses the specified work flow on the POD'
401
402 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000403 name: enableMultiUni
404 default: '{enableMultiUni}'
405 description: "Enables the Multi UNI feature"
406
407 - bool:
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530408 name: withFttb
409 default: '{withFttb}'
410 description: "Test with FTTB enabled"
411
412 - bool:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700413 name: powerSwitch
414 default: '{power-switch}'
415 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
416
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000417 - bool:
418 name: powerCycleOlt
419 default: '{power-cycle-olt}'
420 description: "Indicate whether to reboot OLT through power switch"
421
Andrea Campanella6ea62272020-09-16 11:10:52 +0200422 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100423 name: oltAdapterAppLabel
424 default: '{oltAdapterAppLabel}'
425 description: 'OLT adapter pod name'
426
427 - string:
Andrea Campanella6ea62272020-09-16 11:10:52 +0200428 name: volthaSystemTestsChange
429 default: '{volthaSystemTestsChange}'
430 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
431
432 - string:
433 name: kindVolthaChange
434 default: '{kindVolthaChange}'
435 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
436
437 - string:
438 name: cordTesterChange
439 default: '{cordTesterChange}'
440 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
441
Matteo Scandolo9973c652020-08-07 15:23:35 -0700442 concurrent: true
443
444 project-type: pipeline
445 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
446
447 triggers:
448 - reverse:
449 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
450 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700451
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500452# -----------------------------------------------------------------------
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700453# VOLTHA Soak Test Job
454# This job is triggered by a timer defined in the job
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500455# -----------------------------------------------------------------------
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700456- job-template:
457 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
458 id: build_voltha_pod_soak_test
Andrea Campanellab54cabe2020-11-26 14:48:11 +0100459 disabled: '{disable-job}'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700460 description: |
461 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
462 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500463 Created by (Suchitra Vemuri) <br />
464 Copyright 2017-2022 Open Networking Foundation (ONF) and the ONF Contributors
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700465
466 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700467 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700468 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
469 manifest-branch: 'master'
470
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100471 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000472 timeout: 240
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100473
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700474 parameters:
475 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000476 name: timeout
477 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000478 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000479
480 - string:
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700481 name: buildNode
482 default: '{build-node}'
483 description: 'Name of the Jenkins executor node to run the job on'
484
485 - string:
486 name: TestNodeName
487 default: '{build-node}'
488 description: 'DEPRECATED - use buildNode instead'
489
490 - string:
491 name: cordRepoUrl
492 default: '{gerrit-server-url}'
493 description: 'The URL of the CORD Project repository'
494
495 - string:
496 name: configBaseDir
497 default: 'pod-configs'
498 description: 'The directory inside the POD configs repository'
499
500 - string:
501 name: configDeploymentDir
502 default: 'deployment-configs'
503 description: 'The deployment configs folder'
504
505 - string:
506 name: configKubernetesDir
507 default: 'kubernetes-configs'
508 description: 'The kubernetes config folder'
509
510 - string:
511 name: configToscaDir
512 default: 'tosca-configs'
513 description: 'The tosca config folder'
514
515 - string:
516 name: configFileName
517 default: '{config-pod}'
518 description: 'The config file'
519
520 - string:
521 name: profile
522 default: '{profile}'
523 description: 'Technology Profile pushed to the ETCD'
524
525 - string:
526 name: branch
527 default: '{branch}'
528 description: 'Branch of the test libraries to check out'
529
530 - string:
531 name: manifestUrl
532 default: '{manifest-url}'
533 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
534
535 - string:
536 name: manifestBranch
537 default: '{manifest-branch}'
538 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
539
540 - string:
541 name: workFlow
542 default: '{work-flow}'
543 description: 'Installs and uses the specified work flow on the POD'
544
545 - bool:
546 name: powerSwitch
547 default: '{power-switch}'
548 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
549
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000550 - bool:
551 name: powerCycleOlt
552 default: '{power-cycle-olt}'
553 description: "Indicate whether to reboot OLT through power switch"
554
Suchitra Vemurie6625222020-09-01 17:12:56 -0700555 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100556 name: oltAdapterAppLabel
557 default: '{oltAdapterAppLabel}'
558 description: 'OLT adapter pod name'
559
560 - string:
Suchitra Vemurie6625222020-09-01 17:12:56 -0700561 name: testType
562 default: '{test-type}'
563 description: 'Passes the required test category to the groovy script'
564
Suchitra Vemurie3bb90d2020-09-15 17:15:50 -0700565 - string:
566 name: volthaSystemTestsChange
567 default: '{volthaSystemTestsChange}'
568 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
569
570 - string:
571 name: kindVolthaChange
572 default: '{kindVolthaChange}'
573 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
574
575 - string:
576 name: cordTesterChange
577 default: '{cordTesterChange}'
578 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500579
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700580 concurrent: true
581
582 project-type: pipeline
583 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
584
585 triggers:
586 - timed: |
587 TZ=America/Los_Angeles
588 {time-trigger}
Hardik Windlass77221c62021-05-21 06:24:35 +0000589
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500590# -----------------------------------------------------------------------
Hardik Windlass77221c62021-05-21 06:24:35 +0000591# VOLTHA Manual Test Job
592# This job is triggered manually
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500593# -----------------------------------------------------------------------
Hardik Windlass77221c62021-05-21 06:24:35 +0000594- job-template:
595 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual_test'
596 id: build_voltha_pod_manual_test
597 disabled: '{disable-job}'
598 description: |
599 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
600 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500601 Created by (Suchitra Vemuri) <br />
602 Copyright 2017-2022 Open Networking Foundation (ONF) and the ONF Contributors
603
Hardik Windlass77221c62021-05-21 06:24:35 +0000604 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700605 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Hardik Windlass77221c62021-05-21 06:24:35 +0000606 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
607 manifest-branch: 'master'
608
609 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000610 enableMultiUni: false
Hardik Windlass9ed73662021-09-02 11:06:21 +0000611 timeout: 240
Hardik Windlass77221c62021-05-21 06:24:35 +0000612
613 parameters:
614 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000615 name: timeout
616 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000617 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000618
619 - string:
Hardik Windlass77221c62021-05-21 06:24:35 +0000620 name: buildNode
621 default: '{build-node}'
622 description: 'Name of the Jenkins executor node to run the job on'
623
624 - string:
625 name: TestNodeName
626 default: '{build-node}'
627 description: 'DEPRECATED - use buildNode instead'
628
629 - string:
630 name: cordRepoUrl
631 default: '{gerrit-server-url}'
632 description: 'The URL of the CORD Project repository'
633
634 - string:
635 name: configBaseDir
636 default: 'pod-configs'
637 description: 'The directory inside the POD configs repository'
638
639 - string:
640 name: configDeploymentDir
641 default: 'deployment-configs'
642 description: 'The deployment configs folder'
643
644 - string:
645 name: configKubernetesDir
646 default: 'kubernetes-configs'
647 description: 'The kubernetes config folder'
648
649 - string:
650 name: configToscaDir
651 default: 'tosca-configs'
652 description: 'The tosca config folder'
653
654 - string:
655 name: configFileName
656 default: '{config-pod}'
657 description: 'The config file'
658
659 - string:
660 name: profile
661 default: '{profile}'
662 description: 'Technology Profile pushed to the ETCD'
663
664 - string:
665 name: branch
666 default: '{branch}'
667 description: 'Branch of the test libraries to check out'
668
669 - string:
670 name: manifestUrl
671 default: '{manifest-url}'
672 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
673
674 - string:
675 name: manifestBranch
676 default: '{manifest-branch}'
677 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
678
679 - string:
680 name: workFlow
681 default: '{work-flow}'
682 description: 'Installs and uses the specified work flow on the POD'
683
684 - bool:
685 name: powerSwitch
686 default: '{power-switch}'
687 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
688
Hardik Windlass6598b032021-07-02 10:12:01 +0000689 - bool:
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000690 name: powerCycleOlt
691 default: '{power-cycle-olt}'
692 description: "Indicate whether to reboot OLT through power switch"
693
694 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000695 name: enableMultiUni
696 default: '{enableMultiUni}'
697 description: "Enables the Multi UNI feature"
698
Hardik Windlass77221c62021-05-21 06:24:35 +0000699 - string:
700 name: oltAdapterAppLabel
701 default: '{oltAdapterAppLabel}'
702 description: 'OLT adapter pod name'
703
704 - string:
705 name: testType
706 default: '{test-type}'
707 description: 'Passes the required test category to the groovy script'
708
709 - string:
710 name: volthaSystemTestsChange
711 default: '{volthaSystemTestsChange}'
712 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
713
714 - string:
715 name: kindVolthaChange
716 default: '{kindVolthaChange}'
717 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
718
719 - string:
720 name: cordTesterChange
721 default: '{cordTesterChange}'
722 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
723 concurrent: true
724
725 project-type: pipeline
726 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000727
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500728# -----------------------------------------------------------------------
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000729# VOLTHA DMI Test Job
730# This job is triggered by a timer defined in the job
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500731# -----------------------------------------------------------------------
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000732- job-template:
733 name: 'verify_{config-pod}_{profile}{name-extension}_voltha_{release}_dmi'
734 id: verify_voltha_pod_dmi_test
735 disabled: '{disable-job}'
736 description: |
737 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
738 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500739 Created by QA (Suchitra Vemuri) <br />
740 Copyright 2018-2022 Open Networking Foundation (ONF) and the ONF Contributors
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000741
742 <<: *voltha-pipe-job-boiler-plate
743 # default values
744 pipeline-script: 'voltha/master/dmi-build-and-test.groovy'
Hardik Windlass230fca62022-05-04 08:50:35 +0530745 installVolthaInfra: true
746 installVolthaStack: true
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000747 VolthaEtcdPort: 2379
748 num-of-openonu: 1
749 num-of-onos: 3
750 num-of-atomix: 3
751 num-of-kafka: 3
752 num-of-etcd: 3
753 test-repo: 'voltha-system-tests'
754 release: 'master'
755 name-extension: ''
756 branch: 'master'
757 configurePod: true
758 volthaHelmChartsChange: ''
759 profile: 'Default'
760 logLevel: 'DEBUG'
761 enableMultiUni: false
762 uniPortMask: '0x0001'
763 bbsimReplicas: 0
764 num-of-onus: 0
765 num-of-ponports: 0
766 extraHelmFlags: ''
767 dmiChart: ''
768 OltDevMgr: ''
769 openoltAdapterChart: onf/voltha-adapter-openolt
770 oltAdapterReleaseName: open-olt
771 waitTimerForOltUp: 360
772
773 parameters:
774 - string:
775 name: buildNode
776 default: '{build-node}'
777 description: 'Name of the Jenkins executor node to run the job on'
778
779 - string:
780 name: TestNodeName
781 default: '{build-node}'
782 description: 'DEPRECATED - use buildNode instead'
783
784 - string:
785 name: logLevel
786 default: '{logLevel}'
787 description: 'Log level for all the components'
788
789 - string:
790 name: cordRepoUrl
791 default: '{gerrit-server-url}'
792 description: 'The URL of the CORD Project repository'
793
794 - string:
795 name: configBaseDir
796 default: 'pod-configs'
797 description: 'The directory inside the POD configs repository'
798
799 - string:
800 name: configDeploymentDir
801 default: 'deployment-configs'
802 description: 'The deployment configs folder'
803
804 - string:
805 name: configKubernetesDir
806 default: 'kubernetes-configs'
807 description: 'The kubernetes config folder'
808
809 - string:
810 name: configToscaDir
811 default: 'tosca-configs'
812 description: 'The tosca config folder'
813
814 - string:
815 name: configFileName
816 default: '{config-pod}'
817 description: 'The config file'
818
819 - string:
820 name: profile
821 default: '{profile}'
822 description: 'Technology Profile pushed to the ETCD'
823
824 - string:
825 name: helmRepoUrl
826 default: 'https://charts.opencord.org'
827 description: 'URL where helm-charts are published'
828
829 - string:
830 name: branch
831 default: '{branch}'
832
833 - string:
834 name: workFlow
835 default: '{work-flow}'
836 description: 'Installs and uses the specified work flow on the POD'
837
Hardik Windlassace19e52022-02-10 09:36:21 +0000838 - bool:
Hardik Windlass230fca62022-05-04 08:50:35 +0530839 name: installVolthaInfra
840 default: '{installVolthaInfra}'
841 description: "Whether to install VOLTHA Infra"
842
843 - bool:
844 name: installVolthaStack
845 default: '{installVolthaStack}'
846 description: "Whether to install VOLTHA Stack"
Hardik Windlassace19e52022-02-10 09:36:21 +0000847
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000848 - string:
849 name: extraHelmFlags
850 default: '{extraHelmFlags}'
851 description: 'Helm flags (passed to each deployment)'
852
853 - string:
854 name: dmiChart
855 default: '{dmiChart}'
856 description: 'Device Management Interface Helm Chart'
857
858 - string:
859 name: OltDevMgr
860 default: '{OltDevMgr}'
861 description: 'OLT Device Manager App Name'
862
863 # openonu-go only supports a single replica, remove after 2.8
864 - string:
865 name: NumOfOpenOnu
866 default: '{num-of-openonu}'
867 description: 'Installs the specified Number of OpenOnu Adapters'
868
869 - string:
870 name: NumOfOnos
871 default: '{num-of-onos}'
872 description: 'Installs the specified Number of ONOS instances'
873
874 - bool:
875 name: enableMultiUni
876 default: '{enableMultiUni}'
877 description: "Enables the Multi UNI feature"
878
879 - string:
880 name: uniPortMask
881 default: '{uniPortMask}'
882 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
883
884 - string:
885 name: bbsimReplicas
886 default: '{bbsimReplicas}'
887 description: 'Installs the specified Number of BBSim Instances'
888
889 - string:
890 name: onuNumber
891 default: '{num-of-onus}'
892 description: "Onus per PonPort"
893
894 - string:
895 name: ponNumber
896 default: '{num-of-ponports}'
897 description: "Number of PON Ports"
898
899 - string:
900 name: NumOfAtomix
901 default: '{num-of-atomix}'
902 description: 'Installs the specified Number of Atomix Instances'
903
904 - string:
905 name: NumOfKafka
906 default: '{num-of-kafka}'
907 description: 'Installs the specified Number of Kafka Instances'
908
909 - string:
910 name: NumOfEtcd
911 default: '{num-of-etcd}'
912 description: 'Installs the specified Number of Etcd Instances'
913
914 - bool:
915 name: configurePod
916 default: true
917 description: "Configure POD via TOSCA post build"
918
919 - bool:
920 name: reinstallOlt
921 default: '{reinstall-olt}'
922 description: "Re-install olt software bringing up CORD"
923
924 - bool:
925 name: restartOlt
926 default: '{restart-olt}'
927 description: "Re-install olt software bringing up CORD"
928
929 - string:
930 name: VolthaEtcdPort
931 default: '{VolthaEtcdPort}'
932 description: 'Localhost port that is forwarded to VOLTHA etcd'
933
934 - bool:
935 name: inBandManagement
936 default: '{in-band-management}'
937 description: 'Indicates whether POD is configured for in band management'
938
939 - string:
940 name: volthaSystemTestsChange
941 default: '{volthaSystemTestsChange}'
942 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
943
944 - string:
945 name: volthaHelmChartsChange
946 default: '{volthaHelmChartsChange}'
947 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
948
949 # this is used in the Adtran DT job
950 - string:
951 name: openoltAdapterChart
952 default: '{openoltAdapterChart}'
953 description: 'Olt adapter chart name (or location on file system)'
954
955 # this is used in the Adtran DT job
956 - string:
957 name: oltAdapterReleaseName
958 default: '{oltAdapterReleaseName}'
959 description: 'Olt adapter release name'
960
961 - string:
962 name: waitTimerForOltUp
963 default: '{waitTimerForOltUp}'
964 description: 'Wait timer for the OLT to come up after reboot'
965
966 concurrent: true
967 project-type: pipeline
968 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
969
970 triggers:
971 - timed: |
972 TZ=America/Los_Angeles
973 H {time} * * *
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500974
975# [EOF]