blob: e499738254c3b7f9c8d6990064f8c766860cc7f0 [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 Bavier61c5b2a2019-11-12 12:08:19 -070036 pipeline-script: 'voltha-physical-tests.groovy'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070037 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070038 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070039 withPatchset: true
40
41 # Manual build job for Tucson pod
42 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -070043 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -070044 name: 'build_tucson-pod_manual'
45 testvm: 'tucson-pod'
46 config-pod: 'tucson-pod'
47 branch: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -070048 pipeline-script: 'voltha-physical-tests.groovy'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070049 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -070050 profile: 'Default'
51 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -070052
Kailash8b8de742019-07-30 08:54:51 -070053- job-template:
Kailashaad71012019-08-27 10:36:53 -070054 id: 'voltha-periodic-test'
55 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -070056 pipeline-script: 'voltha-go-tests.groovy'
Kailash8b8de742019-07-30 08:54:51 -070057
58 description: |
59 <!-- Managed by Jenkins Job Builder -->
60 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
61 E2E Validation for Voltha 2.X
62
63 properties:
64 - cord-infra-properties:
65 build-days-to-keep: '{build-days-to-keep}'
66 artifact-num-to-keep: '{artifact-num-to-keep}'
67
68 wrappers:
69 - lf-infra-wrappers:
70 build-timeout: '{build-timeout}'
71 jenkins-ssh-credential: '{jenkins-ssh-credential}'
72
73 parameters:
74 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070075 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -070076 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -070077 description: 'Name of the Jenkins node to run the job on'
78
79 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -070080 name: extraHelmFlags
Andy Bavier218385e2019-11-13 09:51:38 -070081 default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -070082 description: 'Helm flags to pass to ./voltha up'
83
Andy Bavierdabe9fc2019-10-24 17:10:48 -070084 - string:
Andy Bavier218385e2019-11-13 09:51:38 -070085 name: makeTarget
86 default: '{make-target}'
87 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -070088
Andy Bavier4c8b3232019-11-22 16:17:47 -070089 - string:
90 name: manifestUrl
91 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
92 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
93
94 - string:
95 name: manifestBranch
96 default: '{code-branch}'
97 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
98
Kailash8b8de742019-07-30 08:54:51 -070099 project-type: pipeline
100 concurrent: false
101
Zack Williamsb3292082019-10-11 17:15:18 -0700102 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700103
104 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700105 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700106 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700107 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700108
109- job-template:
110 id: 'voltha-patch-test'
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700111 name: 'verify_{project}_sanity-test'
112 extra-helm-flags: '--set defaults.image_tag=$GERRIT_BRANCH'
Kailashaad71012019-08-27 10:36:53 -0700113
114 description: |
115 <!-- Managed by Jenkins Job Builder -->
116 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
117 E2E Validation for Voltha 2.X
118
119 properties:
120 - cord-infra-properties:
121 build-days-to-keep: '{build-days-to-keep}'
122 artifact-num-to-keep: '{artifact-num-to-keep}'
123
124 wrappers:
125 - lf-infra-wrappers:
126 build-timeout: '{build-timeout}'
127 jenkins-ssh-credential: '{jenkins-ssh-credential}'
128
129 parameters:
130 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700131 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700132 default: 'ubuntu16.04-basebuild-4c-8g'
133 description: 'Name of the Jenkins node to run the job on'
134
135 - string:
136 name: manifestUrl
137 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
138 description: 'URL to the repo manifest'
139
140 - string:
hwchiu14f97852019-10-08 10:51:11 -0700141 name: manifestBranch
142 default: '$GERRIT_BRANCH'
143 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700144
145 - string:
hwchiu14f97852019-10-08 10:51:11 -0700146 name: gerritProject
147 default: '$GERRIT_PROJECT'
148 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700149
150 - string:
hwchiu14f97852019-10-08 10:51:11 -0700151 name: gerritChangeNumber
152 default: '$GERRIT_CHANGE_NUMBER'
153 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700154
155 - string:
hwchiu14f97852019-10-08 10:51:11 -0700156 name: gerritPatchsetNumber
157 default: '$GERRIT_PATCHSET_NUMBER'
158 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700159
160 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700161 name: extraHelmFlags
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700162 default: '{extra-helm-flags}'
Andy Bavierbedd0392019-10-16 13:58:18 -0700163 description: 'Helm flags to pass to ./voltha up'
164
Kailashaad71012019-08-27 10:36:53 -0700165 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700166 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700167
Zack Williamsb3292082019-10-11 17:15:18 -0700168 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700169
170 triggers:
171 - cord-infra-gerrit-trigger-patchset:
172 gerrit-server-name: '{gerrit-server-name}'
Kailash53d86722019-09-05 09:08:41 -0700173 project-regexp: '^{project}$'
174 branch-regexp: '{branch-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700175 dependency-jobs: '{dependency-jobs}'
176 file-include-regexp: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700177
178# POD Per Patchset Pipeline Jobs
179
180- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700181 name: '{name}'
Andy Baviere9916452019-11-06 12:32:47 -0700182 id: verify_physical_voltha_patchset
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700183 description: |
184 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700185 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700186 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700187 Created by Andy Bavier, andy@opennetworking.org <br />
188 Copyright (c) 2019 Open Networking Foundation (ONF)
189 project-type: pipeline
190 sandbox: true
191
192 properties:
193 - cord-infra-properties:
194 build-days-to-keep: '{build-days-to-keep}'
195 artifact-num-to-keep: '{artifact-num-to-keep}'
196
197 parameters:
198 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700199 name: buildNode
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700200 default: '{testvm}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700201 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700202
203 - string:
204 name: manifestUrl
205 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
206 description: 'URL to the repo manifest'
207
208 - string:
209 name: manifestBranch
210 default: '$GERRIT_BRANCH'
211 description: 'Name of the repo branch to use'
212
213 - string:
214 name: gerritProject
215 default: '$GERRIT_PROJECT'
216 description: 'Name of the Gerrit project'
217
218 - string:
219 name: gerritChangeNumber
220 default: '$GERRIT_CHANGE_NUMBER'
221 description: 'Changeset number in Gerrit'
222
223 - string:
224 name: gerritPatchsetNumber
225 default: '$GERRIT_PATCHSET_NUMBER'
226 description: 'PatchSet number in Gerrit'
227
228 - string:
229 name: cordRepoUrl
230 default: '{gerrit-server-url}'
231 description: 'The URL of the CORD Project repository'
232
233 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700234 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700235 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700236
237 - string:
238 name: deploymentConfigFile
239 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
240 description: 'Path of deployment config file'
241
242 - string:
243 name: kindVolthaValuesFile
244 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
245 description: 'Path of kind-voltha values override file'
246
247 - string:
248 name: sadisConfigFile
249 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
250 description: 'Path of SADIS config to load'
251
252 - string:
253 name: localConfigDir
254 default: null
255 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
256
257 - string:
258 name: configRepo
259 default: 'pod-configs'
260 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700261
262 - string:
263 name: oltDebVersion
264 default: '{oltDebVersion}'
265 description: 'OLT Software version to install'
266
267 - string:
268 name: branch
269 default: '{branch}'
270
271 - string:
272 name: profile
273 default: '{profile}'
274 description: 'Technology Profile pushed to the ETCD'
275
276 - string:
277 name: notificationEmail
278 default: 'andy@opennetworking.org'
279 description: ''
280
281 - bool:
282 name: reinstallOlt
283 default: true
284 description: "Re-install OLT software"
285
Andy Bavier19c98a22019-11-11 13:57:11 -0700286 - bool:
287 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700288 default: true
289 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700290
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700291 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700292 concurrent: true
293
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700294 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700295
Andy Bavier1f465592019-11-06 10:03:56 -0700296 triggers:
297 - gerrit:
298 server-name: '{gerrit-server-name}'
299 dependency-jobs: '{dependency-jobs}'
300 silent-start: false
301 successful-message: "PASSED hardware test"
302 failure-message: "FAILED hardware test"
303 unstable-message: "UNSTABLE hardware test"
304 trigger-on:
305 - comment-added-contains-event:
306 comment-contains-value: '^hardware test$'
307 projects:
308 - project-compare-type: REG_EXP
Andy Baviere9916452019-11-06 12:32:47 -0700309 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests)$'
Andy Bavier1f465592019-11-06 10:03:56 -0700310 branches:
311 - branch-compare-type: PLAIN
312 branch-pattern: 'master'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700313
314- job-template:
315 name: '{name}'
316 id: build_physical_voltha_manual
317 description: |
318 <!-- Managed by Jenkins Job Builder -->
319 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
320 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
321 Created by Andy Bavier, andy@opennetworking.org <br />
322 Copyright (c) 2019 Open Networking Foundation (ONF)
323 project-type: pipeline
324 sandbox: true
325
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}