blob: 3c3c81d4a17993b7d17cc632ebf71e274f128b6f [file] [log] [blame]
Kailash8b8de742019-07-30 08:54:51 -07001---
2# voltha 2.0 tests
3
4- project:
5 name: voltha-e2e
6
7 project-name: '{name}'
8
9 jobs:
hwchiu14f97852019-10-08 10:51:11 -070010 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -070011 name: 'periodic-voltha-sanity-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070012 build-node: 'qct-pod4-node2'
Andy Bavieraaa60f72019-09-20 09:11:21 -070013 default-image-tag: 'master'
Andy Bavier4c8b3232019-11-22 16:17:47 -070014 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070015 make-target: sanity-multi-kind
16 onus: 2
17 pons: 2
18 time-trigger: "H H/3 * * *"
19
20 - 'voltha-periodic-test':
hwchiufdc49242019-11-18 16:37:22 -080021 name: 'periodic-voltha-system-test'
22 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080023 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiufdc49242019-11-18 16:37:22 -080024 default-image-tag: 'master'
hwchiuc9189b72019-12-02 15:12:29 -080025 code-branch: 'master'
hwchiuc7d5d032019-12-03 16:42:47 -080026 make-target: sanity-single-kind
hwchiufdc49242019-11-18 16:37:22 -080027 onus: 2
28 pons: 2
29 time-trigger: "H H/12 * * *"
30
31 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -070032 name: 'periodic-voltha-scale-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070033 build-node: 'qct-pod4-node2'
Andy Bavier218385e2019-11-13 09:51:38 -070034 default-image-tag: 'master'
Andy Bavier4c8b3232019-11-22 16:17:47 -070035 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070036 make-target: scale-multi-kind
37 onus: 2
38 pons: 8
39 time-trigger: "H H/3 * * *"
Kailashaad71012019-08-27 10:36:53 -070040
Andy Bavierbf68c5e2019-10-25 15:05:28 -070041 # Per-patchset Pod builds on Tucson pod
Andy Baviere9916452019-11-06 12:32:47 -070042 - 'verify_physical_voltha_patchset':
Andy Bavier19c98a22019-11-11 13:57:11 -070043 name: 'verify_physical_voltha_patchset'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070044 testvm: 'tucson-pod'
45 config-pod: 'tucson-pod'
46 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070047 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070048 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070049 withPatchset: true
50
51 # Manual build job for Tucson pod
52 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -070053 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -070054 name: 'build_tucson-pod_manual'
55 testvm: 'tucson-pod'
56 config-pod: 'tucson-pod'
57 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070058 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -070059 profile: 'Default'
60 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -070061
Kailash8b8de742019-07-30 08:54:51 -070062- job-template:
Kailashaad71012019-08-27 10:36:53 -070063 id: 'voltha-periodic-test'
64 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -070065 pipeline-script: 'voltha-go-tests.groovy'
Kailash8b8de742019-07-30 08:54:51 -070066
67 description: |
68 <!-- Managed by Jenkins Job Builder -->
69 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
70 E2E Validation for Voltha 2.X
71
72 properties:
73 - cord-infra-properties:
74 build-days-to-keep: '{build-days-to-keep}'
75 artifact-num-to-keep: '{artifact-num-to-keep}'
76
77 wrappers:
78 - lf-infra-wrappers:
79 build-timeout: '{build-timeout}'
80 jenkins-ssh-credential: '{jenkins-ssh-credential}'
81
82 parameters:
83 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070084 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -070085 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -070086 description: 'Name of the Jenkins node to run the job on'
87
88 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -070089 name: extraHelmFlags
Andy Bavier218385e2019-11-13 09:51:38 -070090 default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -070091 description: 'Helm flags to pass to ./voltha up'
92
Andy Bavierdabe9fc2019-10-24 17:10:48 -070093 - string:
Andy Bavier218385e2019-11-13 09:51:38 -070094 name: makeTarget
95 default: '{make-target}'
96 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -070097
Andy Bavier4c8b3232019-11-22 16:17:47 -070098 - string:
99 name: manifestUrl
100 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
101 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
102
103 - string:
104 name: manifestBranch
105 default: '{code-branch}'
106 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
107
Kailash8b8de742019-07-30 08:54:51 -0700108 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700109 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700110
Zack Williamsb3292082019-10-11 17:15:18 -0700111 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700112
113 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700114 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700115 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700116 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700117
118- job-template:
119 id: 'voltha-patch-test'
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700120 name: 'verify_{project}_sanity-test'
121 extra-helm-flags: '--set defaults.image_tag=$GERRIT_BRANCH'
Kailashaad71012019-08-27 10:36:53 -0700122
123 description: |
124 <!-- Managed by Jenkins Job Builder -->
125 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
126 E2E Validation for Voltha 2.X
127
128 properties:
129 - cord-infra-properties:
130 build-days-to-keep: '{build-days-to-keep}'
131 artifact-num-to-keep: '{artifact-num-to-keep}'
132
133 wrappers:
134 - lf-infra-wrappers:
135 build-timeout: '{build-timeout}'
136 jenkins-ssh-credential: '{jenkins-ssh-credential}'
137
138 parameters:
139 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700140 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700141 default: 'ubuntu16.04-basebuild-4c-8g'
142 description: 'Name of the Jenkins node to run the job on'
143
144 - string:
145 name: manifestUrl
146 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
147 description: 'URL to the repo manifest'
148
149 - string:
hwchiu14f97852019-10-08 10:51:11 -0700150 name: manifestBranch
151 default: '$GERRIT_BRANCH'
152 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700153
154 - string:
hwchiu14f97852019-10-08 10:51:11 -0700155 name: gerritProject
156 default: '$GERRIT_PROJECT'
157 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700158
159 - string:
hwchiu14f97852019-10-08 10:51:11 -0700160 name: gerritChangeNumber
161 default: '$GERRIT_CHANGE_NUMBER'
162 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700163
164 - string:
hwchiu14f97852019-10-08 10:51:11 -0700165 name: gerritPatchsetNumber
166 default: '$GERRIT_PATCHSET_NUMBER'
167 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700168
169 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700170 name: extraHelmFlags
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700171 default: '{extra-helm-flags}'
Andy Bavierbedd0392019-10-16 13:58:18 -0700172 description: 'Helm flags to pass to ./voltha up'
173
Kailashaad71012019-08-27 10:36:53 -0700174 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700175 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700176
Zack Williamsb3292082019-10-11 17:15:18 -0700177 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700178
179 triggers:
180 - cord-infra-gerrit-trigger-patchset:
181 gerrit-server-name: '{gerrit-server-name}'
Kailash53d86722019-09-05 09:08:41 -0700182 project-regexp: '^{project}$'
183 branch-regexp: '{branch-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700184 dependency-jobs: '{dependency-jobs}'
185 file-include-regexp: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700186
187# POD Per Patchset Pipeline Jobs
188
189- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700190 name: '{name}'
Andy Baviere9916452019-11-06 12:32:47 -0700191 id: verify_physical_voltha_patchset
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700192 description: |
193 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700194 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700195 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700196 Created by Andy Bavier, andy@opennetworking.org <br />
197 Copyright (c) 2019 Open Networking Foundation (ONF)
198 project-type: pipeline
199 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700200 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700201
202 properties:
203 - cord-infra-properties:
204 build-days-to-keep: '{build-days-to-keep}'
205 artifact-num-to-keep: '{artifact-num-to-keep}'
206
207 parameters:
208 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700209 name: buildNode
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700210 default: '{testvm}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700211 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700212
213 - string:
214 name: manifestUrl
215 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
216 description: 'URL to the repo manifest'
217
218 - string:
219 name: manifestBranch
220 default: '$GERRIT_BRANCH'
221 description: 'Name of the repo branch to use'
222
223 - string:
224 name: gerritProject
225 default: '$GERRIT_PROJECT'
226 description: 'Name of the Gerrit project'
227
228 - string:
229 name: gerritChangeNumber
230 default: '$GERRIT_CHANGE_NUMBER'
231 description: 'Changeset number in Gerrit'
232
233 - string:
234 name: gerritPatchsetNumber
235 default: '$GERRIT_PATCHSET_NUMBER'
236 description: 'PatchSet number in Gerrit'
237
238 - string:
239 name: cordRepoUrl
240 default: '{gerrit-server-url}'
241 description: 'The URL of the CORD Project repository'
242
243 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700244 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700245 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700246
247 - string:
248 name: deploymentConfigFile
249 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
250 description: 'Path of deployment config file'
251
252 - string:
253 name: kindVolthaValuesFile
254 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
255 description: 'Path of kind-voltha values override file'
256
257 - string:
258 name: sadisConfigFile
259 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
260 description: 'Path of SADIS config to load'
261
262 - string:
263 name: localConfigDir
264 default: null
265 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
266
267 - string:
268 name: configRepo
269 default: 'pod-configs'
270 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700271
272 - string:
273 name: oltDebVersion
274 default: '{oltDebVersion}'
275 description: 'OLT Software version to install'
276
277 - string:
278 name: branch
279 default: '{branch}'
280
281 - string:
282 name: profile
283 default: '{profile}'
284 description: 'Technology Profile pushed to the ETCD'
285
286 - string:
287 name: notificationEmail
288 default: 'andy@opennetworking.org'
289 description: ''
290
291 - bool:
292 name: reinstallOlt
293 default: true
294 description: "Re-install OLT software"
295
Andy Bavier19c98a22019-11-11 13:57:11 -0700296 - bool:
297 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700298 default: true
299 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700300
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700301 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700302 concurrent: true
303
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700304 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700305
Andy Bavier1f465592019-11-06 10:03:56 -0700306 triggers:
307 - gerrit:
308 server-name: '{gerrit-server-name}'
309 dependency-jobs: '{dependency-jobs}'
310 silent-start: false
311 successful-message: "PASSED hardware test"
312 failure-message: "FAILED hardware test"
313 unstable-message: "UNSTABLE hardware test"
314 trigger-on:
315 - comment-added-contains-event:
316 comment-contains-value: '^hardware test$'
317 projects:
318 - project-compare-type: REG_EXP
Andy Baviere9916452019-11-06 12:32:47 -0700319 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests)$'
Andy Bavier1f465592019-11-06 10:03:56 -0700320 branches:
321 - branch-compare-type: PLAIN
322 branch-pattern: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700323
324- job-template:
325 name: '{name}'
326 id: build_physical_voltha_manual
327 description: |
328 <!-- Managed by Jenkins Job Builder -->
329 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
330 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
331 Created by Andy Bavier, andy@opennetworking.org <br />
332 Copyright (c) 2019 Open Networking Foundation (ONF)
333 project-type: pipeline
334 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700335 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700336
337 properties:
338 - cord-infra-properties:
339 build-days-to-keep: '{build-days-to-keep}'
340 artifact-num-to-keep: '{artifact-num-to-keep}'
341
342 parameters:
343 - string:
344 name: buildNode
345 default: '{testvm}'
346 description: 'Pod management node'
347
348 - string:
349 name: manifestUrl
350 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
351 description: 'URL to the repo manifest'
352
353 - string:
354 name: manifestBranch
Andy Bavier06d816c2019-11-19 11:40:48 -0700355 default: 'master'
356 description: 'Name of the repo branch to use (change to $GERRIT_BRANCH if testing a patchset)'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700357
358 - string:
359 name: gerritProject
360 default: '$GERRIT_PROJECT'
361 description: 'Name of the Gerrit project'
362
363 - string:
364 name: gerritChangeNumber
365 default: '$GERRIT_CHANGE_NUMBER'
366 description: 'Changeset number in Gerrit'
367
368 - string:
369 name: gerritPatchsetNumber
370 default: '$GERRIT_PATCHSET_NUMBER'
371 description: 'PatchSet number in Gerrit'
372
373 - string:
374 name: cordRepoUrl
375 default: '{gerrit-server-url}'
376 description: 'The URL of the CORD Project repository'
377
378 - string:
379 name: podName
380 default: '{config-pod}'
381
382 - string:
383 name: deploymentConfigFile
384 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
385 description: 'Path of deployment config file'
386
387 - string:
388 name: kindVolthaValuesFile
389 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
390 description: 'Path of kind-voltha values override file'
391
392 - string:
393 name: sadisConfigFile
394 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
395 description: 'Path of SADIS config to load'
396
397 - string:
398 name: localConfigDir
399 default: null
400 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
401
402 - string:
403 name: configRepo
404 default: 'pod-configs'
405 description: 'A repository containing the config files, will be checked out if specified'
406
407 - string:
408 name: oltDebVersion
409 default: '{oltDebVersion}'
410 description: 'OLT Software version to install'
411
412 - string:
413 name: branch
414 default: '{branch}'
415
416 - string:
417 name: profile
418 default: '{profile}'
419 description: 'Technology Profile pushed to the ETCD'
420
421 - string:
422 name: notificationEmail
423 default: 'andy@opennetworking.org'
424 description: ''
425
426 - bool:
427 name: reinstallOlt
428 default: false
429 description: "Re-install OLT software"
430
431 - bool:
432 name: withPatchset
433 default: false
434 description: "Build with Gerrit patchset"
435
436 project-type: pipeline
437 concurrent: true
438
439 dsl: !include-raw-escape: pipeline/{pipeline-script}