blob: a81fa2b9d53c6b095d15735b23fe01e9a85c86e2 [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
75 - string:
76 name: NumOfOpenOnu
77 default: '{num-of-openonu}'
78 description: 'Installs the specified Number of OpenOnu Adapters'
79
80 - string:
81 name: NumOfOnos
82 default: '{num-of-onos}'
83 description: 'Installs the specified Number of ONOS instances'
84
85 - string:
86 name: NumOfAtomix
87 default: '{num-of-atomix}'
88 description: 'Installs the specified Number of Atomix Instances'
89
90 - bool:
91 name: configurePod
92 default: true
93 description: "Configure POD via TOSCA post build"
94
95 - bool:
96 name: reinstallOlt
97 default: '{reinstall-olt}'
98 description: "Re-install olt software bringing up CORD"
99
100 - bool:
101 name: withKind
102 default: '{with-kind}'
103 description: "The pods uses kind and a physical fabric thus port forward to the management is needed"
104
105 - string:
106 name: VolthaEtcdPort
107 default: '{VolthaEtcdPort}'
108 description: 'Localhost port that is forwarded to VOLTHA etcd'
109
110 - bool:
111 name: inBandManagement
112 default: '{in-band-management}'
113 description: 'Indicates whether POD is configured for in band management'
114
Matteo Scandolo3dce2a12020-09-15 14:21:14 -0700115 - string:
116 name: volthaSystemTestsChange
117 default: '{volthaSystemTestsChange}'
118 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
119
120 - string:
121 name: kindVolthaChange
122 default: '{kindVolthaChange}'
123 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
124
125 - string:
126 name: cordTesterChange
127 default: '{cordTesterChange}'
128 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
129
Andrea Campanella6dfc0432021-01-12 10:43:16 +0100130 - string:
131 name: openoltAdapterChart
132 default: '{openoltAdapterChart}'
133 description: 'OpenOLT chart name (or location on file system)'
134
Matteo Scandolo9973c652020-08-07 15:23:35 -0700135# defualt properties for the VOLTHA scale jobs
136- voltha-pipe-job-boiler-plate: &voltha-pipe-job-boiler-plate
137 name: voltha-pipe-job-boiler-plate
138
139 project-type: pipeline
140
141 sandbox: true
142
143 properties:
144 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800145 build-days-to-keep: '{big-build-days-to-keep}'
146 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700147
148# VOLTHA Build Jobs
149- job-template:
150 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
151 id: build_voltha_pod_release_timer
Suchitra Vemuri26fe2432020-09-14 19:51:32 -0700152 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700153 description: |
154 Manual Build on POD {config-pod}, using {Jenkinsfile} in {gerrit-server-url}/voltha-system-tests' <br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700155 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700156 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
157 Copyright (c) 2018 Open Networking Foundation (ONF)
158
159 <<: *voltha-pipe-job-boiler-plate
160 VolthaEtcdPort: '2379'
161
162 <<: *voltha-build-job-parameters
163
164 concurrent: true
165
166 pipeline-scm:
167 script-path: '{Jenkinsfile}'
168 scm:
169 - git:
170 url: '{gerrit-server-url}/voltha-system-tests'
171 branches:
172 - '{branch}'
173
174 triggers:
175 - timed: |
176 TZ=America/Los_Angeles
177 H {time} * * *
178
179- job-template:
180 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
181 id: build_voltha_pod_release_dependent
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700182 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700183 description: |
184 Automatic Build on POD {config-pod}, using {Jenkinsfile} in {gerrit-server-url}/voltha-system-tests' <br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700185 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700186 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
187 This job is triggered upon completion of a dependent _test job <br />
188 Copyright (c) 2020 Open Networking Foundation (ONF)
189
190 <<: *voltha-pipe-job-boiler-plate
191 VolthaEtcdPort: '2379'
192
193 <<: *voltha-build-job-parameters
194
195 concurrent: true
196
197 pipeline-scm:
198 script-path: '{Jenkinsfile}'
199 scm:
200 - git:
201 url: '{gerrit-server-url}/voltha-system-tests'
202 branches:
203 - '{branch}'
204 triggers:
205 - reverse:
206 jobs: '{trigger-after}'
207 result: 'success'
208
209# VOLTHA Test Job
210# This job is automatically triggered after a build job has successfully completed
211- job-template:
212 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
213 id: build_voltha_pod_test
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700214 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700215 description: |
216 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<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 Suchitra Vemuri, suchitra@opennetworking.org <br />
219 Copyright (c) 2017 Open Networking Foundation (ONF)
220
221 <<: *voltha-pipe-job-boiler-plate
222 pipeline-script: 'voltha-physical-functional-tests.groovy'
223 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
224 manifest-branch: 'master'
225
226 parameters:
227 - string:
228 name: buildNode
229 default: '{build-node}'
230 description: 'Name of the Jenkins executor node to run the job on'
231
232 - string:
233 name: TestNodeName
234 default: '{build-node}'
235 description: 'DEPRECATED - use buildNode instead'
236
237 - string:
238 name: cordRepoUrl
239 default: '{gerrit-server-url}'
240 description: 'The URL of the CORD Project repository'
241
242 - string:
243 name: configBaseDir
244 default: 'pod-configs'
245 description: 'The directory inside the POD configs repository'
246
247 - string:
248 name: configDeploymentDir
249 default: 'deployment-configs'
250 description: 'The deployment configs folder'
251
252 - string:
253 name: configKubernetesDir
254 default: 'kubernetes-configs'
255 description: 'The kubernetes config folder'
256
257 - string:
258 name: configToscaDir
259 default: 'tosca-configs'
260 description: 'The tosca config folder'
261
262 - string:
263 name: configFileName
264 default: '{config-pod}'
265 description: 'The config file'
266
267 - string:
268 name: profile
269 default: '{profile}'
270 description: 'Technology Profile pushed to the ETCD'
271
272 - string:
273 name: branch
274 default: '{branch}'
275 description: 'Branch of the test libraries to check out'
276
277 - string:
278 name: manifestUrl
279 default: '{manifest-url}'
280 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
281
282 - string:
283 name: manifestBranch
284 default: '{manifest-branch}'
285 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
286
287 - string:
288 name: workFlow
289 default: '{work-flow}'
290 description: 'Installs and uses the specified work flow on the POD'
291
292 - bool:
293 name: powerSwitch
294 default: '{power-switch}'
295 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
296
Andrea Campanella6ea62272020-09-16 11:10:52 +0200297 - string:
298 name: volthaSystemTestsChange
299 default: '{volthaSystemTestsChange}'
300 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
301
302 - string:
303 name: kindVolthaChange
304 default: '{kindVolthaChange}'
305 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
306
307 - string:
308 name: cordTesterChange
309 default: '{cordTesterChange}'
310 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
311
Matteo Scandolo9973c652020-08-07 15:23:35 -0700312 concurrent: true
313
314 project-type: pipeline
315 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
316
317 triggers:
318 - reverse:
319 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
320 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700321
322
323# VOLTHA Test Job
324# This job is automatically triggered after a build job has successfully completed
325- job-template:
326 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
327 id: build_voltha_pod_soak_test
Andrea Campanellab54cabe2020-11-26 14:48:11 +0100328 disabled: '{disable-job}'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700329 description: |
330 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
331 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
332 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
333 Copyright (c) 2017 Open Networking Foundation (ONF)
334
335 <<: *voltha-pipe-job-boiler-plate
336 pipeline-script: 'voltha-physical-functional-tests.groovy'
337 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
338 manifest-branch: 'master'
339
340 parameters:
341 - string:
342 name: buildNode
343 default: '{build-node}'
344 description: 'Name of the Jenkins executor node to run the job on'
345
346 - string:
347 name: TestNodeName
348 default: '{build-node}'
349 description: 'DEPRECATED - use buildNode instead'
350
351 - string:
352 name: cordRepoUrl
353 default: '{gerrit-server-url}'
354 description: 'The URL of the CORD Project repository'
355
356 - string:
357 name: configBaseDir
358 default: 'pod-configs'
359 description: 'The directory inside the POD configs repository'
360
361 - string:
362 name: configDeploymentDir
363 default: 'deployment-configs'
364 description: 'The deployment configs folder'
365
366 - string:
367 name: configKubernetesDir
368 default: 'kubernetes-configs'
369 description: 'The kubernetes config folder'
370
371 - string:
372 name: configToscaDir
373 default: 'tosca-configs'
374 description: 'The tosca config folder'
375
376 - string:
377 name: configFileName
378 default: '{config-pod}'
379 description: 'The config file'
380
381 - string:
382 name: profile
383 default: '{profile}'
384 description: 'Technology Profile pushed to the ETCD'
385
386 - string:
387 name: branch
388 default: '{branch}'
389 description: 'Branch of the test libraries to check out'
390
391 - string:
392 name: manifestUrl
393 default: '{manifest-url}'
394 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
395
396 - string:
397 name: manifestBranch
398 default: '{manifest-branch}'
399 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
400
401 - string:
402 name: workFlow
403 default: '{work-flow}'
404 description: 'Installs and uses the specified work flow on the POD'
405
406 - bool:
407 name: powerSwitch
408 default: '{power-switch}'
409 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
410
Suchitra Vemurie6625222020-09-01 17:12:56 -0700411 - string:
412 name: testType
413 default: '{test-type}'
414 description: 'Passes the required test category to the groovy script'
415
Suchitra Vemurie3bb90d2020-09-15 17:15:50 -0700416 - string:
417 name: volthaSystemTestsChange
418 default: '{volthaSystemTestsChange}'
419 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
420
421 - string:
422 name: kindVolthaChange
423 default: '{kindVolthaChange}'
424 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
425
426 - string:
427 name: cordTesterChange
428 default: '{cordTesterChange}'
429 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 -0700430 concurrent: true
431
432 project-type: pipeline
433 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
434
435 triggers:
436 - timed: |
437 TZ=America/Los_Angeles
438 {time-trigger}