blob: e01e54e35582ac3893a328afc95364e032523925 [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':
Andy Bavierd4ba3372020-01-21 17:01:53 -070021 name: 'periodic-voltha-functional-test'
Andy Bavierf93f3142020-01-09 16:08:51 -070022 build-node: 'qct-pod4-node2'
23 default-image-tag: 'master'
24 code-branch: 'master'
Andy Bavierd4ba3372020-01-21 17:01:53 -070025 make-target: functional-single-kind
Andy Bavierf93f3142020-01-09 16:08:51 -070026 onus: 1
27 pons: 1
Andy Bavierd4ba3372020-01-21 17:01:53 -070028 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070029
30 - 'voltha-periodic-test':
hwchiufdc49242019-11-18 16:37:22 -080031 name: 'periodic-voltha-system-test'
32 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080033 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiufdc49242019-11-18 16:37:22 -080034 default-image-tag: 'master'
hwchiuc9189b72019-12-02 15:12:29 -080035 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080036 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080037 onus: 2
38 pons: 2
39 time-trigger: "H H/12 * * *"
40
41 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070042 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070043 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070044 build-node: 'qct-pod4-node2'
45 default-image-tag: 'master'
46 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070047 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070048 onus: 1
49 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070050 test-runs: 5
51 time-trigger: "H H/3 * * *"
52
53 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -070054 name: 'periodic-voltha-scale-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070055 build-node: 'qct-pod4-node2'
Andy Bavier218385e2019-11-13 09:51:38 -070056 default-image-tag: 'master'
Andy Bavier4c8b3232019-11-22 16:17:47 -070057 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070058 make-target: scale-multi-kind
59 onus: 2
60 pons: 8
61 time-trigger: "H H/3 * * *"
Kailashaad71012019-08-27 10:36:53 -070062
Andy Bavier0d1d63e2020-03-03 13:52:02 -070063 - 'voltha-periodic-test':
64 name: 'periodic-voltha-alarm-test'
65 build-node: 'qct-pod4-node2'
66 default-image-tag: 'master'
67 code-branch: 'master'
68 make-target: bbsim-alarms-kind
69 onus: 1
70 pons: 1
71 time-trigger: "H H/3 * * *"
72
Andy Bavierbf68c5e2019-10-25 15:05:28 -070073 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -070074 - 'verify_physical_voltha_patchset_auto':
75 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -070076 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -070077 config-pod: 'tucson-pod'
78 branch: 'master'
79 oltDebVersion: 'openolt_asfvolt16.deb'
80 profile: 'Default'
81 withPatchset: true
82
83 # Per-patchset Pod builds on Tucson pod
84 - 'verify_physical_voltha_patchset_manual':
85 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -070086 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070087 config-pod: 'tucson-pod'
88 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070089 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070090 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070091 withPatchset: true
92
93 # Manual build job for Tucson pod
94 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -070095 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -070096 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -070097 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -070098 config-pod: 'tucson-pod'
99 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -0700100 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700101 profile: 'Default'
102 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700103
Kailash8b8de742019-07-30 08:54:51 -0700104- job-template:
Kailashaad71012019-08-27 10:36:53 -0700105 id: 'voltha-periodic-test'
106 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700107 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700108 test-runs: 1
109 robot-args: ''
Kailash8b8de742019-07-30 08:54:51 -0700110
111 description: |
112 <!-- Managed by Jenkins Job Builder -->
113 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
114 E2E Validation for Voltha 2.X
115
116 properties:
117 - cord-infra-properties:
118 build-days-to-keep: '{build-days-to-keep}'
119 artifact-num-to-keep: '{artifact-num-to-keep}'
120
121 wrappers:
122 - lf-infra-wrappers:
123 build-timeout: '{build-timeout}'
124 jenkins-ssh-credential: '{jenkins-ssh-credential}'
125
126 parameters:
127 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700128 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700129 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700130 description: 'Name of the Jenkins node to run the job on'
131
132 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700133 name: extraHelmFlags
Andy Bavier46c08a72020-02-06 14:07:48 -0700134 default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons},use_ofagent_go=True,images.ofagent.repository=voltha/ofagent-go,images.ofagent.tag=master'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700135 description: 'Helm flags to pass to ./voltha up'
136
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700137 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700138 name: makeTarget
139 default: '{make-target}'
140 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700141
Andy Bavier4c8b3232019-11-22 16:17:47 -0700142 - string:
143 name: manifestUrl
144 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
145 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
146
147 - string:
148 name: manifestBranch
149 default: '{code-branch}'
150 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
151
Andy Bavier3708d072019-12-10 15:22:18 -0700152 - string:
153 name: testRuns
154 default: '{test-runs}'
155 description: 'How many times to repeat the tests'
156
157 - string:
158 name: extraRobotArgs
159 default: '{robot-args}'
160 description: 'Arguments to pass to robot'
161
162
Kailash8b8de742019-07-30 08:54:51 -0700163 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700164 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700165
Zack Williamsb3292082019-10-11 17:15:18 -0700166 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700167
168 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700169 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700170 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700171 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700172
173- job-template:
174 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800175 name: 'verify_{project}_sanity-test{name-extension}'
Matteo Scandolo569bad92020-01-16 11:35:15 -0800176 extra-helm-flags: ''
Andy Bavierb99c3d32020-02-18 11:14:17 -0700177 skip-vote: false
Kailashaad71012019-08-27 10:36:53 -0700178
179 description: |
180 <!-- Managed by Jenkins Job Builder -->
181 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
182 E2E Validation for Voltha 2.X
183
184 properties:
185 - cord-infra-properties:
186 build-days-to-keep: '{build-days-to-keep}'
187 artifact-num-to-keep: '{artifact-num-to-keep}'
188
189 wrappers:
190 - lf-infra-wrappers:
191 build-timeout: '{build-timeout}'
192 jenkins-ssh-credential: '{jenkins-ssh-credential}'
193
194 parameters:
195 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700196 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700197 default: 'ubuntu16.04-basebuild-4c-8g'
198 description: 'Name of the Jenkins node to run the job on'
199
200 - string:
201 name: manifestUrl
202 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
203 description: 'URL to the repo manifest'
204
205 - string:
hwchiu14f97852019-10-08 10:51:11 -0700206 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800207 default: 'master'
hwchiu14f97852019-10-08 10:51:11 -0700208 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700209
210 - string:
hwchiu14f97852019-10-08 10:51:11 -0700211 name: gerritProject
212 default: '$GERRIT_PROJECT'
213 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700214
215 - string:
hwchiu14f97852019-10-08 10:51:11 -0700216 name: gerritChangeNumber
217 default: '$GERRIT_CHANGE_NUMBER'
218 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700219
220 - string:
hwchiu14f97852019-10-08 10:51:11 -0700221 name: gerritPatchsetNumber
222 default: '$GERRIT_PATCHSET_NUMBER'
223 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700224
225 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700226 name: extraHelmFlags
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700227 default: '{extra-helm-flags}'
Andy Bavierbedd0392019-10-16 13:58:18 -0700228 description: 'Helm flags to pass to ./voltha up'
229
Kailashaad71012019-08-27 10:36:53 -0700230 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700231 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700232
Zack Williamsb3292082019-10-11 17:15:18 -0700233 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700234
235 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700236 - gerrit:
237 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700238 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700239 silent-start: true
240 trigger-on:
241 - patchset-created-event:
242 exclude-drafts: true
243 exclude-trivial-rebase: false
244 exclude-no-code-change: true
245 - draft-published-event
246 - comment-added-contains-event:
247 comment-contains-value: '(?i)^.*recheck$'
248 projects:
249 - project-compare-type: REG_EXP
250 project-pattern: '^{project}$'
251 branches:
252 - branch-compare-type: REG_EXP
Andy Bavier204efab2020-02-19 10:21:45 -0700253 branch-pattern: '{branch-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700254 file-paths:
255 - compare-type: REG_EXP
256 pattern: '{all-files-regexp}'
257 skip-vote:
Andy Baviere2e3b542020-02-19 15:48:42 -0700258 successful: '{skip-vote}'
259 failed: '{skip-vote}'
260 unstable: '{skip-vote}'
261 notbuilt: '{skip-vote}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700262
263# POD Per Patchset Pipeline Jobs
264
265- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700266 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700267 id: verify_physical_voltha_patchset_auto
268 description: |
269 <!-- Managed by Jenkins Job Builder -->
270 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
271 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
272 Created by Andy Bavier, andy@opennetworking.org <br />
273 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700274 sandbox: true
275 pipeline-script: 'voltha-physical-build-and-tests.groovy'
276
277 properties:
278 - cord-infra-properties:
279 build-days-to-keep: '{build-days-to-keep}'
280 artifact-num-to-keep: '{artifact-num-to-keep}'
281
282 parameters:
283 - string:
284 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700285 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700286 description: 'Pod management node'
287
288 - string:
289 name: manifestUrl
290 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
291 description: 'URL to the repo manifest'
292
293 - string:
294 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800295 default: master
Andy Bavier51ba7e82019-12-17 11:01:01 -0700296 description: 'Name of the repo branch to use'
297
298 - string:
299 name: gerritProject
300 default: '$GERRIT_PROJECT'
301 description: 'Name of the Gerrit project'
302
303 - string:
304 name: gerritChangeNumber
305 default: '$GERRIT_CHANGE_NUMBER'
306 description: 'Changeset number in Gerrit'
307
308 - string:
309 name: gerritPatchsetNumber
310 default: '$GERRIT_PATCHSET_NUMBER'
311 description: 'PatchSet number in Gerrit'
312
313 - string:
314 name: cordRepoUrl
315 default: '{gerrit-server-url}'
316 description: 'The URL of the CORD Project repository'
317
318 - string:
319 name: podName
320 default: '{config-pod}'
321
322 - string:
323 name: deploymentConfigFile
324 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
325 description: 'Path of deployment config file'
326
327 - string:
328 name: kindVolthaValuesFile
329 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
330 description: 'Path of kind-voltha values override file'
331
332 - string:
333 name: sadisConfigFile
334 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
335 description: 'Path of SADIS config to load'
336
337 - string:
338 name: localConfigDir
339 default: null
340 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
341
342 - string:
343 name: configRepo
344 default: 'pod-configs'
345 description: 'A repository containing the config files, will be checked out if specified'
346
347 - string:
348 name: oltDebVersion
349 default: '{oltDebVersion}'
350 description: 'OLT Software version to install'
351
352 - string:
353 name: branch
354 default: '{branch}'
355
356 - string:
357 name: profile
358 default: '{profile}'
359 description: 'Technology Profile pushed to the ETCD'
360
361 - string:
362 name: notificationEmail
363 default: 'andy@opennetworking.org'
364 description: ''
365
366 - bool:
367 name: reinstallOlt
368 default: true
369 description: "Re-install OLT software"
370
371 - bool:
372 name: withPatchset
373 default: true
374 description: "Build with Gerrit patchset"
375
376 - string:
377 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700378 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700379 description: 'Arguments to pass to robot'
380
381 project-type: pipeline
382 concurrent: true
383
384 dsl: !include-raw-escape: pipeline/{pipeline-script}
385
386 triggers:
387 - gerrit:
388 server-name: '{gerrit-server-name}'
389 dependency-jobs: '{dependency-jobs}'
390 silent-start: false
391 successful-message: "PASSED hardware test"
392 failure-message: "FAILED hardware test"
393 unstable-message: "UNSTABLE hardware test"
394 trigger-on:
395 - comment-added-event:
396 approval-category: 'Code-Review'
397 approval-value: '+2'
398 projects:
399 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700400 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700401 branches:
402 - branch-compare-type: PLAIN
403 branch-pattern: 'master'
404
405
406- job-template:
407 name: '{name}'
408 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700409 description: |
410 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700411 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700412 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700413 Created by Andy Bavier, andy@opennetworking.org <br />
414 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700415 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700416 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700417
418 properties:
419 - cord-infra-properties:
420 build-days-to-keep: '{build-days-to-keep}'
421 artifact-num-to-keep: '{artifact-num-to-keep}'
422
423 parameters:
424 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700425 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700426 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700427 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700428
429 - string:
430 name: manifestUrl
431 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
432 description: 'URL to the repo manifest'
433
434 - string:
435 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800436 default: master
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700437 description: 'Name of the repo branch to use'
438
439 - string:
440 name: gerritProject
441 default: '$GERRIT_PROJECT'
442 description: 'Name of the Gerrit project'
443
444 - string:
445 name: gerritChangeNumber
446 default: '$GERRIT_CHANGE_NUMBER'
447 description: 'Changeset number in Gerrit'
448
449 - string:
450 name: gerritPatchsetNumber
451 default: '$GERRIT_PATCHSET_NUMBER'
452 description: 'PatchSet number in Gerrit'
453
454 - string:
455 name: cordRepoUrl
456 default: '{gerrit-server-url}'
457 description: 'The URL of the CORD Project repository'
458
459 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700460 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700461 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700462
463 - string:
464 name: deploymentConfigFile
465 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
466 description: 'Path of deployment config file'
467
468 - string:
469 name: kindVolthaValuesFile
470 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
471 description: 'Path of kind-voltha values override file'
472
473 - string:
474 name: sadisConfigFile
475 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
476 description: 'Path of SADIS config to load'
477
478 - string:
479 name: localConfigDir
480 default: null
481 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
482
483 - string:
484 name: configRepo
485 default: 'pod-configs'
486 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700487
488 - string:
489 name: oltDebVersion
490 default: '{oltDebVersion}'
491 description: 'OLT Software version to install'
492
493 - string:
494 name: branch
495 default: '{branch}'
496
497 - string:
498 name: profile
499 default: '{profile}'
500 description: 'Technology Profile pushed to the ETCD'
501
502 - string:
503 name: notificationEmail
504 default: 'andy@opennetworking.org'
505 description: ''
506
507 - bool:
508 name: reinstallOlt
509 default: true
510 description: "Re-install OLT software"
511
Andy Bavier19c98a22019-11-11 13:57:11 -0700512 - bool:
513 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700514 default: true
515 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700516
Andy Bavier8c11d462019-12-17 08:19:34 -0700517 - string:
518 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700519 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700520 description: 'Arguments to pass to robot'
521
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700522 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700523 concurrent: true
524
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700525 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700526
Andy Bavier1f465592019-11-06 10:03:56 -0700527 triggers:
528 - gerrit:
529 server-name: '{gerrit-server-name}'
530 dependency-jobs: '{dependency-jobs}'
531 silent-start: false
532 successful-message: "PASSED hardware test"
533 failure-message: "FAILED hardware test"
534 unstable-message: "UNSTABLE hardware test"
535 trigger-on:
536 - comment-added-contains-event:
537 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800538 - comment-added-contains-event:
539 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700540 projects:
541 - project-compare-type: REG_EXP
Matteo Scandolo70800a32020-01-06 11:55:27 -0800542 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests|ofagent-py|voltha-onos)$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700543 branches:
544 - branch-compare-type: PLAIN
545 branch-pattern: 'master'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700546
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700547
548- job-template:
549 name: '{name}'
550 id: build_physical_voltha_manual
551 description: |
552 <!-- Managed by Jenkins Job Builder -->
553 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
554 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
555 Created by Andy Bavier, andy@opennetworking.org <br />
556 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700557 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700558 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700559
560 properties:
561 - cord-infra-properties:
562 build-days-to-keep: '{build-days-to-keep}'
563 artifact-num-to-keep: '{artifact-num-to-keep}'
564
565 parameters:
566 - string:
567 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700568 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700569 description: 'Pod management node'
570
571 - string:
572 name: manifestUrl
573 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
574 description: 'URL to the repo manifest'
575
576 - string:
577 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800578 default: master
Andy Bavier06d816c2019-11-19 11:40:48 -0700579 description: 'Name of the repo branch to use (change to $GERRIT_BRANCH if testing a patchset)'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700580
581 - string:
582 name: gerritProject
583 default: '$GERRIT_PROJECT'
584 description: 'Name of the Gerrit project'
585
586 - string:
587 name: gerritChangeNumber
588 default: '$GERRIT_CHANGE_NUMBER'
589 description: 'Changeset number in Gerrit'
590
591 - string:
592 name: gerritPatchsetNumber
593 default: '$GERRIT_PATCHSET_NUMBER'
594 description: 'PatchSet number in Gerrit'
595
596 - string:
597 name: cordRepoUrl
598 default: '{gerrit-server-url}'
599 description: 'The URL of the CORD Project repository'
600
601 - string:
602 name: podName
603 default: '{config-pod}'
604
605 - string:
606 name: deploymentConfigFile
607 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
608 description: 'Path of deployment config file'
609
610 - string:
611 name: kindVolthaValuesFile
612 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
613 description: 'Path of kind-voltha values override file'
614
615 - string:
616 name: sadisConfigFile
617 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
618 description: 'Path of SADIS config to load'
619
620 - string:
621 name: localConfigDir
622 default: null
623 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
624
625 - string:
626 name: configRepo
627 default: 'pod-configs'
628 description: 'A repository containing the config files, will be checked out if specified'
629
630 - string:
631 name: oltDebVersion
632 default: '{oltDebVersion}'
633 description: 'OLT Software version to install'
634
635 - string:
636 name: branch
637 default: '{branch}'
638
639 - string:
640 name: profile
641 default: '{profile}'
642 description: 'Technology Profile pushed to the ETCD'
643
644 - string:
645 name: notificationEmail
646 default: 'andy@opennetworking.org'
647 description: ''
648
649 - bool:
650 name: reinstallOlt
651 default: false
652 description: "Re-install OLT software"
653
654 - bool:
655 name: withPatchset
656 default: false
657 description: "Build with Gerrit patchset"
658
Andy Bavier8c11d462019-12-17 08:19:34 -0700659 - string:
660 name: extraRobotArgs
661 default: '-e bbsim'
662 description: 'Arguments to pass to robot'
663
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700664 project-type: pipeline
665 concurrent: true
666
667 dsl: !include-raw-escape: pipeline/{pipeline-script}