blob: 1486344273dd290012135e46f574aa7225cb5041 [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'
23 default-image-tag: 'master'
24 make-target: sanity-multi-kind
25 onus: 2
26 pons: 2
27 time-trigger: "H H/12 * * *"
28
29 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -070030 name: 'periodic-voltha-scale-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070031 build-node: 'qct-pod4-node2'
Andy Bavier218385e2019-11-13 09:51:38 -070032 default-image-tag: 'master'
Andy Bavier4c8b3232019-11-22 16:17:47 -070033 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070034 make-target: scale-multi-kind
35 onus: 2
36 pons: 8
37 time-trigger: "H H/3 * * *"
Kailashaad71012019-08-27 10:36:53 -070038
Andy Bavierbf68c5e2019-10-25 15:05:28 -070039 # Per-patchset Pod builds on Tucson pod
Andy Baviere9916452019-11-06 12:32:47 -070040 - 'verify_physical_voltha_patchset':
Andy Bavier19c98a22019-11-11 13:57:11 -070041 name: 'verify_physical_voltha_patchset'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070042 testvm: 'tucson-pod'
43 config-pod: 'tucson-pod'
44 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070045 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070046 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070047 withPatchset: true
48
49 # Manual build job for Tucson pod
50 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -070051 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -070052 name: 'build_tucson-pod_manual'
53 testvm: 'tucson-pod'
54 config-pod: 'tucson-pod'
55 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070056 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -070057 profile: 'Default'
58 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -070059
Kailash8b8de742019-07-30 08:54:51 -070060- job-template:
Kailashaad71012019-08-27 10:36:53 -070061 id: 'voltha-periodic-test'
62 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -070063 pipeline-script: 'voltha-go-tests.groovy'
Kailash8b8de742019-07-30 08:54:51 -070064
65 description: |
66 <!-- Managed by Jenkins Job Builder -->
67 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
68 E2E Validation for Voltha 2.X
69
70 properties:
71 - cord-infra-properties:
72 build-days-to-keep: '{build-days-to-keep}'
73 artifact-num-to-keep: '{artifact-num-to-keep}'
74
75 wrappers:
76 - lf-infra-wrappers:
77 build-timeout: '{build-timeout}'
78 jenkins-ssh-credential: '{jenkins-ssh-credential}'
79
80 parameters:
81 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070082 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -070083 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -070084 description: 'Name of the Jenkins node to run the job on'
85
86 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -070087 name: extraHelmFlags
Andy Bavier218385e2019-11-13 09:51:38 -070088 default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -070089 description: 'Helm flags to pass to ./voltha up'
90
Andy Bavierdabe9fc2019-10-24 17:10:48 -070091 - string:
Andy Bavier218385e2019-11-13 09:51:38 -070092 name: makeTarget
93 default: '{make-target}'
94 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -070095
Andy Bavier4c8b3232019-11-22 16:17:47 -070096 - string:
97 name: manifestUrl
98 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
99 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
100
101 - string:
102 name: manifestBranch
103 default: '{code-branch}'
104 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
105
Kailash8b8de742019-07-30 08:54:51 -0700106 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700107 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700108
Zack Williamsb3292082019-10-11 17:15:18 -0700109 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700110
111 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700112 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700113 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700114 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700115
116- job-template:
117 id: 'voltha-patch-test'
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700118 name: 'verify_{project}_sanity-test'
119 extra-helm-flags: '--set defaults.image_tag=$GERRIT_BRANCH'
Kailashaad71012019-08-27 10:36:53 -0700120
121 description: |
122 <!-- Managed by Jenkins Job Builder -->
123 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
124 E2E Validation for Voltha 2.X
125
126 properties:
127 - cord-infra-properties:
128 build-days-to-keep: '{build-days-to-keep}'
129 artifact-num-to-keep: '{artifact-num-to-keep}'
130
131 wrappers:
132 - lf-infra-wrappers:
133 build-timeout: '{build-timeout}'
134 jenkins-ssh-credential: '{jenkins-ssh-credential}'
135
136 parameters:
137 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700138 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700139 default: 'ubuntu16.04-basebuild-4c-8g'
140 description: 'Name of the Jenkins node to run the job on'
141
142 - string:
143 name: manifestUrl
144 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
145 description: 'URL to the repo manifest'
146
147 - string:
hwchiu14f97852019-10-08 10:51:11 -0700148 name: manifestBranch
149 default: '$GERRIT_BRANCH'
150 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700151
152 - string:
hwchiu14f97852019-10-08 10:51:11 -0700153 name: gerritProject
154 default: '$GERRIT_PROJECT'
155 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700156
157 - string:
hwchiu14f97852019-10-08 10:51:11 -0700158 name: gerritChangeNumber
159 default: '$GERRIT_CHANGE_NUMBER'
160 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700161
162 - string:
hwchiu14f97852019-10-08 10:51:11 -0700163 name: gerritPatchsetNumber
164 default: '$GERRIT_PATCHSET_NUMBER'
165 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700166
167 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700168 name: extraHelmFlags
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700169 default: '{extra-helm-flags}'
Andy Bavierbedd0392019-10-16 13:58:18 -0700170 description: 'Helm flags to pass to ./voltha up'
171
Kailashaad71012019-08-27 10:36:53 -0700172 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700173 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700174
Zack Williamsb3292082019-10-11 17:15:18 -0700175 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700176
177 triggers:
178 - cord-infra-gerrit-trigger-patchset:
179 gerrit-server-name: '{gerrit-server-name}'
Kailash53d86722019-09-05 09:08:41 -0700180 project-regexp: '^{project}$'
181 branch-regexp: '{branch-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700182 dependency-jobs: '{dependency-jobs}'
183 file-include-regexp: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700184
185# POD Per Patchset Pipeline Jobs
186
187- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700188 name: '{name}'
Andy Baviere9916452019-11-06 12:32:47 -0700189 id: verify_physical_voltha_patchset
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700190 description: |
191 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700192 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700193 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700194 Created by Andy Bavier, andy@opennetworking.org <br />
195 Copyright (c) 2019 Open Networking Foundation (ONF)
196 project-type: pipeline
197 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700198 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700199
200 properties:
201 - cord-infra-properties:
202 build-days-to-keep: '{build-days-to-keep}'
203 artifact-num-to-keep: '{artifact-num-to-keep}'
204
205 parameters:
206 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700207 name: buildNode
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700208 default: '{testvm}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700209 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700210
211 - string:
212 name: manifestUrl
213 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
214 description: 'URL to the repo manifest'
215
216 - string:
217 name: manifestBranch
218 default: '$GERRIT_BRANCH'
219 description: 'Name of the repo branch to use'
220
221 - string:
222 name: gerritProject
223 default: '$GERRIT_PROJECT'
224 description: 'Name of the Gerrit project'
225
226 - string:
227 name: gerritChangeNumber
228 default: '$GERRIT_CHANGE_NUMBER'
229 description: 'Changeset number in Gerrit'
230
231 - string:
232 name: gerritPatchsetNumber
233 default: '$GERRIT_PATCHSET_NUMBER'
234 description: 'PatchSet number in Gerrit'
235
236 - string:
237 name: cordRepoUrl
238 default: '{gerrit-server-url}'
239 description: 'The URL of the CORD Project repository'
240
241 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700242 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700243 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700244
245 - string:
246 name: deploymentConfigFile
247 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
248 description: 'Path of deployment config file'
249
250 - string:
251 name: kindVolthaValuesFile
252 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
253 description: 'Path of kind-voltha values override file'
254
255 - string:
256 name: sadisConfigFile
257 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
258 description: 'Path of SADIS config to load'
259
260 - string:
261 name: localConfigDir
262 default: null
263 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
264
265 - string:
266 name: configRepo
267 default: 'pod-configs'
268 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700269
270 - string:
271 name: oltDebVersion
272 default: '{oltDebVersion}'
273 description: 'OLT Software version to install'
274
275 - string:
276 name: branch
277 default: '{branch}'
278
279 - string:
280 name: profile
281 default: '{profile}'
282 description: 'Technology Profile pushed to the ETCD'
283
284 - string:
285 name: notificationEmail
286 default: 'andy@opennetworking.org'
287 description: ''
288
289 - bool:
290 name: reinstallOlt
291 default: true
292 description: "Re-install OLT software"
293
Andy Bavier19c98a22019-11-11 13:57:11 -0700294 - bool:
295 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700296 default: true
297 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700298
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700299 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700300 concurrent: true
301
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700302 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700303
Andy Bavier1f465592019-11-06 10:03:56 -0700304 triggers:
305 - gerrit:
306 server-name: '{gerrit-server-name}'
307 dependency-jobs: '{dependency-jobs}'
308 silent-start: false
309 successful-message: "PASSED hardware test"
310 failure-message: "FAILED hardware test"
311 unstable-message: "UNSTABLE hardware test"
312 trigger-on:
313 - comment-added-contains-event:
314 comment-contains-value: '^hardware test$'
315 projects:
316 - project-compare-type: REG_EXP
Andy Baviere9916452019-11-06 12:32:47 -0700317 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests)$'
Andy Bavier1f465592019-11-06 10:03:56 -0700318 branches:
319 - branch-compare-type: PLAIN
320 branch-pattern: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700321
322- job-template:
323 name: '{name}'
324 id: build_physical_voltha_manual
325 description: |
326 <!-- Managed by Jenkins Job Builder -->
327 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
328 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
329 Created by Andy Bavier, andy@opennetworking.org <br />
330 Copyright (c) 2019 Open Networking Foundation (ONF)
331 project-type: pipeline
332 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700333 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700334
335 properties:
336 - cord-infra-properties:
337 build-days-to-keep: '{build-days-to-keep}'
338 artifact-num-to-keep: '{artifact-num-to-keep}'
339
340 parameters:
341 - string:
342 name: buildNode
343 default: '{testvm}'
344 description: 'Pod management node'
345
346 - string:
347 name: manifestUrl
348 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
349 description: 'URL to the repo manifest'
350
351 - string:
352 name: manifestBranch
Andy Bavier06d816c2019-11-19 11:40:48 -0700353 default: 'master'
354 description: 'Name of the repo branch to use (change to $GERRIT_BRANCH if testing a patchset)'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700355
356 - string:
357 name: gerritProject
358 default: '$GERRIT_PROJECT'
359 description: 'Name of the Gerrit project'
360
361 - string:
362 name: gerritChangeNumber
363 default: '$GERRIT_CHANGE_NUMBER'
364 description: 'Changeset number in Gerrit'
365
366 - string:
367 name: gerritPatchsetNumber
368 default: '$GERRIT_PATCHSET_NUMBER'
369 description: 'PatchSet number in Gerrit'
370
371 - string:
372 name: cordRepoUrl
373 default: '{gerrit-server-url}'
374 description: 'The URL of the CORD Project repository'
375
376 - string:
377 name: podName
378 default: '{config-pod}'
379
380 - string:
381 name: deploymentConfigFile
382 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
383 description: 'Path of deployment config file'
384
385 - string:
386 name: kindVolthaValuesFile
387 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
388 description: 'Path of kind-voltha values override file'
389
390 - string:
391 name: sadisConfigFile
392 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
393 description: 'Path of SADIS config to load'
394
395 - string:
396 name: localConfigDir
397 default: null
398 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
399
400 - string:
401 name: configRepo
402 default: 'pod-configs'
403 description: 'A repository containing the config files, will be checked out if specified'
404
405 - string:
406 name: oltDebVersion
407 default: '{oltDebVersion}'
408 description: 'OLT Software version to install'
409
410 - string:
411 name: branch
412 default: '{branch}'
413
414 - string:
415 name: profile
416 default: '{profile}'
417 description: 'Technology Profile pushed to the ETCD'
418
419 - string:
420 name: notificationEmail
421 default: 'andy@opennetworking.org'
422 description: ''
423
424 - bool:
425 name: reinstallOlt
426 default: false
427 description: "Re-install OLT software"
428
429 - bool:
430 name: withPatchset
431 default: false
432 description: "Build with Gerrit patchset"
433
434 project-type: pipeline
435 concurrent: true
436
437 dsl: !include-raw-escape: pipeline/{pipeline-script}