blob: 99273e5a7c63a623d9f22832294f0bd8245ad12b [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':
21 name: 'periodic-voltha-scale-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070022 build-node: 'qct-pod4-node2'
Andy Bavier218385e2019-11-13 09:51:38 -070023 default-image-tag: 'master'
Andy Bavier4c8b3232019-11-22 16:17:47 -070024 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070025 make-target: scale-multi-kind
26 onus: 2
27 pons: 8
28 time-trigger: "H H/3 * * *"
Kailashaad71012019-08-27 10:36:53 -070029
Andy Bavierbf68c5e2019-10-25 15:05:28 -070030 # Per-patchset Pod builds on Tucson pod
Andy Baviere9916452019-11-06 12:32:47 -070031 - 'verify_physical_voltha_patchset':
Andy Bavier19c98a22019-11-11 13:57:11 -070032 name: 'verify_physical_voltha_patchset'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070033 testvm: 'tucson-pod'
34 config-pod: 'tucson-pod'
35 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070036 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070037 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070038 withPatchset: true
39
40 # Manual build job for Tucson pod
41 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -070042 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -070043 name: 'build_tucson-pod_manual'
44 testvm: 'tucson-pod'
45 config-pod: 'tucson-pod'
46 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070047 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -070048 profile: 'Default'
49 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -070050
Kailash8b8de742019-07-30 08:54:51 -070051- job-template:
Kailashaad71012019-08-27 10:36:53 -070052 id: 'voltha-periodic-test'
53 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -070054 pipeline-script: 'voltha-go-tests.groovy'
Kailash8b8de742019-07-30 08:54:51 -070055
56 description: |
57 <!-- Managed by Jenkins Job Builder -->
58 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
59 E2E Validation for Voltha 2.X
60
61 properties:
62 - cord-infra-properties:
63 build-days-to-keep: '{build-days-to-keep}'
64 artifact-num-to-keep: '{artifact-num-to-keep}'
65
66 wrappers:
67 - lf-infra-wrappers:
68 build-timeout: '{build-timeout}'
69 jenkins-ssh-credential: '{jenkins-ssh-credential}'
70
71 parameters:
72 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070073 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -070074 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -070075 description: 'Name of the Jenkins node to run the job on'
76
77 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -070078 name: extraHelmFlags
Andy Bavier218385e2019-11-13 09:51:38 -070079 default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -070080 description: 'Helm flags to pass to ./voltha up'
81
Andy Bavierdabe9fc2019-10-24 17:10:48 -070082 - string:
Andy Bavier218385e2019-11-13 09:51:38 -070083 name: makeTarget
84 default: '{make-target}'
85 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -070086
Andy Bavier4c8b3232019-11-22 16:17:47 -070087 - string:
88 name: manifestUrl
89 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
90 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
91
92 - string:
93 name: manifestBranch
94 default: '{code-branch}'
95 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
96
Kailash8b8de742019-07-30 08:54:51 -070097 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -070098 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -070099
Zack Williamsb3292082019-10-11 17:15:18 -0700100 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700101
102 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700103 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700104 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700105 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700106
107- job-template:
108 id: 'voltha-patch-test'
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700109 name: 'verify_{project}_sanity-test'
110 extra-helm-flags: '--set defaults.image_tag=$GERRIT_BRANCH'
Kailashaad71012019-08-27 10:36:53 -0700111
112 description: |
113 <!-- Managed by Jenkins Job Builder -->
114 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
115 E2E Validation for Voltha 2.X
116
117 properties:
118 - cord-infra-properties:
119 build-days-to-keep: '{build-days-to-keep}'
120 artifact-num-to-keep: '{artifact-num-to-keep}'
121
122 wrappers:
123 - lf-infra-wrappers:
124 build-timeout: '{build-timeout}'
125 jenkins-ssh-credential: '{jenkins-ssh-credential}'
126
127 parameters:
128 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700129 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700130 default: 'ubuntu16.04-basebuild-4c-8g'
131 description: 'Name of the Jenkins node to run the job on'
132
133 - string:
134 name: manifestUrl
135 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
136 description: 'URL to the repo manifest'
137
138 - string:
hwchiu14f97852019-10-08 10:51:11 -0700139 name: manifestBranch
140 default: '$GERRIT_BRANCH'
141 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700142
143 - string:
hwchiu14f97852019-10-08 10:51:11 -0700144 name: gerritProject
145 default: '$GERRIT_PROJECT'
146 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700147
148 - string:
hwchiu14f97852019-10-08 10:51:11 -0700149 name: gerritChangeNumber
150 default: '$GERRIT_CHANGE_NUMBER'
151 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700152
153 - string:
hwchiu14f97852019-10-08 10:51:11 -0700154 name: gerritPatchsetNumber
155 default: '$GERRIT_PATCHSET_NUMBER'
156 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700157
158 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700159 name: extraHelmFlags
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700160 default: '{extra-helm-flags}'
Andy Bavierbedd0392019-10-16 13:58:18 -0700161 description: 'Helm flags to pass to ./voltha up'
162
Kailashaad71012019-08-27 10:36:53 -0700163 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700164 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700165
Zack Williamsb3292082019-10-11 17:15:18 -0700166 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700167
168 triggers:
169 - cord-infra-gerrit-trigger-patchset:
170 gerrit-server-name: '{gerrit-server-name}'
Kailash53d86722019-09-05 09:08:41 -0700171 project-regexp: '^{project}$'
172 branch-regexp: '{branch-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700173 dependency-jobs: '{dependency-jobs}'
174 file-include-regexp: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700175
176# POD Per Patchset Pipeline Jobs
177
178- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700179 name: '{name}'
Andy Baviere9916452019-11-06 12:32:47 -0700180 id: verify_physical_voltha_patchset
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700181 description: |
182 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700183 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700184 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700185 Created by Andy Bavier, andy@opennetworking.org <br />
186 Copyright (c) 2019 Open Networking Foundation (ONF)
187 project-type: pipeline
188 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700189 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700190
191 properties:
192 - cord-infra-properties:
193 build-days-to-keep: '{build-days-to-keep}'
194 artifact-num-to-keep: '{artifact-num-to-keep}'
195
196 parameters:
197 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700198 name: buildNode
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700199 default: '{testvm}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700200 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700201
202 - string:
203 name: manifestUrl
204 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
205 description: 'URL to the repo manifest'
206
207 - string:
208 name: manifestBranch
209 default: '$GERRIT_BRANCH'
210 description: 'Name of the repo branch to use'
211
212 - string:
213 name: gerritProject
214 default: '$GERRIT_PROJECT'
215 description: 'Name of the Gerrit project'
216
217 - string:
218 name: gerritChangeNumber
219 default: '$GERRIT_CHANGE_NUMBER'
220 description: 'Changeset number in Gerrit'
221
222 - string:
223 name: gerritPatchsetNumber
224 default: '$GERRIT_PATCHSET_NUMBER'
225 description: 'PatchSet number in Gerrit'
226
227 - string:
228 name: cordRepoUrl
229 default: '{gerrit-server-url}'
230 description: 'The URL of the CORD Project repository'
231
232 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700233 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700234 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700235
236 - string:
237 name: deploymentConfigFile
238 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
239 description: 'Path of deployment config file'
240
241 - string:
242 name: kindVolthaValuesFile
243 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
244 description: 'Path of kind-voltha values override file'
245
246 - string:
247 name: sadisConfigFile
248 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
249 description: 'Path of SADIS config to load'
250
251 - string:
252 name: localConfigDir
253 default: null
254 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
255
256 - string:
257 name: configRepo
258 default: 'pod-configs'
259 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700260
261 - string:
262 name: oltDebVersion
263 default: '{oltDebVersion}'
264 description: 'OLT Software version to install'
265
266 - string:
267 name: branch
268 default: '{branch}'
269
270 - string:
271 name: profile
272 default: '{profile}'
273 description: 'Technology Profile pushed to the ETCD'
274
275 - string:
276 name: notificationEmail
277 default: 'andy@opennetworking.org'
278 description: ''
279
280 - bool:
281 name: reinstallOlt
282 default: true
283 description: "Re-install OLT software"
284
Andy Bavier19c98a22019-11-11 13:57:11 -0700285 - bool:
286 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700287 default: true
288 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700289
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700290 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700291 concurrent: true
292
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700293 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700294
Andy Bavier1f465592019-11-06 10:03:56 -0700295 triggers:
296 - gerrit:
297 server-name: '{gerrit-server-name}'
298 dependency-jobs: '{dependency-jobs}'
299 silent-start: false
300 successful-message: "PASSED hardware test"
301 failure-message: "FAILED hardware test"
302 unstable-message: "UNSTABLE hardware test"
303 trigger-on:
304 - comment-added-contains-event:
305 comment-contains-value: '^hardware test$'
306 projects:
307 - project-compare-type: REG_EXP
Andy Baviere9916452019-11-06 12:32:47 -0700308 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests)$'
Andy Bavier1f465592019-11-06 10:03:56 -0700309 branches:
310 - branch-compare-type: PLAIN
311 branch-pattern: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700312
313- job-template:
314 name: '{name}'
315 id: build_physical_voltha_manual
316 description: |
317 <!-- Managed by Jenkins Job Builder -->
318 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
319 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
320 Created by Andy Bavier, andy@opennetworking.org <br />
321 Copyright (c) 2019 Open Networking Foundation (ONF)
322 project-type: pipeline
323 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700324 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700325
326 properties:
327 - cord-infra-properties:
328 build-days-to-keep: '{build-days-to-keep}'
329 artifact-num-to-keep: '{artifact-num-to-keep}'
330
331 parameters:
332 - string:
333 name: buildNode
334 default: '{testvm}'
335 description: 'Pod management node'
336
337 - string:
338 name: manifestUrl
339 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
340 description: 'URL to the repo manifest'
341
342 - string:
343 name: manifestBranch
Andy Bavier06d816c2019-11-19 11:40:48 -0700344 default: 'master'
345 description: 'Name of the repo branch to use (change to $GERRIT_BRANCH if testing a patchset)'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700346
347 - string:
348 name: gerritProject
349 default: '$GERRIT_PROJECT'
350 description: 'Name of the Gerrit project'
351
352 - string:
353 name: gerritChangeNumber
354 default: '$GERRIT_CHANGE_NUMBER'
355 description: 'Changeset number in Gerrit'
356
357 - string:
358 name: gerritPatchsetNumber
359 default: '$GERRIT_PATCHSET_NUMBER'
360 description: 'PatchSet number in Gerrit'
361
362 - string:
363 name: cordRepoUrl
364 default: '{gerrit-server-url}'
365 description: 'The URL of the CORD Project repository'
366
367 - string:
368 name: podName
369 default: '{config-pod}'
370
371 - string:
372 name: deploymentConfigFile
373 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
374 description: 'Path of deployment config file'
375
376 - string:
377 name: kindVolthaValuesFile
378 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
379 description: 'Path of kind-voltha values override file'
380
381 - string:
382 name: sadisConfigFile
383 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
384 description: 'Path of SADIS config to load'
385
386 - string:
387 name: localConfigDir
388 default: null
389 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
390
391 - string:
392 name: configRepo
393 default: 'pod-configs'
394 description: 'A repository containing the config files, will be checked out if specified'
395
396 - string:
397 name: oltDebVersion
398 default: '{oltDebVersion}'
399 description: 'OLT Software version to install'
400
401 - string:
402 name: branch
403 default: '{branch}'
404
405 - string:
406 name: profile
407 default: '{profile}'
408 description: 'Technology Profile pushed to the ETCD'
409
410 - string:
411 name: notificationEmail
412 default: 'andy@opennetworking.org'
413 description: ''
414
415 - bool:
416 name: reinstallOlt
417 default: false
418 description: "Re-install OLT software"
419
420 - bool:
421 name: withPatchset
422 default: false
423 description: "Build with Gerrit patchset"
424
425 project-type: pipeline
426 concurrent: true
427
428 dsl: !include-raw-escape: pipeline/{pipeline-script}