blob: 3e1f0f845d3c78c38b9a05c2d5029c21049457d1 [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
240# VOLTHA Test Job
241# This job is automatically triggered after a build job has successfully completed
242- job-template:
243 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
244 id: build_voltha_pod_test
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700245 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700246 description: |
247 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700248 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700249 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
250 Copyright (c) 2017 Open Networking Foundation (ONF)
251
252 <<: *voltha-pipe-job-boiler-plate
253 pipeline-script: 'voltha-physical-functional-tests.groovy'
254 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
255 manifest-branch: 'master'
256
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100257 oltAdapterAppLabel: 'adapter-open-olt'
258
Matteo Scandolo9973c652020-08-07 15:23:35 -0700259 parameters:
260 - string:
261 name: buildNode
262 default: '{build-node}'
263 description: 'Name of the Jenkins executor node to run the job on'
264
265 - string:
266 name: TestNodeName
267 default: '{build-node}'
268 description: 'DEPRECATED - use buildNode instead'
269
270 - string:
271 name: cordRepoUrl
272 default: '{gerrit-server-url}'
273 description: 'The URL of the CORD Project repository'
274
275 - string:
276 name: configBaseDir
277 default: 'pod-configs'
278 description: 'The directory inside the POD configs repository'
279
280 - string:
281 name: configDeploymentDir
282 default: 'deployment-configs'
283 description: 'The deployment configs folder'
284
285 - string:
286 name: configKubernetesDir
287 default: 'kubernetes-configs'
288 description: 'The kubernetes config folder'
289
290 - string:
291 name: configToscaDir
292 default: 'tosca-configs'
293 description: 'The tosca config folder'
294
295 - string:
296 name: configFileName
297 default: '{config-pod}'
298 description: 'The config file'
299
300 - string:
301 name: profile
302 default: '{profile}'
303 description: 'Technology Profile pushed to the ETCD'
304
305 - string:
306 name: branch
307 default: '{branch}'
308 description: 'Branch of the test libraries to check out'
309
310 - string:
311 name: manifestUrl
312 default: '{manifest-url}'
313 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
314
315 - string:
316 name: manifestBranch
317 default: '{manifest-branch}'
318 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
319
320 - string:
321 name: workFlow
322 default: '{work-flow}'
323 description: 'Installs and uses the specified work flow on the POD'
324
325 - bool:
326 name: powerSwitch
327 default: '{power-switch}'
328 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
329
Andrea Campanella6ea62272020-09-16 11:10:52 +0200330 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100331 name: oltAdapterAppLabel
332 default: '{oltAdapterAppLabel}'
333 description: 'OLT adapter pod name'
334
335 - string:
Andrea Campanella6ea62272020-09-16 11:10:52 +0200336 name: volthaSystemTestsChange
337 default: '{volthaSystemTestsChange}'
338 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
339
340 - string:
341 name: kindVolthaChange
342 default: '{kindVolthaChange}'
343 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
344
345 - string:
346 name: cordTesterChange
347 default: '{cordTesterChange}'
348 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
349
Matteo Scandolo9973c652020-08-07 15:23:35 -0700350 concurrent: true
351
352 project-type: pipeline
353 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
354
355 triggers:
356 - reverse:
357 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
358 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700359
360
Matteo Scandolod82d1de2021-04-06 14:55:58 -0700361# VOLTHA Soak Test Job
362# This job is triggered by a timer defined in the job
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700363- job-template:
364 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
365 id: build_voltha_pod_soak_test
Andrea Campanellab54cabe2020-11-26 14:48:11 +0100366 disabled: '{disable-job}'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700367 description: |
368 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
369 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
370 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
371 Copyright (c) 2017 Open Networking Foundation (ONF)
372
373 <<: *voltha-pipe-job-boiler-plate
374 pipeline-script: 'voltha-physical-functional-tests.groovy'
375 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
376 manifest-branch: 'master'
377
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100378 oltAdapterAppLabel: 'adapter-open-olt'
379
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700380 parameters:
381 - string:
382 name: buildNode
383 default: '{build-node}'
384 description: 'Name of the Jenkins executor node to run the job on'
385
386 - string:
387 name: TestNodeName
388 default: '{build-node}'
389 description: 'DEPRECATED - use buildNode instead'
390
391 - string:
392 name: cordRepoUrl
393 default: '{gerrit-server-url}'
394 description: 'The URL of the CORD Project repository'
395
396 - string:
397 name: configBaseDir
398 default: 'pod-configs'
399 description: 'The directory inside the POD configs repository'
400
401 - string:
402 name: configDeploymentDir
403 default: 'deployment-configs'
404 description: 'The deployment configs folder'
405
406 - string:
407 name: configKubernetesDir
408 default: 'kubernetes-configs'
409 description: 'The kubernetes config folder'
410
411 - string:
412 name: configToscaDir
413 default: 'tosca-configs'
414 description: 'The tosca config folder'
415
416 - string:
417 name: configFileName
418 default: '{config-pod}'
419 description: 'The config file'
420
421 - string:
422 name: profile
423 default: '{profile}'
424 description: 'Technology Profile pushed to the ETCD'
425
426 - string:
427 name: branch
428 default: '{branch}'
429 description: 'Branch of the test libraries to check out'
430
431 - string:
432 name: manifestUrl
433 default: '{manifest-url}'
434 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
435
436 - string:
437 name: manifestBranch
438 default: '{manifest-branch}'
439 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
440
441 - string:
442 name: workFlow
443 default: '{work-flow}'
444 description: 'Installs and uses the specified work flow on the POD'
445
446 - bool:
447 name: powerSwitch
448 default: '{power-switch}'
449 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
450
Suchitra Vemurie6625222020-09-01 17:12:56 -0700451 - string:
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100452 name: oltAdapterAppLabel
453 default: '{oltAdapterAppLabel}'
454 description: 'OLT adapter pod name'
455
456 - string:
Suchitra Vemurie6625222020-09-01 17:12:56 -0700457 name: testType
458 default: '{test-type}'
459 description: 'Passes the required test category to the groovy script'
460
Suchitra Vemurie3bb90d2020-09-15 17:15:50 -0700461 - string:
462 name: volthaSystemTestsChange
463 default: '{volthaSystemTestsChange}'
464 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
465
466 - string:
467 name: kindVolthaChange
468 default: '{kindVolthaChange}'
469 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
470
471 - string:
472 name: cordTesterChange
473 default: '{cordTesterChange}'
474 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 -0700475 concurrent: true
476
477 project-type: pipeline
478 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
479
480 triggers:
481 - timed: |
482 TZ=America/Los_Angeles
483 {time-trigger}