blob: a682632bb2ddaba1f7c932e25a2278c1746060af [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:
22 name: cordRepoUrl
23 default: '{gerrit-server-url}'
24 description: 'The URL of the CORD Project repository'
25
26 - string:
27 name: configBaseDir
28 default: 'pod-configs'
29 description: 'The directory inside the POD configs repository'
30
31 - string:
32 name: configDeploymentDir
33 default: 'deployment-configs'
34 description: 'The deployment configs folder'
35
36 - string:
37 name: configKubernetesDir
38 default: 'kubernetes-configs'
39 description: 'The kubernetes config folder'
40
41 - string:
42 name: configToscaDir
43 default: 'tosca-configs'
44 description: 'The tosca config folder'
45
46 - string:
47 name: configFileName
48 default: '{config-pod}'
49 description: 'The config file'
50
51 - string:
52 name: profile
53 default: '{profile}'
54 description: 'Technology Profile pushed to the ETCD'
55
56 - string:
57 name: helmRepoUrl
58 default: 'https://charts.opencord.org'
59 description: 'URL where helm-charts are published'
60
61 - string:
62 name: branch
63 default: '{branch}'
64
65 - string:
66 name: notificationEmail
67 default: 'you@opennetworking.org, suchitra@opennetworking.org'
68 description: ''
69
70 - string:
71 name: workFlow
72 default: '{work-flow}'
73 description: 'Installs and uses the specified work flow on the POD'
74
Matteo Scandolod82d1de2021-04-06 14:55:58 -070075 # openonu-go only supports a single replica, remove after 2.8
Matteo Scandolo9973c652020-08-07 15:23:35 -070076 - string:
77 name: NumOfOpenOnu
78 default: '{num-of-openonu}'
79 description: 'Installs the specified Number of OpenOnu Adapters'
80
81 - string:
82 name: NumOfOnos
83 default: '{num-of-onos}'
84 description: 'Installs the specified Number of ONOS instances'
85
Suchitra Vemuridddc3ac2021-02-11 15:40:43 -080086 - bool:
87 name: installBBSim
88 default: false
89 description: "Install the BBSim container"
90
91 - string:
92 name: onuNumber
93 default: '{num-of-onus}'
94 description: "Onus per PonPort"
95
96 - string:
97 name: ponNumber
98 default: '{num-of-ponports}'
99 description: "Number of PON Ports"
100
Matteo Scandolo9973c652020-08-07 15:23:35 -0700101 - string:
102 name: NumOfAtomix
103 default: '{num-of-atomix}'
104 description: 'Installs the specified Number of Atomix Instances'
105
106 - bool:
107 name: configurePod
108 default: true
109 description: "Configure POD via TOSCA post build"
110
111 - bool:
112 name: reinstallOlt
113 default: '{reinstall-olt}'
114 description: "Re-install olt software bringing up CORD"
115
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700116 # withKind is not used in the master branch pipeline, remove after 2.8
Matteo Scandolo9973c652020-08-07 15:23:35 -0700117 - bool:
118 name: withKind
119 default: '{with-kind}'
120 description: "The pods uses kind and a physical fabric thus port forward to the management is needed"
121
122 - string:
123 name: VolthaEtcdPort
124 default: '{VolthaEtcdPort}'
125 description: 'Localhost port that is forwarded to VOLTHA etcd'
126
127 - bool:
128 name: inBandManagement
129 default: '{in-band-management}'
130 description: 'Indicates whether POD is configured for in band management'
131
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700132 - string:
133 name: volthaSystemTestsChange
134 default: '{volthaSystemTestsChange}'
135 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
136
137 - string:
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700138 name: volthaHelmChartsChange
139 default: '{volthaHelmChartsChange}'
140 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/32/19132/1"'
141
142 # kind-voltha is not used in the master branch pipeline, remove after 2.8
143 - string:
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700144 name: kindVolthaChange
145 default: '{kindVolthaChange}'
146 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
147
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700148 # NOTE is this needed/used?
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700149 - string:
150 name: cordTesterChange
151 default: '{cordTesterChange}'
152 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
153
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700154 # NOTE is this needed/used?
Andrea Campanella6dfc0432021-01-12 10:43:16 +0100155 - string:
156 name: openoltAdapterChart
157 default: '{openoltAdapterChart}'
158 description: 'OpenOLT chart name (or location on file system)'
159
Matteo Scandolo9973c652020-08-07 15:23:35 -0700160# defualt properties for the VOLTHA scale jobs
161- voltha-pipe-job-boiler-plate: &voltha-pipe-job-boiler-plate
162 name: voltha-pipe-job-boiler-plate
163
164 project-type: pipeline
165
166 sandbox: true
167
168 properties:
169 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800170 build-days-to-keep: '{big-build-days-to-keep}'
171 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700172
173# VOLTHA Build Jobs
174- job-template:
175 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
176 id: build_voltha_pod_release_timer
Suchitra Vemuri26fe2432020-09-14 19:51:32 -0700177 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700178 description: |
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700179 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 -0700180 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700181 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
182 Copyright (c) 2018 Open Networking Foundation (ONF)
183
184 <<: *voltha-pipe-job-boiler-plate
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700185 # default values
186 pipeline-script: 'voltha/master/physical-build.groovy'
187 VolthaEtcdPort: 2379
188 num-of-openonu: 1
189 num-of-onos: 3
190 num-of-atomix: 3
191 test-repo: 'voltha-system-tests'
192 release: 'master'
193 name-extension: ''
194 branch: 'master'
195 configurePod: true
196 volthaHelmChartsChange: ''
197 profile: 'Default'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700198
199 <<: *voltha-build-job-parameters
200
201 concurrent: true
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700202 project-type: pipeline
203 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
Matteo Scandolo9973c652020-08-07 15:23:35 -0700204
205 triggers:
206 - timed: |
207 TZ=America/Los_Angeles
208 H {time} * * *
209
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700210# this job template is defined to support VOLTHA-2.7 builds, remove after 2.8
Matteo Scandolo9973c652020-08-07 15:23:35 -0700211- job-template:
212 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700213 id: build_voltha_pod_release_legacy
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700214 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700215 description: |
216 Automatic Build on POD {config-pod}, using {Jenkinsfile} in {gerrit-server-url}/voltha-system-tests' <br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700217 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700218 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
219 This job is triggered upon completion of a dependent _test job <br />
220 Copyright (c) 2020 Open Networking Foundation (ONF)
221
222 <<: *voltha-pipe-job-boiler-plate
223 VolthaEtcdPort: '2379'
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700224 release: '2.7'
225 branch: 'voltha-2.7'
226 volthaHelmChartsChange: '' # this is not supported in the VOLTHA-2.7 build, but the parameters are shared, ideally we should split them
Matteo Scandolo9973c652020-08-07 15:23:35 -0700227
228 <<: *voltha-build-job-parameters
229
230 concurrent: true
231
232 pipeline-scm:
233 script-path: '{Jenkinsfile}'
234 scm:
235 - git:
236 url: '{gerrit-server-url}/voltha-system-tests'
237 branches:
238 - '{branch}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700239
Matteo Scandolo218b2dc2021-04-21 13:21:13 -0700240 triggers:
241 - timed: |
242 TZ=America/Los_Angeles
243 H {time} * * *
244
Matteo Scandolo9973c652020-08-07 15:23:35 -0700245# VOLTHA Test Job
246# This job is automatically triggered after a build job has successfully completed
247- job-template:
248 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
249 id: build_voltha_pod_test
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700250 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700251 description: |
252 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700253 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700254 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
255 Copyright (c) 2017 Open Networking Foundation (ONF)
256
257 <<: *voltha-pipe-job-boiler-plate
258 pipeline-script: 'voltha-physical-functional-tests.groovy'
259 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
260 manifest-branch: 'master'
261
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100262 oltAdapterAppLabel: 'adapter-open-olt'
263
Matteo Scandolo9973c652020-08-07 15:23:35 -0700264 parameters:
265 - string:
266 name: buildNode
267 default: '{build-node}'
268 description: 'Name of the Jenkins executor node to run the job on'
269
270 - string:
271 name: TestNodeName
272 default: '{build-node}'
273 description: 'DEPRECATED - use buildNode instead'
274
275 - string:
276 name: cordRepoUrl
277 default: '{gerrit-server-url}'
278 description: 'The URL of the CORD Project repository'
279
280 - string:
281 name: configBaseDir
282 default: 'pod-configs'
283 description: 'The directory inside the POD configs repository'
284
285 - string:
286 name: configDeploymentDir
287 default: 'deployment-configs'
288 description: 'The deployment configs folder'
289
290 - string:
291 name: configKubernetesDir
292 default: 'kubernetes-configs'
293 description: 'The kubernetes config folder'
294
295 - string:
296 name: configToscaDir
297 default: 'tosca-configs'
298 description: 'The tosca config folder'
299
300 - string:
301 name: configFileName
302 default: '{config-pod}'
303 description: 'The config file'
304
305 - string:
306 name: profile
307 default: '{profile}'
308 description: 'Technology Profile pushed to the ETCD'
309
310 - string:
311 name: branch
312 default: '{branch}'
313 description: 'Branch of the test libraries to check out'
314
315 - string:
316 name: manifestUrl
317 default: '{manifest-url}'
318 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
319
320 - string:
321 name: manifestBranch
322 default: '{manifest-branch}'
323 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
324
325 - string:
326 name: workFlow
327 default: '{work-flow}'
328 description: 'Installs and uses the specified work flow on the POD'
329
330 - bool:
331 name: powerSwitch
332 default: '{power-switch}'
333 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
334
Andrea Campanella6ea62272020-09-16 11:10:52 +0200335 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100336 name: oltAdapterAppLabel
337 default: '{oltAdapterAppLabel}'
338 description: 'OLT adapter pod name'
339
340 - string:
Andrea Campanella6ea62272020-09-16 11:10:52 +0200341 name: volthaSystemTestsChange
342 default: '{volthaSystemTestsChange}'
343 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
344
345 - string:
346 name: kindVolthaChange
347 default: '{kindVolthaChange}'
348 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
349
350 - string:
351 name: cordTesterChange
352 default: '{cordTesterChange}'
353 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
354
Matteo Scandolo9973c652020-08-07 15:23:35 -0700355 concurrent: true
356
357 project-type: pipeline
358 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
359
360 triggers:
361 - reverse:
362 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
363 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700364
365
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700366# VOLTHA Soak Test Job
367# This job is triggered by a timer defined in the job
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700368- job-template:
369 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
370 id: build_voltha_pod_soak_test
Andrea Campanellab54cabe2020-11-26 14:48:11 +0100371 disabled: '{disable-job}'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700372 description: |
373 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
374 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
375 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
376 Copyright (c) 2017 Open Networking Foundation (ONF)
377
378 <<: *voltha-pipe-job-boiler-plate
379 pipeline-script: 'voltha-physical-functional-tests.groovy'
380 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
381 manifest-branch: 'master'
382
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100383 oltAdapterAppLabel: 'adapter-open-olt'
384
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700385 parameters:
386 - string:
387 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:
452 name: powerSwitch
453 default: '{power-switch}'
454 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
455
Suchitra Vemurie6625222020-09-01 17:12:56 -0700456 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100457 name: oltAdapterAppLabel
458 default: '{oltAdapterAppLabel}'
459 description: 'OLT adapter pod name'
460
461 - string:
Suchitra Vemurie6625222020-09-01 17:12:56 -0700462 name: testType
463 default: '{test-type}'
464 description: 'Passes the required test category to the groovy script'
465
Suchitra Vemurie3bb90d2020-09-15 17:15:50 -0700466 - string:
467 name: volthaSystemTestsChange
468 default: '{volthaSystemTestsChange}'
469 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
470
471 - string:
472 name: kindVolthaChange
473 default: '{kindVolthaChange}'
474 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
475
476 - string:
477 name: cordTesterChange
478 default: '{cordTesterChange}'
479 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 -0700480 concurrent: true
481
482 project-type: pipeline
483 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
484
485 triggers:
486 - timed: |
487 TZ=America/Los_Angeles
488 {time-trigger}