blob: e99e3ba8572c543eedf62a8abf5d262d1ea299c6 [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# -----------------------------------------------------------------------
Joey Armstrong980e37f2023-02-28 18:57:41 -0500215# VOLTHA Build Job (manual)
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 />
Joey Armstrongbeef4cd2023-01-18 09:59:58 -0500225 Copyright 2018-2023 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# -----------------------------------------------------------------------
Joey Armstrong980e37f2023-02-28 18:57:41 -0500259# VOLTHA Build Jobs (periodic)
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 />
Joey Armstrongbeef4cd2023-01-18 09:59:58 -0500269 Copyright 2018-2023 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# -----------------------------------------------------------------------
Joey Armstrong980e37f2023-02-28 18:57:41 -0500308# VOLTHA Build Jobs (periodic: playground
309# -----------------------------------------------------------------------
310- job-template:
311 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}-debug'
312 id: build_voltha_pod_release_timer_playground
313 disabled: '{disable-job}'
314 description: |
315 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
316 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
317 Created by QA (Suchitra Vemuri) <br />
318 Copyright 2018-2023 Open Networking Foundation (ONF) and the ONF Contributors
319
320 <<: *voltha-pipe-job-boiler-plate
321 # default values
322 pipeline-script: 'voltha/playground/physical-build.groovy'
323 VolthaEtcdPort: 2379
324 num-of-openonu: 1
325 num-of-onos: 3
326 num-of-atomix: 3
327 num-of-kafka: 3
328 num-of-etcd: 3
329 test-repo: 'voltha-system-tests'
330 release: 'master'
331 name-extension: ''
332 branch: 'master'
333 configurePod: true
334 volthaHelmChartsChange: ''
335 profile: 'Default'
336 logLevel: 'DEBUG'
337 enableMultiUni: false
338 withFttb: false
339 uniPortMask: '0x0001'
340 bbsimReplicas: 0
341 num-of-onus: 0
342 num-of-ponports: 0
343 extraHelmFlags: ''
344
345 <<: *voltha-build-job-parameters
346
347 concurrent: true
348 project-type: pipeline
349 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
350
351 triggers:
352 - timed: |
353 TZ=America/Los_Angeles
354 H {time} * * *
355
356# -----------------------------------------------------------------------
Matteo Scandolo9973c652020-08-07 15:23:35 -0700357# VOLTHA Test Job
358# This job is automatically triggered after a build job has successfully completed
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500359# -----------------------------------------------------------------------
Matteo Scandolo9973c652020-08-07 15:23:35 -0700360- job-template:
361 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
362 id: build_voltha_pod_test
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700363 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700364 description: |
365 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700366 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500367 Created by (Suchitra Vemuri) <br />
Joey Armstrongbeef4cd2023-01-18 09:59:58 -0500368 Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Matteo Scandolo9973c652020-08-07 15:23:35 -0700369
370 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700371 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700372 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
373 manifest-branch: 'master'
374
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100375 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000376 enableMultiUni: false
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530377 withFttb: false
Andrea Campanella2af4b902021-11-05 10:40:02 +0100378 timeout: 300
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100379
Matteo Scandolo9973c652020-08-07 15:23:35 -0700380 parameters:
381 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000382 name: timeout
383 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000384 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000385
386 - string:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700387 name: buildNode
388 default: '{build-node}'
389 description: 'Name of the Jenkins executor node to run the job on'
390
391 - string:
392 name: TestNodeName
393 default: '{build-node}'
394 description: 'DEPRECATED - use buildNode instead'
395
396 - string:
397 name: cordRepoUrl
398 default: '{gerrit-server-url}'
399 description: 'The URL of the CORD Project repository'
400
401 - string:
402 name: configBaseDir
403 default: 'pod-configs'
404 description: 'The directory inside the POD configs repository'
405
406 - string:
407 name: configDeploymentDir
408 default: 'deployment-configs'
409 description: 'The deployment configs folder'
410
411 - string:
412 name: configKubernetesDir
413 default: 'kubernetes-configs'
414 description: 'The kubernetes config folder'
415
416 - string:
417 name: configToscaDir
418 default: 'tosca-configs'
419 description: 'The tosca config folder'
420
421 - string:
422 name: configFileName
423 default: '{config-pod}'
424 description: 'The config file'
425
426 - string:
427 name: profile
428 default: '{profile}'
429 description: 'Technology Profile pushed to the ETCD'
430
431 - string:
432 name: branch
433 default: '{branch}'
434 description: 'Branch of the test libraries to check out'
435
436 - string:
437 name: manifestUrl
438 default: '{manifest-url}'
439 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
440
441 - string:
442 name: manifestBranch
443 default: '{manifest-branch}'
444 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
445
446 - string:
447 name: workFlow
448 default: '{work-flow}'
449 description: 'Installs and uses the specified work flow on the POD'
450
451 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000452 name: enableMultiUni
453 default: '{enableMultiUni}'
454 description: "Enables the Multi UNI feature"
455
456 - bool:
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530457 name: withFttb
458 default: '{withFttb}'
459 description: "Test with FTTB enabled"
460
461 - bool:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700462 name: powerSwitch
463 default: '{power-switch}'
464 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
465
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000466 - bool:
467 name: powerCycleOlt
468 default: '{power-cycle-olt}'
469 description: "Indicate whether to reboot OLT through power switch"
470
Andrea Campanella6ea62272020-09-16 11:10:52 +0200471 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100472 name: oltAdapterAppLabel
473 default: '{oltAdapterAppLabel}'
474 description: 'OLT adapter pod name'
475
476 - string:
Andrea Campanella6ea62272020-09-16 11:10:52 +0200477 name: volthaSystemTestsChange
478 default: '{volthaSystemTestsChange}'
479 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
480
481 - string:
482 name: kindVolthaChange
483 default: '{kindVolthaChange}'
484 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
485
486 - string:
487 name: cordTesterChange
488 default: '{cordTesterChange}'
489 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
490
Matteo Scandolo9973c652020-08-07 15:23:35 -0700491 concurrent: true
492
493 project-type: pipeline
494 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
495
496 triggers:
497 - reverse:
498 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
499 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700500
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500501# -----------------------------------------------------------------------
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700502# VOLTHA Soak Test Job
503# This job is triggered by a timer defined in the job
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500504# -----------------------------------------------------------------------
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700505- job-template:
506 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
507 id: build_voltha_pod_soak_test
Andrea Campanellab54cabe2020-11-26 14:48:11 +0100508 disabled: '{disable-job}'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700509 description: |
510 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
511 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500512 Created by (Suchitra Vemuri) <br />
Joey Armstrongbeef4cd2023-01-18 09:59:58 -0500513 Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700514
515 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700516 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700517 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
518 manifest-branch: 'master'
519
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100520 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000521 timeout: 240
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100522
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700523 parameters:
524 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000525 name: timeout
526 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000527 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000528
529 - string:
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700530 name: buildNode
531 default: '{build-node}'
532 description: 'Name of the Jenkins executor node to run the job on'
533
534 - string:
535 name: TestNodeName
536 default: '{build-node}'
537 description: 'DEPRECATED - use buildNode instead'
538
539 - string:
540 name: cordRepoUrl
541 default: '{gerrit-server-url}'
542 description: 'The URL of the CORD Project repository'
543
544 - string:
545 name: configBaseDir
546 default: 'pod-configs'
547 description: 'The directory inside the POD configs repository'
548
549 - string:
550 name: configDeploymentDir
551 default: 'deployment-configs'
552 description: 'The deployment configs folder'
553
554 - string:
555 name: configKubernetesDir
556 default: 'kubernetes-configs'
557 description: 'The kubernetes config folder'
558
559 - string:
560 name: configToscaDir
561 default: 'tosca-configs'
562 description: 'The tosca config folder'
563
564 - string:
565 name: configFileName
566 default: '{config-pod}'
567 description: 'The config file'
568
569 - string:
570 name: profile
571 default: '{profile}'
572 description: 'Technology Profile pushed to the ETCD'
573
574 - string:
575 name: branch
576 default: '{branch}'
577 description: 'Branch of the test libraries to check out'
578
579 - string:
580 name: manifestUrl
581 default: '{manifest-url}'
582 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
583
584 - string:
585 name: manifestBranch
586 default: '{manifest-branch}'
587 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
588
589 - string:
590 name: workFlow
591 default: '{work-flow}'
592 description: 'Installs and uses the specified work flow on the POD'
593
594 - bool:
595 name: powerSwitch
596 default: '{power-switch}'
597 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
598
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000599 - bool:
600 name: powerCycleOlt
601 default: '{power-cycle-olt}'
602 description: "Indicate whether to reboot OLT through power switch"
603
Suchitra Vemurie6625222020-09-01 17:12:56 -0700604 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100605 name: oltAdapterAppLabel
606 default: '{oltAdapterAppLabel}'
607 description: 'OLT adapter pod name'
608
609 - string:
Suchitra Vemurie6625222020-09-01 17:12:56 -0700610 name: testType
611 default: '{test-type}'
612 description: 'Passes the required test category to the groovy script'
613
Suchitra Vemurie3bb90d2020-09-15 17:15:50 -0700614 - string:
615 name: volthaSystemTestsChange
616 default: '{volthaSystemTestsChange}'
617 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
618
619 - string:
620 name: kindVolthaChange
621 default: '{kindVolthaChange}'
622 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
623
624 - string:
625 name: cordTesterChange
626 default: '{cordTesterChange}'
627 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 -0500628
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700629 concurrent: true
630
631 project-type: pipeline
632 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
633
634 triggers:
635 - timed: |
636 TZ=America/Los_Angeles
637 {time-trigger}
Hardik Windlass77221c62021-05-21 06:24:35 +0000638
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500639# -----------------------------------------------------------------------
Hardik Windlass77221c62021-05-21 06:24:35 +0000640# VOLTHA Manual Test Job
641# This job is triggered manually
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500642# -----------------------------------------------------------------------
Hardik Windlass77221c62021-05-21 06:24:35 +0000643- job-template:
644 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual_test'
645 id: build_voltha_pod_manual_test
646 disabled: '{disable-job}'
647 description: |
648 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
649 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500650 Created by (Suchitra Vemuri) <br />
Joey Armstrongbeef4cd2023-01-18 09:59:58 -0500651 Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500652
Hardik Windlass77221c62021-05-21 06:24:35 +0000653 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700654 pipeline-script: 'voltha/master/voltha-physical-functional-tests.groovy'
Hardik Windlass77221c62021-05-21 06:24:35 +0000655 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
656 manifest-branch: 'master'
657
658 oltAdapterAppLabel: 'adapter-open-olt'
Hardik Windlass6598b032021-07-02 10:12:01 +0000659 enableMultiUni: false
Hardik Windlass9ed73662021-09-02 11:06:21 +0000660 timeout: 240
Hardik Windlass77221c62021-05-21 06:24:35 +0000661
662 parameters:
663 - string:
Hardik Windlass9ed73662021-09-02 11:06:21 +0000664 name: timeout
665 default: '{timeout}'
Hardik Windlassd0f01662021-09-03 08:07:15 +0000666 description: 'Job pipeline timeout value [minutes]'
Hardik Windlass9ed73662021-09-02 11:06:21 +0000667
668 - string:
Hardik Windlass77221c62021-05-21 06:24:35 +0000669 name: buildNode
670 default: '{build-node}'
671 description: 'Name of the Jenkins executor node to run the job on'
672
673 - string:
674 name: TestNodeName
675 default: '{build-node}'
676 description: 'DEPRECATED - use buildNode instead'
677
678 - string:
679 name: cordRepoUrl
680 default: '{gerrit-server-url}'
681 description: 'The URL of the CORD Project repository'
682
683 - string:
684 name: configBaseDir
685 default: 'pod-configs'
686 description: 'The directory inside the POD configs repository'
687
688 - string:
689 name: configDeploymentDir
690 default: 'deployment-configs'
691 description: 'The deployment configs folder'
692
693 - string:
694 name: configKubernetesDir
695 default: 'kubernetes-configs'
696 description: 'The kubernetes config folder'
697
698 - string:
699 name: configToscaDir
700 default: 'tosca-configs'
701 description: 'The tosca config folder'
702
703 - string:
704 name: configFileName
705 default: '{config-pod}'
706 description: 'The config file'
707
708 - string:
709 name: profile
710 default: '{profile}'
711 description: 'Technology Profile pushed to the ETCD'
712
713 - string:
714 name: branch
715 default: '{branch}'
716 description: 'Branch of the test libraries to check out'
717
718 - string:
719 name: manifestUrl
720 default: '{manifest-url}'
721 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
722
723 - string:
724 name: manifestBranch
725 default: '{manifest-branch}'
726 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
727
728 - string:
729 name: workFlow
730 default: '{work-flow}'
731 description: 'Installs and uses the specified work flow on the POD'
732
733 - bool:
734 name: powerSwitch
735 default: '{power-switch}'
736 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
737
Hardik Windlass6598b032021-07-02 10:12:01 +0000738 - bool:
Hardik Windlass28a7bd02022-04-12 13:14:54 +0000739 name: powerCycleOlt
740 default: '{power-cycle-olt}'
741 description: "Indicate whether to reboot OLT through power switch"
742
743 - bool:
Hardik Windlass6598b032021-07-02 10:12:01 +0000744 name: enableMultiUni
745 default: '{enableMultiUni}'
746 description: "Enables the Multi UNI feature"
747
Hardik Windlass77221c62021-05-21 06:24:35 +0000748 - string:
749 name: oltAdapterAppLabel
750 default: '{oltAdapterAppLabel}'
751 description: 'OLT adapter pod name'
752
753 - string:
754 name: testType
755 default: '{test-type}'
756 description: 'Passes the required test category to the groovy script'
757
758 - string:
759 name: volthaSystemTestsChange
760 default: '{volthaSystemTestsChange}'
761 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
762
763 - string:
764 name: kindVolthaChange
765 default: '{kindVolthaChange}'
766 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
767
768 - string:
769 name: cordTesterChange
770 default: '{cordTesterChange}'
771 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
772 concurrent: true
773
774 project-type: pipeline
775 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000776
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500777# -----------------------------------------------------------------------
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000778# VOLTHA DMI Test Job
779# This job is triggered by a timer defined in the job
Joey Armstrong4c6bb422022-12-02 10:40:21 -0500780# -----------------------------------------------------------------------
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000781- job-template:
782 name: 'verify_{config-pod}_{profile}{name-extension}_voltha_{release}_dmi'
783 id: verify_voltha_pod_dmi_test
784 disabled: '{disable-job}'
785 description: |
786 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
787 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Joey Armstrong5704e5a2022-11-14 12:20:41 -0500788 Created by QA (Suchitra Vemuri) <br />
Joey Armstrongbeef4cd2023-01-18 09:59:58 -0500789 Copyright 2018-2023 Open Networking Foundation (ONF) and the ONF Contributors
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000790
791 <<: *voltha-pipe-job-boiler-plate
792 # default values
793 pipeline-script: 'voltha/master/dmi-build-and-test.groovy'
Hardik Windlass230fca62022-05-04 08:50:35 +0530794 installVolthaInfra: true
795 installVolthaStack: true
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000796 VolthaEtcdPort: 2379
797 num-of-openonu: 1
798 num-of-onos: 3
799 num-of-atomix: 3
800 num-of-kafka: 3
801 num-of-etcd: 3
802 test-repo: 'voltha-system-tests'
803 release: 'master'
804 name-extension: ''
805 branch: 'master'
806 configurePod: true
807 volthaHelmChartsChange: ''
808 profile: 'Default'
809 logLevel: 'DEBUG'
810 enableMultiUni: false
811 uniPortMask: '0x0001'
812 bbsimReplicas: 0
813 num-of-onus: 0
814 num-of-ponports: 0
815 extraHelmFlags: ''
816 dmiChart: ''
817 OltDevMgr: ''
818 openoltAdapterChart: onf/voltha-adapter-openolt
819 oltAdapterReleaseName: open-olt
820 waitTimerForOltUp: 360
821
822 parameters:
823 - string:
824 name: buildNode
825 default: '{build-node}'
826 description: 'Name of the Jenkins executor node to run the job on'
827
828 - string:
829 name: TestNodeName
830 default: '{build-node}'
831 description: 'DEPRECATED - use buildNode instead'
832
833 - string:
834 name: logLevel
835 default: '{logLevel}'
836 description: 'Log level for all the components'
837
838 - string:
839 name: cordRepoUrl
840 default: '{gerrit-server-url}'
841 description: 'The URL of the CORD Project repository'
842
843 - string:
844 name: configBaseDir
845 default: 'pod-configs'
846 description: 'The directory inside the POD configs repository'
847
848 - string:
849 name: configDeploymentDir
850 default: 'deployment-configs'
851 description: 'The deployment configs folder'
852
853 - string:
854 name: configKubernetesDir
855 default: 'kubernetes-configs'
856 description: 'The kubernetes config folder'
857
858 - string:
859 name: configToscaDir
860 default: 'tosca-configs'
861 description: 'The tosca config folder'
862
863 - string:
864 name: configFileName
865 default: '{config-pod}'
866 description: 'The config file'
867
868 - string:
869 name: profile
870 default: '{profile}'
871 description: 'Technology Profile pushed to the ETCD'
872
873 - string:
874 name: helmRepoUrl
875 default: 'https://charts.opencord.org'
876 description: 'URL where helm-charts are published'
877
878 - string:
879 name: branch
880 default: '{branch}'
881
882 - string:
883 name: workFlow
884 default: '{work-flow}'
885 description: 'Installs and uses the specified work flow on the POD'
886
Hardik Windlassace19e52022-02-10 09:36:21 +0000887 - bool:
Hardik Windlass230fca62022-05-04 08:50:35 +0530888 name: installVolthaInfra
889 default: '{installVolthaInfra}'
890 description: "Whether to install VOLTHA Infra"
891
892 - bool:
893 name: installVolthaStack
894 default: '{installVolthaStack}'
895 description: "Whether to install VOLTHA Stack"
Hardik Windlassace19e52022-02-10 09:36:21 +0000896
Hardik Windlass36d5bdb2022-02-09 10:13:13 +0000897 - string:
898 name: extraHelmFlags
899 default: '{extraHelmFlags}'
900 description: 'Helm flags (passed to each deployment)'
901
902 - string:
903 name: dmiChart
904 default: '{dmiChart}'
905 description: 'Device Management Interface Helm Chart'
906
907 - string:
908 name: OltDevMgr
909 default: '{OltDevMgr}'
910 description: 'OLT Device Manager App Name'
911
912 # openonu-go only supports a single replica, remove after 2.8
913 - string:
914 name: NumOfOpenOnu
915 default: '{num-of-openonu}'
916 description: 'Installs the specified Number of OpenOnu Adapters'
917
918 - string:
919 name: NumOfOnos
920 default: '{num-of-onos}'
921 description: 'Installs the specified Number of ONOS instances'
922
923 - bool:
924 name: enableMultiUni
925 default: '{enableMultiUni}'
926 description: "Enables the Multi UNI feature"
927
928 - string:
929 name: uniPortMask
930 default: '{uniPortMask}'
931 description: 'Open ONU adapter uni_port_mask, used when enableMultiUni is set to True, values: 0x0001-0x00FF'
932
933 - string:
934 name: bbsimReplicas
935 default: '{bbsimReplicas}'
936 description: 'Installs the specified Number of BBSim Instances'
937
938 - string:
939 name: onuNumber
940 default: '{num-of-onus}'
941 description: "Onus per PonPort"
942
943 - string:
944 name: ponNumber
945 default: '{num-of-ponports}'
946 description: "Number of PON Ports"
947
948 - string:
949 name: NumOfAtomix
950 default: '{num-of-atomix}'
951 description: 'Installs the specified Number of Atomix Instances'
952
953 - string:
954 name: NumOfKafka
955 default: '{num-of-kafka}'
956 description: 'Installs the specified Number of Kafka Instances'
957
958 - string:
959 name: NumOfEtcd
960 default: '{num-of-etcd}'
961 description: 'Installs the specified Number of Etcd Instances'
962
963 - bool:
964 name: configurePod
965 default: true
966 description: "Configure POD via TOSCA post build"
967
968 - bool:
969 name: reinstallOlt
970 default: '{reinstall-olt}'
971 description: "Re-install olt software bringing up CORD"
972
973 - bool:
974 name: restartOlt
975 default: '{restart-olt}'
976 description: "Re-install olt software bringing up CORD"
977
978 - string:
979 name: VolthaEtcdPort
980 default: '{VolthaEtcdPort}'
981 description: 'Localhost port that is forwarded to VOLTHA etcd'
982
983 - bool:
984 name: inBandManagement
985 default: '{in-band-management}'
986 description: 'Indicates whether POD is configured for in band management'
987
988 - string:
989 name: volthaSystemTestsChange
990 default: '{volthaSystemTestsChange}'
991 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
992
993 - string:
994 name: volthaHelmChartsChange
995 default: '{volthaHelmChartsChange}'
996 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
997
998 # this is used in the Adtran DT job
999 - string:
1000 name: openoltAdapterChart
1001 default: '{openoltAdapterChart}'
1002 description: 'Olt adapter chart name (or location on file system)'
1003
1004 # this is used in the Adtran DT job
1005 - string:
1006 name: oltAdapterReleaseName
1007 default: '{oltAdapterReleaseName}'
1008 description: 'Olt adapter release name'
1009
1010 - string:
1011 name: waitTimerForOltUp
1012 default: '{waitTimerForOltUp}'
1013 description: 'Wait timer for the OLT to come up after reboot'
1014
1015 concurrent: true
1016 project-type: pipeline
1017 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
1018
1019 triggers:
1020 - timed: |
1021 TZ=America/Los_Angeles
1022 H {time} * * *
Joey Armstrongca4cb462023-01-12 17:51:05 -05001023# [EOF]
Joey Armstrongaf679da2023-01-31 14:22:41 -05001024
1025# [EOF]