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