blob: 1dff600f00380be02372b883fac728d38cc8fcd8 [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
113 description: |
114 <!-- Managed by Jenkins Job Builder -->
115 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
116 E2E Validation for Voltha 2.X
117
118 properties:
119 - cord-infra-properties:
120 build-days-to-keep: '{build-days-to-keep}'
121 artifact-num-to-keep: '{artifact-num-to-keep}'
122
123 wrappers:
124 - lf-infra-wrappers:
125 build-timeout: '{build-timeout}'
126 jenkins-ssh-credential: '{jenkins-ssh-credential}'
127
128 parameters:
129 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700130 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700131 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700132 description: 'Name of the Jenkins node to run the job on'
133
134 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700135 name: extraHelmFlags
Andy Bavier46c08a72020-02-06 14:07:48 -0700136 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 -0700137 description: 'Helm flags to pass to ./voltha up'
138
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700139 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700140 name: makeTarget
141 default: '{make-target}'
142 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700143
Andy Bavier4c8b3232019-11-22 16:17:47 -0700144 - string:
145 name: manifestUrl
146 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
147 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
148
149 - string:
150 name: manifestBranch
151 default: '{code-branch}'
152 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
153
Andy Bavier3708d072019-12-10 15:22:18 -0700154 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700155 name: gerritProject
156 default: '{gerrit-project}'
157 description: 'Name of the Gerrit project'
158
159 - string:
160 name: gerritChangeNumber
161 default: ''
162 description: 'Changeset number in Gerrit'
163
164 - string:
165 name: gerritPatchsetNumber
166 default: ''
167 description: 'PatchSet number in Gerrit'
168
169 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700170 name: testRuns
171 default: '{test-runs}'
172 description: 'How many times to repeat the tests'
173
174 - string:
175 name: extraRobotArgs
176 default: '{robot-args}'
177 description: 'Arguments to pass to robot'
178
179
Kailash8b8de742019-07-30 08:54:51 -0700180 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700181 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700182
Zack Williamsb3292082019-10-11 17:15:18 -0700183 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700184
185 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700186 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700187 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700188 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700189
190- job-template:
191 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800192 name: 'verify_{project}_sanity-test{name-extension}'
Matteo Scandolo569bad92020-01-16 11:35:15 -0800193 extra-helm-flags: ''
Andy Bavierb99c3d32020-02-18 11:14:17 -0700194 skip-vote: false
Kailashaad71012019-08-27 10:36:53 -0700195
196 description: |
197 <!-- Managed by Jenkins Job Builder -->
198 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
199 E2E Validation for Voltha 2.X
200
201 properties:
202 - cord-infra-properties:
203 build-days-to-keep: '{build-days-to-keep}'
204 artifact-num-to-keep: '{artifact-num-to-keep}'
205
206 wrappers:
207 - lf-infra-wrappers:
208 build-timeout: '{build-timeout}'
209 jenkins-ssh-credential: '{jenkins-ssh-credential}'
210
211 parameters:
212 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700213 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700214 default: 'ubuntu16.04-basebuild-4c-8g'
215 description: 'Name of the Jenkins node to run the job on'
216
217 - string:
218 name: manifestUrl
219 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
220 description: 'URL to the repo manifest'
221
222 - string:
hwchiu14f97852019-10-08 10:51:11 -0700223 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800224 default: 'master'
hwchiu14f97852019-10-08 10:51:11 -0700225 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700226
227 - string:
hwchiu14f97852019-10-08 10:51:11 -0700228 name: gerritProject
229 default: '$GERRIT_PROJECT'
230 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700231
232 - string:
hwchiu14f97852019-10-08 10:51:11 -0700233 name: gerritChangeNumber
234 default: '$GERRIT_CHANGE_NUMBER'
235 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700236
237 - string:
hwchiu14f97852019-10-08 10:51:11 -0700238 name: gerritPatchsetNumber
239 default: '$GERRIT_PATCHSET_NUMBER'
240 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700241
242 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700243 name: extraHelmFlags
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700244 default: '{extra-helm-flags}'
Andy Bavierbedd0392019-10-16 13:58:18 -0700245 description: 'Helm flags to pass to ./voltha up'
246
Kailashaad71012019-08-27 10:36:53 -0700247 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700248 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700249
Zack Williamsb3292082019-10-11 17:15:18 -0700250 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700251
252 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700253 - gerrit:
254 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700255 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700256 silent-start: true
257 trigger-on:
258 - patchset-created-event:
259 exclude-drafts: true
260 exclude-trivial-rebase: false
261 exclude-no-code-change: true
262 - draft-published-event
263 - comment-added-contains-event:
264 comment-contains-value: '(?i)^.*recheck$'
265 projects:
266 - project-compare-type: REG_EXP
267 project-pattern: '^{project}$'
268 branches:
269 - branch-compare-type: REG_EXP
Andy Bavier204efab2020-02-19 10:21:45 -0700270 branch-pattern: '{branch-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700271 file-paths:
272 - compare-type: REG_EXP
273 pattern: '{all-files-regexp}'
274 skip-vote:
Andy Baviere2e3b542020-02-19 15:48:42 -0700275 successful: '{skip-vote}'
276 failed: '{skip-vote}'
277 unstable: '{skip-vote}'
278 notbuilt: '{skip-vote}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700279
280# POD Per Patchset Pipeline Jobs
281
282- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700283 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700284 id: verify_physical_voltha_patchset_auto
285 description: |
286 <!-- Managed by Jenkins Job Builder -->
287 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
288 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
289 Created by Andy Bavier, andy@opennetworking.org <br />
290 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700291 sandbox: true
292 pipeline-script: 'voltha-physical-build-and-tests.groovy'
293
294 properties:
295 - cord-infra-properties:
296 build-days-to-keep: '{build-days-to-keep}'
297 artifact-num-to-keep: '{artifact-num-to-keep}'
298
299 parameters:
300 - string:
301 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700302 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700303 description: 'Pod management node'
304
305 - string:
306 name: manifestUrl
307 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
308 description: 'URL to the repo manifest'
309
310 - string:
311 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800312 default: master
Andy Bavier51ba7e82019-12-17 11:01:01 -0700313 description: 'Name of the repo branch to use'
314
315 - string:
316 name: gerritProject
317 default: '$GERRIT_PROJECT'
318 description: 'Name of the Gerrit project'
319
320 - string:
321 name: gerritChangeNumber
322 default: '$GERRIT_CHANGE_NUMBER'
323 description: 'Changeset number in Gerrit'
324
325 - string:
326 name: gerritPatchsetNumber
327 default: '$GERRIT_PATCHSET_NUMBER'
328 description: 'PatchSet number in Gerrit'
329
330 - string:
331 name: cordRepoUrl
332 default: '{gerrit-server-url}'
333 description: 'The URL of the CORD Project repository'
334
335 - string:
336 name: podName
337 default: '{config-pod}'
338
339 - string:
340 name: deploymentConfigFile
341 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
342 description: 'Path of deployment config file'
343
344 - string:
345 name: kindVolthaValuesFile
346 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
347 description: 'Path of kind-voltha values override file'
348
349 - string:
350 name: sadisConfigFile
351 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
352 description: 'Path of SADIS config to load'
353
354 - string:
355 name: localConfigDir
356 default: null
357 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
358
359 - string:
360 name: configRepo
361 default: 'pod-configs'
362 description: 'A repository containing the config files, will be checked out if specified'
363
364 - string:
365 name: oltDebVersion
366 default: '{oltDebVersion}'
367 description: 'OLT Software version to install'
368
369 - string:
370 name: branch
371 default: '{branch}'
372
373 - string:
374 name: profile
375 default: '{profile}'
376 description: 'Technology Profile pushed to the ETCD'
377
378 - string:
379 name: notificationEmail
380 default: 'andy@opennetworking.org'
381 description: ''
382
383 - bool:
384 name: reinstallOlt
385 default: true
386 description: "Re-install OLT software"
387
388 - bool:
389 name: withPatchset
390 default: true
391 description: "Build with Gerrit patchset"
392
393 - string:
394 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700395 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700396 description: 'Arguments to pass to robot'
397
398 project-type: pipeline
399 concurrent: true
400
401 dsl: !include-raw-escape: pipeline/{pipeline-script}
402
403 triggers:
404 - gerrit:
405 server-name: '{gerrit-server-name}'
406 dependency-jobs: '{dependency-jobs}'
407 silent-start: false
408 successful-message: "PASSED hardware test"
409 failure-message: "FAILED hardware test"
410 unstable-message: "UNSTABLE hardware test"
411 trigger-on:
412 - comment-added-event:
413 approval-category: 'Code-Review'
414 approval-value: '+2'
415 projects:
416 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700417 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700418 branches:
419 - branch-compare-type: PLAIN
420 branch-pattern: 'master'
421
422
423- job-template:
424 name: '{name}'
425 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700426 description: |
427 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700428 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700429 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700430 Created by Andy Bavier, andy@opennetworking.org <br />
431 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700432 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700433 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700434
435 properties:
436 - cord-infra-properties:
437 build-days-to-keep: '{build-days-to-keep}'
438 artifact-num-to-keep: '{artifact-num-to-keep}'
439
440 parameters:
441 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700442 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700443 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700444 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700445
446 - string:
447 name: manifestUrl
448 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
449 description: 'URL to the repo manifest'
450
451 - string:
452 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800453 default: master
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700454 description: 'Name of the repo branch to use'
455
456 - string:
457 name: gerritProject
458 default: '$GERRIT_PROJECT'
459 description: 'Name of the Gerrit project'
460
461 - string:
462 name: gerritChangeNumber
463 default: '$GERRIT_CHANGE_NUMBER'
464 description: 'Changeset number in Gerrit'
465
466 - string:
467 name: gerritPatchsetNumber
468 default: '$GERRIT_PATCHSET_NUMBER'
469 description: 'PatchSet number in Gerrit'
470
471 - string:
472 name: cordRepoUrl
473 default: '{gerrit-server-url}'
474 description: 'The URL of the CORD Project repository'
475
476 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700477 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700478 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700479
480 - string:
481 name: deploymentConfigFile
482 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
483 description: 'Path of deployment config file'
484
485 - string:
486 name: kindVolthaValuesFile
487 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
488 description: 'Path of kind-voltha values override file'
489
490 - string:
491 name: sadisConfigFile
492 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
493 description: 'Path of SADIS config to load'
494
495 - string:
496 name: localConfigDir
497 default: null
498 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
499
500 - string:
501 name: configRepo
502 default: 'pod-configs'
503 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700504
505 - string:
506 name: oltDebVersion
507 default: '{oltDebVersion}'
508 description: 'OLT Software version to install'
509
510 - string:
511 name: branch
512 default: '{branch}'
513
514 - string:
515 name: profile
516 default: '{profile}'
517 description: 'Technology Profile pushed to the ETCD'
518
519 - string:
520 name: notificationEmail
521 default: 'andy@opennetworking.org'
522 description: ''
523
524 - bool:
525 name: reinstallOlt
526 default: true
527 description: "Re-install OLT software"
528
Andy Bavier19c98a22019-11-11 13:57:11 -0700529 - bool:
530 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700531 default: true
532 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700533
Andy Bavier8c11d462019-12-17 08:19:34 -0700534 - string:
535 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700536 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700537 description: 'Arguments to pass to robot'
538
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700539 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700540 concurrent: true
541
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700542 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700543
Andy Bavier1f465592019-11-06 10:03:56 -0700544 triggers:
545 - gerrit:
546 server-name: '{gerrit-server-name}'
547 dependency-jobs: '{dependency-jobs}'
548 silent-start: false
549 successful-message: "PASSED hardware test"
550 failure-message: "FAILED hardware test"
551 unstable-message: "UNSTABLE hardware test"
552 trigger-on:
553 - comment-added-contains-event:
554 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800555 - comment-added-contains-event:
556 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700557 projects:
558 - project-compare-type: REG_EXP
Matteo Scandolo70800a32020-01-06 11:55:27 -0800559 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 -0700560 branches:
561 - branch-compare-type: PLAIN
562 branch-pattern: 'master'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700563
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700564
565- job-template:
566 name: '{name}'
567 id: build_physical_voltha_manual
568 description: |
569 <!-- Managed by Jenkins Job Builder -->
570 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
571 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
572 Created by Andy Bavier, andy@opennetworking.org <br />
573 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700574 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700575 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700576
577 properties:
578 - cord-infra-properties:
579 build-days-to-keep: '{build-days-to-keep}'
580 artifact-num-to-keep: '{artifact-num-to-keep}'
581
582 parameters:
583 - string:
584 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700585 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700586 description: 'Pod management node'
587
588 - string:
589 name: manifestUrl
590 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
591 description: 'URL to the repo manifest'
592
593 - string:
594 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800595 default: master
Andy Bavier06d816c2019-11-19 11:40:48 -0700596 description: 'Name of the repo branch to use (change to $GERRIT_BRANCH if testing a patchset)'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700597
598 - string:
599 name: gerritProject
600 default: '$GERRIT_PROJECT'
601 description: 'Name of the Gerrit project'
602
603 - string:
604 name: gerritChangeNumber
605 default: '$GERRIT_CHANGE_NUMBER'
606 description: 'Changeset number in Gerrit'
607
608 - string:
609 name: gerritPatchsetNumber
610 default: '$GERRIT_PATCHSET_NUMBER'
611 description: 'PatchSet number in Gerrit'
612
613 - string:
614 name: cordRepoUrl
615 default: '{gerrit-server-url}'
616 description: 'The URL of the CORD Project repository'
617
618 - string:
619 name: podName
620 default: '{config-pod}'
621
622 - string:
623 name: deploymentConfigFile
624 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
625 description: 'Path of deployment config file'
626
627 - string:
628 name: kindVolthaValuesFile
629 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
630 description: 'Path of kind-voltha values override file'
631
632 - string:
633 name: sadisConfigFile
634 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
635 description: 'Path of SADIS config to load'
636
637 - string:
638 name: localConfigDir
639 default: null
640 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
641
642 - string:
643 name: configRepo
644 default: 'pod-configs'
645 description: 'A repository containing the config files, will be checked out if specified'
646
647 - string:
648 name: oltDebVersion
649 default: '{oltDebVersion}'
650 description: 'OLT Software version to install'
651
652 - string:
653 name: branch
654 default: '{branch}'
655
656 - string:
657 name: profile
658 default: '{profile}'
659 description: 'Technology Profile pushed to the ETCD'
660
661 - string:
662 name: notificationEmail
663 default: 'andy@opennetworking.org'
664 description: ''
665
666 - bool:
667 name: reinstallOlt
668 default: false
669 description: "Re-install OLT software"
670
671 - bool:
672 name: withPatchset
673 default: false
674 description: "Build with Gerrit patchset"
675
Andy Bavier8c11d462019-12-17 08:19:34 -0700676 - string:
677 name: extraRobotArgs
678 default: '-e bbsim'
679 description: 'Arguments to pass to robot'
680
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700681 project-type: pipeline
682 concurrent: true
683
684 dsl: !include-raw-escape: pipeline/{pipeline-script}