blob: bd0f3428a6e0e3421840c391d3d5a741ba484113 [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
Matteo Scandolo9973c652020-08-07 15:23:35 -070010 parameters:
11 - string:
12 name: buildNode
13 default: '{build-node}'
14 description: 'Name of the Jenkins executor node to run the job on'
15
16 - string:
17 name: TestNodeName
18 default: '{build-node}'
19 description: 'DEPRECATED - use buildNode instead'
20
21 - string:
Matteo Scandolo982b69d2021-05-10 12:01:57 -070022 name: logLevel
23 default: '{logLevel}'
24 description: 'Log level for all the components'
25
26 - string:
Matteo Scandolo9973c652020-08-07 15:23:35 -070027 name: cordRepoUrl
28 default: '{gerrit-server-url}'
29 description: 'The URL of the CORD Project repository'
30
31 - string:
32 name: configBaseDir
33 default: 'pod-configs'
34 description: 'The directory inside the POD configs repository'
35
36 - string:
37 name: configDeploymentDir
38 default: 'deployment-configs'
39 description: 'The deployment configs folder'
40
41 - string:
42 name: configKubernetesDir
43 default: 'kubernetes-configs'
44 description: 'The kubernetes config folder'
45
46 - string:
47 name: configToscaDir
48 default: 'tosca-configs'
49 description: 'The tosca config folder'
50
51 - string:
52 name: configFileName
53 default: '{config-pod}'
54 description: 'The config file'
55
56 - string:
57 name: profile
58 default: '{profile}'
59 description: 'Technology Profile pushed to the ETCD'
60
61 - string:
62 name: helmRepoUrl
63 default: 'https://charts.opencord.org'
64 description: 'URL where helm-charts are published'
65
66 - string:
67 name: branch
68 default: '{branch}'
69
70 - string:
71 name: notificationEmail
72 default: 'you@opennetworking.org, suchitra@opennetworking.org'
73 description: ''
74
75 - string:
76 name: workFlow
77 default: '{work-flow}'
78 description: 'Installs and uses the specified work flow on the POD'
79
Matteo Scandolod82d1de2021-04-06 14:55:58 -070080 # openonu-go only supports a single replica, remove after 2.8
Matteo Scandolo9973c652020-08-07 15:23:35 -070081 - string:
82 name: NumOfOpenOnu
83 default: '{num-of-openonu}'
84 description: 'Installs the specified Number of OpenOnu Adapters'
85
86 - string:
87 name: NumOfOnos
88 default: '{num-of-onos}'
89 description: 'Installs the specified Number of ONOS instances'
90
Suchitra Vemuridddc3ac2021-02-11 15:40:43 -080091 - bool:
92 name: installBBSim
Hardik Windlassc7379022021-05-12 13:52:24 +053093 default: '{installBBSim}'
Suchitra Vemuridddc3ac2021-02-11 15:40:43 -080094 description: "Install the BBSim container"
95
96 - string:
97 name: onuNumber
98 default: '{num-of-onus}'
99 description: "Onus per PonPort"
100
101 - string:
102 name: ponNumber
103 default: '{num-of-ponports}'
104 description: "Number of PON Ports"
105
Matteo Scandolo9973c652020-08-07 15:23:35 -0700106 - string:
107 name: NumOfAtomix
108 default: '{num-of-atomix}'
109 description: 'Installs the specified Number of Atomix Instances'
110
Hardik Windlassc7379022021-05-12 13:52:24 +0530111 - string:
112 name: NumOfKafka
113 default: '{num-of-kafka}'
114 description: 'Installs the specified Number of Kafka Instances'
115
116 - string:
117 name: NumOfEtcd
118 default: '{num-of-etcd}'
119 description: 'Installs the specified Number of Etcd Instances'
120
Matteo Scandolo9973c652020-08-07 15:23:35 -0700121 - bool:
122 name: configurePod
123 default: true
124 description: "Configure POD via TOSCA post build"
125
126 - bool:
127 name: reinstallOlt
128 default: '{reinstall-olt}'
129 description: "Re-install olt software bringing up CORD"
130
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700131 # withKind is not used in the master branch pipeline, remove after 2.8
Matteo Scandolo9973c652020-08-07 15:23:35 -0700132 - bool:
133 name: withKind
134 default: '{with-kind}'
135 description: "The pods uses kind and a physical fabric thus port forward to the management is needed"
136
137 - string:
138 name: VolthaEtcdPort
139 default: '{VolthaEtcdPort}'
140 description: 'Localhost port that is forwarded to VOLTHA etcd'
141
142 - bool:
143 name: inBandManagement
144 default: '{in-band-management}'
145 description: 'Indicates whether POD is configured for in band management'
146
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700147 - string:
148 name: volthaSystemTestsChange
149 default: '{volthaSystemTestsChange}'
150 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
151
152 - string:
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700153 name: volthaHelmChartsChange
154 default: '{volthaHelmChartsChange}'
155 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
156
157 # kind-voltha is not used in the master branch pipeline, remove after 2.8
158 - string:
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700159 name: kindVolthaChange
160 default: '{kindVolthaChange}'
161 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
162
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700163 # NOTE is this needed/used?
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700164 - string:
165 name: cordTesterChange
166 default: '{cordTesterChange}'
167 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
168
Matteo Scandolo6eb673e2021-05-06 11:24:39 -0700169 # this is used in the Adtran DT job
Andrea Campanella6dfc0432021-01-12 10:43:16 +0100170 - string:
171 name: openoltAdapterChart
172 default: '{openoltAdapterChart}'
173 description: 'OpenOLT chart name (or location on file system)'
174
Matteo Scandolo9973c652020-08-07 15:23:35 -0700175# defualt properties for the VOLTHA scale jobs
176- voltha-pipe-job-boiler-plate: &voltha-pipe-job-boiler-plate
177 name: voltha-pipe-job-boiler-plate
178
179 project-type: pipeline
180
181 sandbox: true
182
183 properties:
184 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800185 build-days-to-keep: '{big-build-days-to-keep}'
186 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700187
188# VOLTHA Build Jobs
189- job-template:
Hardik Windlassc7379022021-05-12 13:52:24 +0530190 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}_manual'
191 id: build_voltha_pod_manual
192 disabled: '{disable-job}'
193 description: |
194 Manual Build on POD {config-pod}, using pipeline/{pipeline-script} in {gerrit-server-url}/ci-management' <br /><br />
195 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
196 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
197 Copyright (c) 2018 Open Networking Foundation (ONF)
198
199 <<: *voltha-pipe-job-boiler-plate
200 # default values
201 pipeline-script: 'voltha/master/physical-build.groovy'
202 VolthaEtcdPort: 2379
203 num-of-openonu: 1
204 num-of-onos: 1
205 num-of-atomix: 0
206 num-of-kafka: 1
207 num-of-etcd: 1
208 test-repo: 'voltha-system-tests'
209 release: 'master'
210 name-extension: ''
211 branch: 'master'
212 configurePod: true
213 volthaHelmChartsChange: ''
214 profile: 'Default'
215 logLevel: 'DEBUG'
216 installBBSim: false
217
218 <<: *voltha-build-job-parameters
219
220 concurrent: true
221 project-type: pipeline
222 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
223
224# VOLTHA Build Jobs
225- job-template:
Matteo Scandolo9973c652020-08-07 15:23:35 -0700226 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
227 id: build_voltha_pod_release_timer
Suchitra Vemuri26fe2432020-09-14 19:51:32 -0700228 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700229 description: |
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700230 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 -0700231 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700232 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
233 Copyright (c) 2018 Open Networking Foundation (ONF)
234
235 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700236 # default values
237 pipeline-script: 'voltha/master/physical-build.groovy'
238 VolthaEtcdPort: 2379
239 num-of-openonu: 1
240 num-of-onos: 3
241 num-of-atomix: 3
Hardik Windlassc7379022021-05-12 13:52:24 +0530242 num-of-kafka: 3
243 num-of-etcd: 3
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700244 test-repo: 'voltha-system-tests'
245 release: 'master'
246 name-extension: ''
247 branch: 'master'
248 configurePod: true
249 volthaHelmChartsChange: ''
250 profile: 'Default'
Matteo Scandolo6ddb0152021-05-07 11:25:17 -0700251 logLevel: 'DEBUG'
Hardik Windlassc7379022021-05-12 13:52:24 +0530252 installBBSim: false
Matteo Scandolo9973c652020-08-07 15:23:35 -0700253
254 <<: *voltha-build-job-parameters
255
256 concurrent: true
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700257 project-type: pipeline
258 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Matteo Scandolo9973c652020-08-07 15:23:35 -0700259
260 triggers:
261 - timed: |
262 TZ=America/Los_Angeles
263 H {time} * * *
264
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700265# this job template is defined to support VOLTHA-2.7 builds, remove after 2.8
Matteo Scandolo9973c652020-08-07 15:23:35 -0700266- job-template:
267 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700268 id: build_voltha_pod_release_legacy
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700269 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700270 description: |
271 Automatic Build on POD {config-pod}, using {Jenkinsfile} in {gerrit-server-url}/voltha-system-tests' <br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700272 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700273 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
274 This job is triggered upon completion of a dependent _test job <br />
275 Copyright (c) 2020 Open Networking Foundation (ONF)
276
277 <<: *voltha-pipe-job-boiler-plate
278 VolthaEtcdPort: '2379'
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700279 release: '2.7'
280 branch: 'voltha-2.7'
281 volthaHelmChartsChange: '' # this is not supported in the VOLTHA-2.7 build, but the parameters are shared, ideally we should split them
Matteo Scandolo982b69d2021-05-10 12:01:57 -0700282 logLevel: 'DEBUG'
Hardik Windlassc7379022021-05-12 13:52:24 +0530283 installBBSim: false
284 num-of-kafka: 1
285 num-of-etcd: 1
Matteo Scandolo9973c652020-08-07 15:23:35 -0700286
287 <<: *voltha-build-job-parameters
288
289 concurrent: true
290
291 pipeline-scm:
292 script-path: '{Jenkinsfile}'
293 scm:
294 - git:
295 url: '{gerrit-server-url}/voltha-system-tests'
296 branches:
297 - '{branch}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700298
Matteo Scandolo218b2dc2021-04-21 13:21:13 -0700299 triggers:
300 - timed: |
301 TZ=America/Los_Angeles
302 H {time} * * *
303
Matteo Scandolo9973c652020-08-07 15:23:35 -0700304# VOLTHA Test Job
305# This job is automatically triggered after a build job has successfully completed
306- job-template:
307 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
308 id: build_voltha_pod_test
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700309 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700310 description: |
311 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700312 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700313 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
314 Copyright (c) 2017 Open Networking Foundation (ONF)
315
316 <<: *voltha-pipe-job-boiler-plate
317 pipeline-script: 'voltha-physical-functional-tests.groovy'
318 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
319 manifest-branch: 'master'
320
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100321 oltAdapterAppLabel: 'adapter-open-olt'
322
Matteo Scandolo9973c652020-08-07 15:23:35 -0700323 parameters:
324 - string:
325 name: buildNode
326 default: '{build-node}'
327 description: 'Name of the Jenkins executor node to run the job on'
328
329 - string:
330 name: TestNodeName
331 default: '{build-node}'
332 description: 'DEPRECATED - use buildNode instead'
333
334 - string:
335 name: cordRepoUrl
336 default: '{gerrit-server-url}'
337 description: 'The URL of the CORD Project repository'
338
339 - string:
340 name: configBaseDir
341 default: 'pod-configs'
342 description: 'The directory inside the POD configs repository'
343
344 - string:
345 name: configDeploymentDir
346 default: 'deployment-configs'
347 description: 'The deployment configs folder'
348
349 - string:
350 name: configKubernetesDir
351 default: 'kubernetes-configs'
352 description: 'The kubernetes config folder'
353
354 - string:
355 name: configToscaDir
356 default: 'tosca-configs'
357 description: 'The tosca config folder'
358
359 - string:
360 name: configFileName
361 default: '{config-pod}'
362 description: 'The config file'
363
364 - string:
365 name: profile
366 default: '{profile}'
367 description: 'Technology Profile pushed to the ETCD'
368
369 - string:
370 name: branch
371 default: '{branch}'
372 description: 'Branch of the test libraries to check out'
373
374 - string:
375 name: manifestUrl
376 default: '{manifest-url}'
377 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
378
379 - string:
380 name: manifestBranch
381 default: '{manifest-branch}'
382 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
383
384 - string:
385 name: workFlow
386 default: '{work-flow}'
387 description: 'Installs and uses the specified work flow on the POD'
388
389 - bool:
390 name: powerSwitch
391 default: '{power-switch}'
392 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
393
Andrea Campanella6ea62272020-09-16 11:10:52 +0200394 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100395 name: oltAdapterAppLabel
396 default: '{oltAdapterAppLabel}'
397 description: 'OLT adapter pod name'
398
399 - string:
Andrea Campanella6ea62272020-09-16 11:10:52 +0200400 name: volthaSystemTestsChange
401 default: '{volthaSystemTestsChange}'
402 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
403
404 - string:
405 name: kindVolthaChange
406 default: '{kindVolthaChange}'
407 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
408
409 - string:
410 name: cordTesterChange
411 default: '{cordTesterChange}'
412 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
413
Matteo Scandolo9973c652020-08-07 15:23:35 -0700414 concurrent: true
415
416 project-type: pipeline
417 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
418
419 triggers:
420 - reverse:
421 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
422 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700423
424
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700425# VOLTHA Soak Test Job
426# This job is triggered by a timer defined in the job
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700427- job-template:
428 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
429 id: build_voltha_pod_soak_test
Andrea Campanellab54cabe2020-11-26 14:48:11 +0100430 disabled: '{disable-job}'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700431 description: |
432 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
433 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
434 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
435 Copyright (c) 2017 Open Networking Foundation (ONF)
436
437 <<: *voltha-pipe-job-boiler-plate
438 pipeline-script: 'voltha-physical-functional-tests.groovy'
439 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
440 manifest-branch: 'master'
441
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100442 oltAdapterAppLabel: 'adapter-open-olt'
443
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700444 parameters:
445 - string:
446 name: buildNode
447 default: '{build-node}'
448 description: 'Name of the Jenkins executor node to run the job on'
449
450 - string:
451 name: TestNodeName
452 default: '{build-node}'
453 description: 'DEPRECATED - use buildNode instead'
454
455 - string:
456 name: cordRepoUrl
457 default: '{gerrit-server-url}'
458 description: 'The URL of the CORD Project repository'
459
460 - string:
461 name: configBaseDir
462 default: 'pod-configs'
463 description: 'The directory inside the POD configs repository'
464
465 - string:
466 name: configDeploymentDir
467 default: 'deployment-configs'
468 description: 'The deployment configs folder'
469
470 - string:
471 name: configKubernetesDir
472 default: 'kubernetes-configs'
473 description: 'The kubernetes config folder'
474
475 - string:
476 name: configToscaDir
477 default: 'tosca-configs'
478 description: 'The tosca config folder'
479
480 - string:
481 name: configFileName
482 default: '{config-pod}'
483 description: 'The config file'
484
485 - string:
486 name: profile
487 default: '{profile}'
488 description: 'Technology Profile pushed to the ETCD'
489
490 - string:
491 name: branch
492 default: '{branch}'
493 description: 'Branch of the test libraries to check out'
494
495 - string:
496 name: manifestUrl
497 default: '{manifest-url}'
498 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
499
500 - string:
501 name: manifestBranch
502 default: '{manifest-branch}'
503 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
504
505 - string:
506 name: workFlow
507 default: '{work-flow}'
508 description: 'Installs and uses the specified work flow on the POD'
509
510 - bool:
511 name: powerSwitch
512 default: '{power-switch}'
513 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
514
Suchitra Vemurie6625222020-09-01 17:12:56 -0700515 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100516 name: oltAdapterAppLabel
517 default: '{oltAdapterAppLabel}'
518 description: 'OLT adapter pod name'
519
520 - string:
Suchitra Vemurie6625222020-09-01 17:12:56 -0700521 name: testType
522 default: '{test-type}'
523 description: 'Passes the required test category to the groovy script'
524
Suchitra Vemurie3bb90d2020-09-15 17:15:50 -0700525 - string:
526 name: volthaSystemTestsChange
527 default: '{volthaSystemTestsChange}'
528 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
529
530 - string:
531 name: kindVolthaChange
532 default: '{kindVolthaChange}'
533 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
534
535 - string:
536 name: cordTesterChange
537 default: '{cordTesterChange}'
538 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 -0700539 concurrent: true
540
541 project-type: pipeline
542 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
543
544 triggers:
545 - timed: |
546 TZ=America/Los_Angeles
547 {time-trigger}