blob: 7e14daa126d565da62001044ea2a85ba0f6ae012 [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: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700110 gerrit-project: ''
111
Kailash8b8de742019-07-30 08:54:51 -0700112 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
Andy Bavier833b78e2019-11-22 17:01:31 -0700130 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700131 description: 'Name of the Jenkins node to run the job on'
132
133 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700134 name: extraHelmFlags
Andy Bavierad0b2bd2020-03-18 08:47:18 -0700135 default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700136 description: 'Helm flags to pass to ./voltha up'
137
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700138 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700139 name: makeTarget
140 default: '{make-target}'
141 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700142
Andy Bavier4c8b3232019-11-22 16:17:47 -0700143 - string:
144 name: manifestUrl
145 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
146 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
147
148 - string:
149 name: manifestBranch
150 default: '{code-branch}'
151 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
152
Andy Bavier3708d072019-12-10 15:22:18 -0700153 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700154 name: gerritProject
155 default: '{gerrit-project}'
156 description: 'Name of the Gerrit project'
157
158 - string:
159 name: gerritChangeNumber
160 default: ''
161 description: 'Changeset number in Gerrit'
162
163 - string:
164 name: gerritPatchsetNumber
165 default: ''
166 description: 'PatchSet number in Gerrit'
167
168 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700169 name: testRuns
170 default: '{test-runs}'
171 description: 'How many times to repeat the tests'
172
173 - string:
174 name: extraRobotArgs
175 default: '{robot-args}'
176 description: 'Arguments to pass to robot'
177
178
Kailash8b8de742019-07-30 08:54:51 -0700179 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700180 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700181
Zack Williamsb3292082019-10-11 17:15:18 -0700182 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700183
184 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700185 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700186 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700187 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700188
189- job-template:
190 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800191 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavierad0b2bd2020-03-18 08:47:18 -0700192 extra-helm-flags: ''
Andy Bavierb99c3d32020-02-18 11:14:17 -0700193 skip-vote: false
Kailashaad71012019-08-27 10:36:53 -0700194
195 description: |
196 <!-- Managed by Jenkins Job Builder -->
197 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
198 E2E Validation for Voltha 2.X
199
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 wrappers:
206 - lf-infra-wrappers:
207 build-timeout: '{build-timeout}'
208 jenkins-ssh-credential: '{jenkins-ssh-credential}'
209
210 parameters:
211 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700212 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700213 default: 'ubuntu16.04-basebuild-4c-8g'
214 description: 'Name of the Jenkins node to run the job on'
215
216 - string:
217 name: manifestUrl
218 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
219 description: 'URL to the repo manifest'
220
221 - string:
hwchiu14f97852019-10-08 10:51:11 -0700222 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800223 default: 'master'
hwchiu14f97852019-10-08 10:51:11 -0700224 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700225
226 - string:
hwchiu14f97852019-10-08 10:51:11 -0700227 name: gerritProject
228 default: '$GERRIT_PROJECT'
229 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700230
231 - string:
hwchiu14f97852019-10-08 10:51:11 -0700232 name: gerritChangeNumber
233 default: '$GERRIT_CHANGE_NUMBER'
234 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700235
236 - string:
hwchiu14f97852019-10-08 10:51:11 -0700237 name: gerritPatchsetNumber
238 default: '$GERRIT_PATCHSET_NUMBER'
239 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700240
241 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700242 name: extraHelmFlags
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700243 default: '{extra-helm-flags}'
Andy Bavierbedd0392019-10-16 13:58:18 -0700244 description: 'Helm flags to pass to ./voltha up'
245
Kailashaad71012019-08-27 10:36:53 -0700246 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700247 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700248
Zack Williamsb3292082019-10-11 17:15:18 -0700249 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700250
251 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700252 - gerrit:
253 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700254 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700255 silent-start: true
256 trigger-on:
257 - patchset-created-event:
258 exclude-drafts: true
259 exclude-trivial-rebase: false
260 exclude-no-code-change: true
261 - draft-published-event
262 - comment-added-contains-event:
263 comment-contains-value: '(?i)^.*recheck$'
264 projects:
265 - project-compare-type: REG_EXP
266 project-pattern: '^{project}$'
267 branches:
268 - branch-compare-type: REG_EXP
Andy Bavier204efab2020-02-19 10:21:45 -0700269 branch-pattern: '{branch-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700270 file-paths:
271 - compare-type: REG_EXP
272 pattern: '{all-files-regexp}'
273 skip-vote:
Andy Baviere2e3b542020-02-19 15:48:42 -0700274 successful: '{skip-vote}'
275 failed: '{skip-vote}'
276 unstable: '{skip-vote}'
277 notbuilt: '{skip-vote}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700278
279# POD Per Patchset Pipeline Jobs
280
281- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700282 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700283 id: verify_physical_voltha_patchset_auto
284 description: |
285 <!-- Managed by Jenkins Job Builder -->
286 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
287 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
288 Created by Andy Bavier, andy@opennetworking.org <br />
289 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700290 sandbox: true
291 pipeline-script: 'voltha-physical-build-and-tests.groovy'
292
293 properties:
294 - cord-infra-properties:
295 build-days-to-keep: '{build-days-to-keep}'
296 artifact-num-to-keep: '{artifact-num-to-keep}'
297
298 parameters:
299 - string:
300 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700301 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700302 description: 'Pod management node'
303
304 - string:
305 name: manifestUrl
306 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
307 description: 'URL to the repo manifest'
308
309 - string:
310 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800311 default: master
Andy Bavier51ba7e82019-12-17 11:01:01 -0700312 description: 'Name of the repo branch to use'
313
314 - string:
315 name: gerritProject
316 default: '$GERRIT_PROJECT'
317 description: 'Name of the Gerrit project'
318
319 - string:
320 name: gerritChangeNumber
321 default: '$GERRIT_CHANGE_NUMBER'
322 description: 'Changeset number in Gerrit'
323
324 - string:
325 name: gerritPatchsetNumber
326 default: '$GERRIT_PATCHSET_NUMBER'
327 description: 'PatchSet number in Gerrit'
328
329 - string:
330 name: cordRepoUrl
331 default: '{gerrit-server-url}'
332 description: 'The URL of the CORD Project repository'
333
334 - string:
335 name: podName
336 default: '{config-pod}'
337
338 - string:
339 name: deploymentConfigFile
340 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
341 description: 'Path of deployment config file'
342
343 - string:
344 name: kindVolthaValuesFile
345 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
346 description: 'Path of kind-voltha values override file'
347
348 - string:
349 name: sadisConfigFile
350 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
351 description: 'Path of SADIS config to load'
352
353 - string:
354 name: localConfigDir
355 default: null
356 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
357
358 - string:
359 name: configRepo
360 default: 'pod-configs'
361 description: 'A repository containing the config files, will be checked out if specified'
362
363 - string:
364 name: oltDebVersion
365 default: '{oltDebVersion}'
366 description: 'OLT Software version to install'
367
368 - string:
369 name: branch
370 default: '{branch}'
371
372 - string:
373 name: profile
374 default: '{profile}'
375 description: 'Technology Profile pushed to the ETCD'
376
377 - string:
378 name: notificationEmail
379 default: 'andy@opennetworking.org'
380 description: ''
381
382 - bool:
383 name: reinstallOlt
384 default: true
385 description: "Re-install OLT software"
386
387 - bool:
388 name: withPatchset
389 default: true
390 description: "Build with Gerrit patchset"
391
392 - string:
393 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700394 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700395 description: 'Arguments to pass to robot'
396
397 project-type: pipeline
398 concurrent: true
399
400 dsl: !include-raw-escape: pipeline/{pipeline-script}
401
402 triggers:
403 - gerrit:
404 server-name: '{gerrit-server-name}'
405 dependency-jobs: '{dependency-jobs}'
406 silent-start: false
407 successful-message: "PASSED hardware test"
408 failure-message: "FAILED hardware test"
409 unstable-message: "UNSTABLE hardware test"
410 trigger-on:
411 - comment-added-event:
412 approval-category: 'Code-Review'
413 approval-value: '+2'
414 projects:
415 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700416 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700417 branches:
418 - branch-compare-type: PLAIN
419 branch-pattern: 'master'
420
421
422- job-template:
423 name: '{name}'
424 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700425 description: |
426 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700427 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700428 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700429 Created by Andy Bavier, andy@opennetworking.org <br />
430 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700431 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700432 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700433
434 properties:
435 - cord-infra-properties:
436 build-days-to-keep: '{build-days-to-keep}'
437 artifact-num-to-keep: '{artifact-num-to-keep}'
438
439 parameters:
440 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700441 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700442 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700443 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700444
445 - string:
446 name: manifestUrl
447 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
448 description: 'URL to the repo manifest'
449
450 - string:
451 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800452 default: master
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700453 description: 'Name of the repo branch to use'
454
455 - string:
456 name: gerritProject
457 default: '$GERRIT_PROJECT'
458 description: 'Name of the Gerrit project'
459
460 - string:
461 name: gerritChangeNumber
462 default: '$GERRIT_CHANGE_NUMBER'
463 description: 'Changeset number in Gerrit'
464
465 - string:
466 name: gerritPatchsetNumber
467 default: '$GERRIT_PATCHSET_NUMBER'
468 description: 'PatchSet number in Gerrit'
469
470 - string:
471 name: cordRepoUrl
472 default: '{gerrit-server-url}'
473 description: 'The URL of the CORD Project repository'
474
475 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700476 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700477 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700478
479 - string:
480 name: deploymentConfigFile
481 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
482 description: 'Path of deployment config file'
483
484 - string:
485 name: kindVolthaValuesFile
486 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
487 description: 'Path of kind-voltha values override file'
488
489 - string:
490 name: sadisConfigFile
491 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
492 description: 'Path of SADIS config to load'
493
494 - string:
495 name: localConfigDir
496 default: null
497 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
498
499 - string:
500 name: configRepo
501 default: 'pod-configs'
502 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700503
504 - string:
505 name: oltDebVersion
506 default: '{oltDebVersion}'
507 description: 'OLT Software version to install'
508
509 - string:
510 name: branch
511 default: '{branch}'
512
513 - string:
514 name: profile
515 default: '{profile}'
516 description: 'Technology Profile pushed to the ETCD'
517
518 - string:
519 name: notificationEmail
520 default: 'andy@opennetworking.org'
521 description: ''
522
523 - bool:
524 name: reinstallOlt
525 default: true
526 description: "Re-install OLT software"
527
Andy Bavier19c98a22019-11-11 13:57:11 -0700528 - bool:
529 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700530 default: true
531 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700532
Andy Bavier8c11d462019-12-17 08:19:34 -0700533 - string:
534 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700535 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700536 description: 'Arguments to pass to robot'
537
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700538 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700539 concurrent: true
540
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700541 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700542
Andy Bavier1f465592019-11-06 10:03:56 -0700543 triggers:
544 - gerrit:
545 server-name: '{gerrit-server-name}'
546 dependency-jobs: '{dependency-jobs}'
547 silent-start: false
548 successful-message: "PASSED hardware test"
549 failure-message: "FAILED hardware test"
550 unstable-message: "UNSTABLE hardware test"
551 trigger-on:
552 - comment-added-contains-event:
553 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800554 - comment-added-contains-event:
555 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700556 projects:
557 - project-compare-type: REG_EXP
Matteo Scandolo70800a32020-01-06 11:55:27 -0800558 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 -0700559 branches:
560 - branch-compare-type: PLAIN
561 branch-pattern: 'master'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700562
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700563
564- job-template:
565 name: '{name}'
566 id: build_physical_voltha_manual
567 description: |
568 <!-- Managed by Jenkins Job Builder -->
569 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
570 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
571 Created by Andy Bavier, andy@opennetworking.org <br />
572 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700573 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700574 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700575
576 properties:
577 - cord-infra-properties:
578 build-days-to-keep: '{build-days-to-keep}'
579 artifact-num-to-keep: '{artifact-num-to-keep}'
580
581 parameters:
582 - string:
583 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700584 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700585 description: 'Pod management node'
586
587 - string:
588 name: manifestUrl
589 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
590 description: 'URL to the repo manifest'
591
592 - string:
593 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800594 default: master
Andy Bavier06d816c2019-11-19 11:40:48 -0700595 description: 'Name of the repo branch to use (change to $GERRIT_BRANCH if testing a patchset)'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700596
597 - string:
598 name: gerritProject
599 default: '$GERRIT_PROJECT'
600 description: 'Name of the Gerrit project'
601
602 - string:
603 name: gerritChangeNumber
604 default: '$GERRIT_CHANGE_NUMBER'
605 description: 'Changeset number in Gerrit'
606
607 - string:
608 name: gerritPatchsetNumber
609 default: '$GERRIT_PATCHSET_NUMBER'
610 description: 'PatchSet number in Gerrit'
611
612 - string:
613 name: cordRepoUrl
614 default: '{gerrit-server-url}'
615 description: 'The URL of the CORD Project repository'
616
617 - string:
618 name: podName
619 default: '{config-pod}'
620
621 - string:
622 name: deploymentConfigFile
623 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
624 description: 'Path of deployment config file'
625
626 - string:
627 name: kindVolthaValuesFile
628 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
629 description: 'Path of kind-voltha values override file'
630
631 - string:
632 name: sadisConfigFile
633 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
634 description: 'Path of SADIS config to load'
635
636 - string:
637 name: localConfigDir
638 default: null
639 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
640
641 - string:
642 name: configRepo
643 default: 'pod-configs'
644 description: 'A repository containing the config files, will be checked out if specified'
645
646 - string:
647 name: oltDebVersion
648 default: '{oltDebVersion}'
649 description: 'OLT Software version to install'
650
651 - string:
652 name: branch
653 default: '{branch}'
654
655 - string:
656 name: profile
657 default: '{profile}'
658 description: 'Technology Profile pushed to the ETCD'
659
660 - string:
661 name: notificationEmail
662 default: 'andy@opennetworking.org'
663 description: ''
664
665 - bool:
666 name: reinstallOlt
667 default: false
668 description: "Re-install OLT software"
669
670 - bool:
671 name: withPatchset
672 default: false
673 description: "Build with Gerrit patchset"
674
Andy Bavier8c11d462019-12-17 08:19:34 -0700675 - string:
676 name: extraRobotArgs
677 default: '-e bbsim'
678 description: 'Arguments to pass to robot'
679
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700680 project-type: pipeline
681 concurrent: true
682
683 dsl: !include-raw-escape: pipeline/{pipeline-script}