blob: 3aeb284e3e69617917f1f9a17f1a65408d6a2486 [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':
Andy Bavier4313d102020-03-23 09:21:53 -070031 name: 'periodic-voltha-errorscenarios-test'
32 build-node: 'qct-pod4-node2'
33 default-image-tag: 'master'
34 code-branch: 'master'
35 make-target: bbsim-errorscenarios
36 onus: 1
37 pons: 1
38 time-trigger: "H H/6 * * *"
39
40 - 'voltha-periodic-test':
hwchiufdc49242019-11-18 16:37:22 -080041 name: 'periodic-voltha-system-test'
42 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080043 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiufdc49242019-11-18 16:37:22 -080044 default-image-tag: 'master'
hwchiuc9189b72019-12-02 15:12:29 -080045 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080046 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080047 onus: 2
48 pons: 2
49 time-trigger: "H H/12 * * *"
50
51 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070052 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070053 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070054 build-node: 'qct-pod4-node2'
55 default-image-tag: 'master'
56 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070057 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070058 onus: 1
59 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070060 test-runs: 5
61 time-trigger: "H H/3 * * *"
62
63 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -070064 name: 'periodic-voltha-scale-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070065 build-node: 'qct-pod4-node2'
Andy Bavier218385e2019-11-13 09:51:38 -070066 default-image-tag: 'master'
Andy Bavier4c8b3232019-11-22 16:17:47 -070067 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070068 make-target: scale-multi-kind
69 onus: 2
70 pons: 8
71 time-trigger: "H H/3 * * *"
Kailashaad71012019-08-27 10:36:53 -070072
Andy Bavier0d1d63e2020-03-03 13:52:02 -070073 - 'voltha-periodic-test':
74 name: 'periodic-voltha-alarm-test'
75 build-node: 'qct-pod4-node2'
76 default-image-tag: 'master'
77 code-branch: 'master'
78 make-target: bbsim-alarms-kind
79 onus: 1
80 pons: 1
81 time-trigger: "H H/3 * * *"
82
Andy Bavierbf68c5e2019-10-25 15:05:28 -070083 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -070084 - 'verify_physical_voltha_patchset_auto':
85 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -070086 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -070087 config-pod: 'tucson-pod'
88 branch: 'master'
89 oltDebVersion: 'openolt_asfvolt16.deb'
90 profile: 'Default'
91 withPatchset: true
92
93 # Per-patchset Pod builds on Tucson pod
94 - 'verify_physical_voltha_patchset_manual':
95 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -070096 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070097 config-pod: 'tucson-pod'
98 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070099 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700100 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700101 withPatchset: true
102
103 # Manual build job for Tucson pod
104 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700105 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700106 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700107 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700108 config-pod: 'tucson-pod'
109 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -0700110 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700111 profile: 'Default'
112 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700113
Kailash8b8de742019-07-30 08:54:51 -0700114- job-template:
Kailashaad71012019-08-27 10:36:53 -0700115 id: 'voltha-periodic-test'
116 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700117 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700118 test-runs: 1
119 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700120 gerrit-project: ''
121
Kailash8b8de742019-07-30 08:54:51 -0700122 description: |
123 <!-- Managed by Jenkins Job Builder -->
124 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
125 E2E Validation for Voltha 2.X
126
127 properties:
128 - cord-infra-properties:
129 build-days-to-keep: '{build-days-to-keep}'
130 artifact-num-to-keep: '{artifact-num-to-keep}'
131
132 wrappers:
133 - lf-infra-wrappers:
134 build-timeout: '{build-timeout}'
135 jenkins-ssh-credential: '{jenkins-ssh-credential}'
136
137 parameters:
138 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700139 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700140 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700141 description: 'Name of the Jenkins node to run the job on'
142
143 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700144 name: extraHelmFlags
Andy Bavierad0b2bd2020-03-18 08:47:18 -0700145 default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700146 description: 'Helm flags to pass to ./voltha up'
147
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700148 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700149 name: makeTarget
150 default: '{make-target}'
151 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700152
Andy Bavier4c8b3232019-11-22 16:17:47 -0700153 - string:
154 name: manifestUrl
155 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
156 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
157
158 - string:
159 name: manifestBranch
160 default: '{code-branch}'
161 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
162
Andy Bavier3708d072019-12-10 15:22:18 -0700163 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700164 name: gerritProject
165 default: '{gerrit-project}'
166 description: 'Name of the Gerrit project'
167
168 - string:
169 name: gerritChangeNumber
170 default: ''
171 description: 'Changeset number in Gerrit'
172
173 - string:
174 name: gerritPatchsetNumber
175 default: ''
176 description: 'PatchSet number in Gerrit'
177
178 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700179 name: testRuns
180 default: '{test-runs}'
181 description: 'How many times to repeat the tests'
182
183 - string:
184 name: extraRobotArgs
185 default: '{robot-args}'
186 description: 'Arguments to pass to robot'
187
188
Kailash8b8de742019-07-30 08:54:51 -0700189 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700190 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700191
Zack Williamsb3292082019-10-11 17:15:18 -0700192 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700193
194 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700195 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700196 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700197 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700198
199- job-template:
200 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800201 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavierad0b2bd2020-03-18 08:47:18 -0700202 extra-helm-flags: ''
Andy Bavierb99c3d32020-02-18 11:14:17 -0700203 skip-vote: false
Kailashaad71012019-08-27 10:36:53 -0700204
205 description: |
206 <!-- Managed by Jenkins Job Builder -->
207 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
208 E2E Validation for Voltha 2.X
209
210 properties:
211 - cord-infra-properties:
212 build-days-to-keep: '{build-days-to-keep}'
213 artifact-num-to-keep: '{artifact-num-to-keep}'
214
215 wrappers:
216 - lf-infra-wrappers:
217 build-timeout: '{build-timeout}'
218 jenkins-ssh-credential: '{jenkins-ssh-credential}'
219
220 parameters:
221 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700222 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700223 default: 'ubuntu16.04-basebuild-4c-8g'
224 description: 'Name of the Jenkins node to run the job on'
225
226 - string:
227 name: manifestUrl
228 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
229 description: 'URL to the repo manifest'
230
231 - string:
hwchiu14f97852019-10-08 10:51:11 -0700232 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800233 default: 'master'
hwchiu14f97852019-10-08 10:51:11 -0700234 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700235
236 - string:
hwchiu14f97852019-10-08 10:51:11 -0700237 name: gerritProject
238 default: '$GERRIT_PROJECT'
239 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700240
241 - string:
hwchiu14f97852019-10-08 10:51:11 -0700242 name: gerritChangeNumber
243 default: '$GERRIT_CHANGE_NUMBER'
244 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700245
246 - string:
hwchiu14f97852019-10-08 10:51:11 -0700247 name: gerritPatchsetNumber
248 default: '$GERRIT_PATCHSET_NUMBER'
249 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700250
251 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700252 name: extraHelmFlags
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700253 default: '{extra-helm-flags}'
Andy Bavierbedd0392019-10-16 13:58:18 -0700254 description: 'Helm flags to pass to ./voltha up'
255
Kailashaad71012019-08-27 10:36:53 -0700256 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700257 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700258
Zack Williamsb3292082019-10-11 17:15:18 -0700259 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700260
261 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700262 - gerrit:
263 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700264 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700265 silent-start: true
266 trigger-on:
267 - patchset-created-event:
268 exclude-drafts: true
269 exclude-trivial-rebase: false
270 exclude-no-code-change: true
271 - draft-published-event
272 - comment-added-contains-event:
273 comment-contains-value: '(?i)^.*recheck$'
274 projects:
275 - project-compare-type: REG_EXP
276 project-pattern: '^{project}$'
277 branches:
278 - branch-compare-type: REG_EXP
Andy Bavier204efab2020-02-19 10:21:45 -0700279 branch-pattern: '{branch-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700280 file-paths:
281 - compare-type: REG_EXP
282 pattern: '{all-files-regexp}'
283 skip-vote:
Andy Baviere2e3b542020-02-19 15:48:42 -0700284 successful: '{skip-vote}'
285 failed: '{skip-vote}'
286 unstable: '{skip-vote}'
287 notbuilt: '{skip-vote}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700288
289# POD Per Patchset Pipeline Jobs
290
291- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700292 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700293 id: verify_physical_voltha_patchset_auto
294 description: |
295 <!-- Managed by Jenkins Job Builder -->
296 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
297 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
298 Created by Andy Bavier, andy@opennetworking.org <br />
299 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700300 sandbox: true
301 pipeline-script: 'voltha-physical-build-and-tests.groovy'
302
303 properties:
304 - cord-infra-properties:
305 build-days-to-keep: '{build-days-to-keep}'
306 artifact-num-to-keep: '{artifact-num-to-keep}'
307
308 parameters:
309 - string:
310 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700311 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700312 description: 'Pod management node'
313
314 - string:
315 name: manifestUrl
316 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
317 description: 'URL to the repo manifest'
318
319 - string:
320 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800321 default: master
Andy Bavier51ba7e82019-12-17 11:01:01 -0700322 description: 'Name of the repo branch to use'
323
324 - string:
325 name: gerritProject
326 default: '$GERRIT_PROJECT'
327 description: 'Name of the Gerrit project'
328
329 - string:
330 name: gerritChangeNumber
331 default: '$GERRIT_CHANGE_NUMBER'
332 description: 'Changeset number in Gerrit'
333
334 - string:
335 name: gerritPatchsetNumber
336 default: '$GERRIT_PATCHSET_NUMBER'
337 description: 'PatchSet number in Gerrit'
338
339 - string:
340 name: cordRepoUrl
341 default: '{gerrit-server-url}'
342 description: 'The URL of the CORD Project repository'
343
344 - string:
345 name: podName
346 default: '{config-pod}'
347
348 - string:
349 name: deploymentConfigFile
350 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
351 description: 'Path of deployment config file'
352
353 - string:
354 name: kindVolthaValuesFile
355 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
356 description: 'Path of kind-voltha values override file'
357
358 - string:
359 name: sadisConfigFile
360 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
361 description: 'Path of SADIS config to load'
362
363 - string:
364 name: localConfigDir
365 default: null
366 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
367
368 - string:
369 name: configRepo
370 default: 'pod-configs'
371 description: 'A repository containing the config files, will be checked out if specified'
372
373 - string:
374 name: oltDebVersion
375 default: '{oltDebVersion}'
376 description: 'OLT Software version to install'
377
378 - string:
379 name: branch
380 default: '{branch}'
381
382 - string:
383 name: profile
384 default: '{profile}'
385 description: 'Technology Profile pushed to the ETCD'
386
387 - string:
388 name: notificationEmail
389 default: 'andy@opennetworking.org'
390 description: ''
391
392 - bool:
393 name: reinstallOlt
394 default: true
395 description: "Re-install OLT software"
396
397 - bool:
398 name: withPatchset
399 default: true
400 description: "Build with Gerrit patchset"
401
402 - string:
403 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700404 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700405 description: 'Arguments to pass to robot'
406
407 project-type: pipeline
408 concurrent: true
409
410 dsl: !include-raw-escape: pipeline/{pipeline-script}
411
412 triggers:
413 - gerrit:
414 server-name: '{gerrit-server-name}'
415 dependency-jobs: '{dependency-jobs}'
416 silent-start: false
417 successful-message: "PASSED hardware test"
418 failure-message: "FAILED hardware test"
419 unstable-message: "UNSTABLE hardware test"
420 trigger-on:
421 - comment-added-event:
422 approval-category: 'Code-Review'
423 approval-value: '+2'
424 projects:
425 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700426 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700427 branches:
428 - branch-compare-type: PLAIN
429 branch-pattern: 'master'
430
431
432- job-template:
433 name: '{name}'
434 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700435 description: |
436 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700437 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700438 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700439 Created by Andy Bavier, andy@opennetworking.org <br />
440 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700441 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700442 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700443
444 properties:
445 - cord-infra-properties:
446 build-days-to-keep: '{build-days-to-keep}'
447 artifact-num-to-keep: '{artifact-num-to-keep}'
448
449 parameters:
450 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700451 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700452 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700453 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700454
455 - string:
456 name: manifestUrl
457 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
458 description: 'URL to the repo manifest'
459
460 - string:
461 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800462 default: master
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700463 description: 'Name of the repo branch to use'
464
465 - string:
466 name: gerritProject
467 default: '$GERRIT_PROJECT'
468 description: 'Name of the Gerrit project'
469
470 - string:
471 name: gerritChangeNumber
472 default: '$GERRIT_CHANGE_NUMBER'
473 description: 'Changeset number in Gerrit'
474
475 - string:
476 name: gerritPatchsetNumber
477 default: '$GERRIT_PATCHSET_NUMBER'
478 description: 'PatchSet number in Gerrit'
479
480 - string:
481 name: cordRepoUrl
482 default: '{gerrit-server-url}'
483 description: 'The URL of the CORD Project repository'
484
485 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700486 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700487 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700488
489 - string:
490 name: deploymentConfigFile
491 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
492 description: 'Path of deployment config file'
493
494 - string:
495 name: kindVolthaValuesFile
496 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
497 description: 'Path of kind-voltha values override file'
498
499 - string:
500 name: sadisConfigFile
501 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
502 description: 'Path of SADIS config to load'
503
504 - string:
505 name: localConfigDir
506 default: null
507 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
508
509 - string:
510 name: configRepo
511 default: 'pod-configs'
512 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700513
514 - string:
515 name: oltDebVersion
516 default: '{oltDebVersion}'
517 description: 'OLT Software version to install'
518
519 - string:
520 name: branch
521 default: '{branch}'
522
523 - string:
524 name: profile
525 default: '{profile}'
526 description: 'Technology Profile pushed to the ETCD'
527
528 - string:
529 name: notificationEmail
530 default: 'andy@opennetworking.org'
531 description: ''
532
533 - bool:
534 name: reinstallOlt
535 default: true
536 description: "Re-install OLT software"
537
Andy Bavier19c98a22019-11-11 13:57:11 -0700538 - bool:
539 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700540 default: true
541 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700542
Andy Bavier8c11d462019-12-17 08:19:34 -0700543 - string:
544 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700545 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700546 description: 'Arguments to pass to robot'
547
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700548 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700549 concurrent: true
550
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700551 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700552
Andy Bavier1f465592019-11-06 10:03:56 -0700553 triggers:
554 - gerrit:
555 server-name: '{gerrit-server-name}'
556 dependency-jobs: '{dependency-jobs}'
557 silent-start: false
558 successful-message: "PASSED hardware test"
559 failure-message: "FAILED hardware test"
560 unstable-message: "UNSTABLE hardware test"
561 trigger-on:
562 - comment-added-contains-event:
563 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800564 - comment-added-contains-event:
565 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700566 projects:
567 - project-compare-type: REG_EXP
Matteo Scandolo70800a32020-01-06 11:55:27 -0800568 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 -0700569 branches:
570 - branch-compare-type: PLAIN
571 branch-pattern: 'master'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700572
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700573
574- job-template:
575 name: '{name}'
576 id: build_physical_voltha_manual
577 description: |
578 <!-- Managed by Jenkins Job Builder -->
579 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
580 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
581 Created by Andy Bavier, andy@opennetworking.org <br />
582 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700583 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700584 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700585
586 properties:
587 - cord-infra-properties:
588 build-days-to-keep: '{build-days-to-keep}'
589 artifact-num-to-keep: '{artifact-num-to-keep}'
590
591 parameters:
592 - string:
593 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700594 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700595 description: 'Pod management node'
596
597 - string:
598 name: manifestUrl
599 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
600 description: 'URL to the repo manifest'
601
602 - string:
603 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800604 default: master
Andy Bavier06d816c2019-11-19 11:40:48 -0700605 description: 'Name of the repo branch to use (change to $GERRIT_BRANCH if testing a patchset)'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700606
607 - string:
608 name: gerritProject
609 default: '$GERRIT_PROJECT'
610 description: 'Name of the Gerrit project'
611
612 - string:
613 name: gerritChangeNumber
614 default: '$GERRIT_CHANGE_NUMBER'
615 description: 'Changeset number in Gerrit'
616
617 - string:
618 name: gerritPatchsetNumber
619 default: '$GERRIT_PATCHSET_NUMBER'
620 description: 'PatchSet number in Gerrit'
621
622 - string:
623 name: cordRepoUrl
624 default: '{gerrit-server-url}'
625 description: 'The URL of the CORD Project repository'
626
627 - string:
628 name: podName
629 default: '{config-pod}'
630
631 - string:
632 name: deploymentConfigFile
633 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
634 description: 'Path of deployment config file'
635
636 - string:
637 name: kindVolthaValuesFile
638 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
639 description: 'Path of kind-voltha values override file'
640
641 - string:
642 name: sadisConfigFile
643 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
644 description: 'Path of SADIS config to load'
645
646 - string:
647 name: localConfigDir
648 default: null
649 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
650
651 - string:
652 name: configRepo
653 default: 'pod-configs'
654 description: 'A repository containing the config files, will be checked out if specified'
655
656 - string:
657 name: oltDebVersion
658 default: '{oltDebVersion}'
659 description: 'OLT Software version to install'
660
661 - string:
662 name: branch
663 default: '{branch}'
664
665 - string:
666 name: profile
667 default: '{profile}'
668 description: 'Technology Profile pushed to the ETCD'
669
670 - string:
671 name: notificationEmail
672 default: 'andy@opennetworking.org'
673 description: ''
674
675 - bool:
676 name: reinstallOlt
677 default: false
678 description: "Re-install OLT software"
679
680 - bool:
681 name: withPatchset
682 default: false
683 description: "Build with Gerrit patchset"
684
Andy Bavier8c11d462019-12-17 08:19:34 -0700685 - string:
686 name: extraRobotArgs
687 default: '-e bbsim'
688 description: 'Arguments to pass to robot'
689
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700690 project-type: pipeline
691 concurrent: true
692
693 dsl: !include-raw-escape: pipeline/{pipeline-script}