blob: 6dac95170bc005ddcb84537ba6cf93103df43e58 [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}'
Zack Williams03ebb272020-03-27 09:42:33 -07008 manualBranch: ''
Kailash8b8de742019-07-30 08:54:51 -07009
10 jobs:
hwchiu14f97852019-10-08 10:51:11 -070011 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -070012 name: 'periodic-voltha-sanity-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070013 build-node: 'qct-pod4-node2'
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
Andy Bavier10926f12020-03-27 16:53:43 -070018 time-trigger: "H H/6 * * *"
19
20 - 'voltha-periodic-test':
21 name: 'periodic-voltha-sanity-test-2.3'
22 build-node: 'qct-pod4-node2'
23 code-branch: 'voltha-2.3'
24 make-target: sanity-multi-kind
25 onus: 2
26 pons: 2
27 time-trigger: "H H/6 * * *"
Andy Bavier218385e2019-11-13 09:51:38 -070028
29 - 'voltha-periodic-test':
Andy Bavierd4ba3372020-01-21 17:01:53 -070030 name: 'periodic-voltha-functional-test'
Andy Bavierf93f3142020-01-09 16:08:51 -070031 build-node: 'qct-pod4-node2'
Andy Bavierf93f3142020-01-09 16:08:51 -070032 code-branch: 'master'
Andy Bavierd4ba3372020-01-21 17:01:53 -070033 make-target: functional-single-kind
Andy Bavierf93f3142020-01-09 16:08:51 -070034 onus: 1
35 pons: 1
Andy Bavierd4ba3372020-01-21 17:01:53 -070036 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070037
38 - 'voltha-periodic-test':
Andy Bavier10926f12020-03-27 16:53:43 -070039 name: 'periodic-voltha-functional-test-2.3'
40 build-node: 'qct-pod4-node2'
41 code-branch: 'voltha-2.3'
42 make-target: functional-single-kind
43 onus: 1
44 pons: 1
45 time-trigger: "H H/12 * * *"
46
47 - 'voltha-periodic-test':
Andy Bavier4313d102020-03-23 09:21:53 -070048 name: 'periodic-voltha-errorscenarios-test'
49 build-node: 'qct-pod4-node2'
Andy Bavier4313d102020-03-23 09:21:53 -070050 code-branch: 'master'
51 make-target: bbsim-errorscenarios
52 onus: 1
53 pons: 1
54 time-trigger: "H H/6 * * *"
55
56 - 'voltha-periodic-test':
hwchiufdc49242019-11-18 16:37:22 -080057 name: 'periodic-voltha-system-test'
58 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080059 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080060 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080061 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080062 onus: 2
63 pons: 2
64 time-trigger: "H H/12 * * *"
65
66 - 'voltha-periodic-test':
Andy Bavier10926f12020-03-27 16:53:43 -070067 name: 'periodic-voltha-system-test-2.3'
68 pipeline-script: 'voltha-system-test-bbsim.groovy'
69 build-node: 'ubuntu16.04-basebuild-4c-8g'
70 code-branch: 'voltha-2.3'
71 make-target: sanity-multi-kind
72 onus: 2
73 pons: 2
74 time-trigger: "H H/12 * * *"
75
76
77 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070078 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070079 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070080 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -070081 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070082 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070083 onus: 1
84 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070085 test-runs: 5
Andy Bavier10926f12020-03-27 16:53:43 -070086 time-trigger: "H H/6 * * *"
87
88 - 'voltha-periodic-test':
89 name: 'periodic-voltha-sanity-test-multi-runs-2.3'
90 pipeline-script: 'voltha-go-multi-tests.groovy'
91 build-node: 'qct-pod4-node2'
92 code-branch: 'voltha-2.3'
93 make-target: sanity-kind
94 onus: 1
95 pons: 1
96 test-runs: 5
97 time-trigger: "H H/6 * * *"
Andy Bavier3708d072019-12-10 15:22:18 -070098
99 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -0700100 name: 'periodic-voltha-scale-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700101 build-node: 'qct-pod4-node2'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700102 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -0700103 make-target: scale-multi-kind
104 onus: 2
105 pons: 8
Andy Bavier10926f12020-03-27 16:53:43 -0700106 time-trigger: "H H/6 * * *"
107
108 - 'voltha-periodic-test':
109 name: 'periodic-voltha-scale-test-2.3'
110 build-node: 'qct-pod4-node2'
111 code-branch: 'voltha-2.3'
112 make-target: scale-multi-kind
113 onus: 2
114 pons: 8
115 time-trigger: "H H/6 * * *"
Kailashaad71012019-08-27 10:36:53 -0700116
Andy Bavier0d1d63e2020-03-03 13:52:02 -0700117 - 'voltha-periodic-test':
118 name: 'periodic-voltha-alarm-test'
119 build-node: 'qct-pod4-node2'
Andy Bavier0d1d63e2020-03-03 13:52:02 -0700120 code-branch: 'master'
121 make-target: bbsim-alarms-kind
122 onus: 1
123 pons: 1
124 time-trigger: "H H/3 * * *"
125
Andy Bavier10926f12020-03-27 16:53:43 -0700126 - 'voltha-periodic-test':
127 name: 'periodic-voltha-alarm-test-2.3'
128 build-node: 'qct-pod4-node2'
129 code-branch: 'voltha-2.3'
130 make-target: bbsim-alarms-kind
131 onus: 1
132 pons: 1
133 time-trigger: "H H/3 * * *"
134
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700135 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700136 - 'verify_physical_voltha_patchset_auto':
137 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700138 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700139 config-pod: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700140 oltDebVersion: 'openolt_asfvolt16.deb'
141 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700142
143 # Per-patchset Pod builds on Tucson pod
144 - 'verify_physical_voltha_patchset_manual':
145 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700146 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700147 config-pod: 'tucson-pod'
Andy Bavierfc4dcc42019-11-18 15:33:52 -0700148 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700149 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700150
151 # Manual build job for Tucson pod
152 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700153 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700154 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700155 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700156 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700157 manualBranch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -0700158 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700159 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700160
Kailash8b8de742019-07-30 08:54:51 -0700161- job-template:
Kailashaad71012019-08-27 10:36:53 -0700162 id: 'voltha-periodic-test'
163 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700164 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700165 test-runs: 1
166 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700167 gerrit-project: ''
168
Kailash8b8de742019-07-30 08:54:51 -0700169 description: |
170 <!-- Managed by Jenkins Job Builder -->
171 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
172 E2E Validation for Voltha 2.X
173
174 properties:
175 - cord-infra-properties:
176 build-days-to-keep: '{build-days-to-keep}'
177 artifact-num-to-keep: '{artifact-num-to-keep}'
178
179 wrappers:
180 - lf-infra-wrappers:
181 build-timeout: '{build-timeout}'
182 jenkins-ssh-credential: '{jenkins-ssh-credential}'
183
184 parameters:
185 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700186 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700187 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700188 description: 'Name of the Jenkins node to run the job on'
189
190 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700191 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700192 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700193 description: 'Helm flags to pass to ./voltha up'
194
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700195 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700196 name: makeTarget
197 default: '{make-target}'
198 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700199
Andy Bavier4c8b3232019-11-22 16:17:47 -0700200 - string:
201 name: manifestUrl
202 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700203 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700204
205 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700206 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700207 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700208 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700209
Andy Bavier3708d072019-12-10 15:22:18 -0700210 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700211 name: gerritProject
212 default: '{gerrit-project}'
213 description: 'Name of the Gerrit project'
214
215 - string:
216 name: gerritChangeNumber
217 default: ''
218 description: 'Changeset number in Gerrit'
219
220 - string:
221 name: gerritPatchsetNumber
222 default: ''
223 description: 'PatchSet number in Gerrit'
224
225 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700226 name: testRuns
227 default: '{test-runs}'
228 description: 'How many times to repeat the tests'
229
230 - string:
231 name: extraRobotArgs
232 default: '{robot-args}'
233 description: 'Arguments to pass to robot'
234
235
Kailash8b8de742019-07-30 08:54:51 -0700236 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700237 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700238
Zack Williamsb3292082019-10-11 17:15:18 -0700239 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700240
241 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700242 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700243 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700244 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700245
246- job-template:
247 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800248 name: 'verify_{project}_sanity-test{name-extension}'
Kailashaad71012019-08-27 10:36:53 -0700249
250 description: |
251 <!-- Managed by Jenkins Job Builder -->
252 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
253 E2E Validation for Voltha 2.X
254
255 properties:
256 - cord-infra-properties:
257 build-days-to-keep: '{build-days-to-keep}'
258 artifact-num-to-keep: '{artifact-num-to-keep}'
259
260 wrappers:
261 - lf-infra-wrappers:
262 build-timeout: '{build-timeout}'
263 jenkins-ssh-credential: '{jenkins-ssh-credential}'
264
265 parameters:
266 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700267 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700268 default: 'ubuntu16.04-basebuild-4c-8g'
269 description: 'Name of the Jenkins node to run the job on'
270
271 - string:
272 name: manifestUrl
273 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
274 description: 'URL to the repo manifest'
275
276 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700277 name: branch
278 default: '$GERRIT_BRANCH'
279 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700280
281 - string:
hwchiu14f97852019-10-08 10:51:11 -0700282 name: gerritProject
283 default: '$GERRIT_PROJECT'
284 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700285
286 - string:
hwchiu14f97852019-10-08 10:51:11 -0700287 name: gerritChangeNumber
288 default: '$GERRIT_CHANGE_NUMBER'
289 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700290
291 - string:
hwchiu14f97852019-10-08 10:51:11 -0700292 name: gerritPatchsetNumber
293 default: '$GERRIT_PATCHSET_NUMBER'
294 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700295
296 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700297 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700298 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700299 description: 'Helm flags to pass to ./voltha up'
300
Kailashaad71012019-08-27 10:36:53 -0700301 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700302 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700303
Zack Williamsb3292082019-10-11 17:15:18 -0700304 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700305
306 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700307 - gerrit:
308 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700309 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700310 silent-start: true
311 trigger-on:
312 - patchset-created-event:
313 exclude-drafts: true
314 exclude-trivial-rebase: false
315 exclude-no-code-change: true
316 - draft-published-event
317 - comment-added-contains-event:
318 comment-contains-value: '(?i)^.*recheck$'
319 projects:
320 - project-compare-type: REG_EXP
321 project-pattern: '^{project}$'
322 branches:
323 - branch-compare-type: REG_EXP
Andy Bavier204efab2020-02-19 10:21:45 -0700324 branch-pattern: '{branch-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700325 file-paths:
326 - compare-type: REG_EXP
327 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700328
329# POD Per Patchset Pipeline Jobs
330
331- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700332 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700333 id: verify_physical_voltha_patchset_auto
334 description: |
335 <!-- Managed by Jenkins Job Builder -->
336 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
337 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
338 Created by Andy Bavier, andy@opennetworking.org <br />
339 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700340 sandbox: true
341 pipeline-script: 'voltha-physical-build-and-tests.groovy'
342
343 properties:
344 - cord-infra-properties:
345 build-days-to-keep: '{build-days-to-keep}'
346 artifact-num-to-keep: '{artifact-num-to-keep}'
347
348 parameters:
349 - string:
350 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700351 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700352 description: 'Pod management node'
353
354 - string:
355 name: manifestUrl
356 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
357 description: 'URL to the repo manifest'
358
359 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700360 name: branch
361 default: '$GERRIT_BRANCH'
362 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700363
364 - string:
365 name: gerritProject
366 default: '$GERRIT_PROJECT'
367 description: 'Name of the Gerrit project'
368
369 - string:
370 name: gerritChangeNumber
371 default: '$GERRIT_CHANGE_NUMBER'
372 description: 'Changeset number in Gerrit'
373
374 - string:
375 name: gerritPatchsetNumber
376 default: '$GERRIT_PATCHSET_NUMBER'
377 description: 'PatchSet number in Gerrit'
378
379 - string:
380 name: cordRepoUrl
381 default: '{gerrit-server-url}'
382 description: 'The URL of the CORD Project repository'
383
384 - string:
385 name: podName
386 default: '{config-pod}'
387
388 - string:
389 name: deploymentConfigFile
390 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
391 description: 'Path of deployment config file'
392
393 - string:
394 name: kindVolthaValuesFile
395 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
396 description: 'Path of kind-voltha values override file'
397
398 - string:
399 name: sadisConfigFile
400 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
401 description: 'Path of SADIS config to load'
402
403 - string:
404 name: localConfigDir
405 default: null
406 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
407
408 - string:
409 name: configRepo
410 default: 'pod-configs'
411 description: 'A repository containing the config files, will be checked out if specified'
412
413 - string:
414 name: oltDebVersion
415 default: '{oltDebVersion}'
416 description: 'OLT Software version to install'
417
418 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700419 name: profile
420 default: '{profile}'
421 description: 'Technology Profile pushed to the ETCD'
422
423 - string:
424 name: notificationEmail
425 default: 'andy@opennetworking.org'
426 description: ''
427
428 - bool:
429 name: reinstallOlt
430 default: true
431 description: "Re-install OLT software"
432
Zack Williams03ebb272020-03-27 09:42:33 -0700433 - string:
434 name: manualBranch
435 default: '{manualBranch}'
436 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700437
438 - string:
439 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700440 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700441 description: 'Arguments to pass to robot'
442
443 project-type: pipeline
444 concurrent: true
445
446 dsl: !include-raw-escape: pipeline/{pipeline-script}
447
448 triggers:
449 - gerrit:
450 server-name: '{gerrit-server-name}'
451 dependency-jobs: '{dependency-jobs}'
452 silent-start: false
453 successful-message: "PASSED hardware test"
454 failure-message: "FAILED hardware test"
455 unstable-message: "UNSTABLE hardware test"
456 trigger-on:
457 - comment-added-event:
458 approval-category: 'Code-Review'
459 approval-value: '+2'
460 projects:
461 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700462 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700463 branches:
464 - branch-compare-type: PLAIN
465 branch-pattern: 'master'
466
467
468- job-template:
469 name: '{name}'
470 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700471 description: |
472 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700473 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700474 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700475 Created by Andy Bavier, andy@opennetworking.org <br />
476 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700477 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700478 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700479
480 properties:
481 - cord-infra-properties:
482 build-days-to-keep: '{build-days-to-keep}'
483 artifact-num-to-keep: '{artifact-num-to-keep}'
484
485 parameters:
486 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700487 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700488 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700489 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700490
491 - string:
492 name: manifestUrl
493 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
494 description: 'URL to the repo manifest'
495
496 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700497 name: branch
498 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700499 description: 'Name of the repo branch to use'
500
501 - string:
502 name: gerritProject
503 default: '$GERRIT_PROJECT'
504 description: 'Name of the Gerrit project'
505
506 - string:
507 name: gerritChangeNumber
508 default: '$GERRIT_CHANGE_NUMBER'
509 description: 'Changeset number in Gerrit'
510
511 - string:
512 name: gerritPatchsetNumber
513 default: '$GERRIT_PATCHSET_NUMBER'
514 description: 'PatchSet number in Gerrit'
515
516 - string:
517 name: cordRepoUrl
518 default: '{gerrit-server-url}'
519 description: 'The URL of the CORD Project repository'
520
521 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700522 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700523 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700524
525 - string:
526 name: deploymentConfigFile
527 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
528 description: 'Path of deployment config file'
529
530 - string:
531 name: kindVolthaValuesFile
532 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
533 description: 'Path of kind-voltha values override file'
534
535 - string:
536 name: sadisConfigFile
537 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
538 description: 'Path of SADIS config to load'
539
540 - string:
541 name: localConfigDir
542 default: null
543 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
544
545 - string:
546 name: configRepo
547 default: 'pod-configs'
548 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700549
550 - string:
551 name: oltDebVersion
552 default: '{oltDebVersion}'
553 description: 'OLT Software version to install'
554
555 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700556 name: profile
557 default: '{profile}'
558 description: 'Technology Profile pushed to the ETCD'
559
560 - string:
561 name: notificationEmail
562 default: 'andy@opennetworking.org'
563 description: ''
564
565 - bool:
566 name: reinstallOlt
567 default: true
568 description: "Re-install OLT software"
569
Zack Williams03ebb272020-03-27 09:42:33 -0700570 - string:
571 name: manualBranch
572 default: '{manualBranch}'
573 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700574
Andy Bavier8c11d462019-12-17 08:19:34 -0700575 - string:
576 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700577 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700578 description: 'Arguments to pass to robot'
579
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700580 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700581 concurrent: true
582
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700583 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700584
Andy Bavier1f465592019-11-06 10:03:56 -0700585 triggers:
586 - gerrit:
587 server-name: '{gerrit-server-name}'
588 dependency-jobs: '{dependency-jobs}'
589 silent-start: false
590 successful-message: "PASSED hardware test"
591 failure-message: "FAILED hardware test"
592 unstable-message: "UNSTABLE hardware test"
593 trigger-on:
594 - comment-added-contains-event:
595 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800596 - comment-added-contains-event:
597 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700598 projects:
599 - project-compare-type: REG_EXP
Zack Williams03ebb272020-03-27 09:42:33 -0700600 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests|ofagent-py|ofagent-go|voltha-onos)$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700601 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700602 - branch-compare-type: REG_EXP
Zack Williams03ebb272020-03-27 09:42:33 -0700603 branch-pattern: '^(master|voltha-2.3)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700604
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700605
606- job-template:
607 name: '{name}'
608 id: build_physical_voltha_manual
609 description: |
610 <!-- Managed by Jenkins Job Builder -->
611 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
612 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
613 Created by Andy Bavier, andy@opennetworking.org <br />
614 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700615 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700616 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700617
618 properties:
619 - cord-infra-properties:
620 build-days-to-keep: '{build-days-to-keep}'
621 artifact-num-to-keep: '{artifact-num-to-keep}'
622
623 parameters:
624 - string:
625 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700626 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700627 description: 'Pod management node'
628
629 - string:
630 name: manifestUrl
631 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
632 description: 'URL to the repo manifest'
633
634 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700635 name: branch
636 default: "$GERRIT_BRANCH"
637 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700638
639 - string:
640 name: gerritProject
641 default: '$GERRIT_PROJECT'
642 description: 'Name of the Gerrit project'
643
644 - string:
645 name: gerritChangeNumber
646 default: '$GERRIT_CHANGE_NUMBER'
647 description: 'Changeset number in Gerrit'
648
649 - string:
650 name: gerritPatchsetNumber
651 default: '$GERRIT_PATCHSET_NUMBER'
652 description: 'PatchSet number in Gerrit'
653
654 - string:
655 name: cordRepoUrl
656 default: '{gerrit-server-url}'
657 description: 'The URL of the CORD Project repository'
658
659 - string:
660 name: podName
661 default: '{config-pod}'
662
663 - string:
664 name: deploymentConfigFile
665 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
666 description: 'Path of deployment config file'
667
668 - string:
669 name: kindVolthaValuesFile
670 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
671 description: 'Path of kind-voltha values override file'
672
673 - string:
674 name: sadisConfigFile
675 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
676 description: 'Path of SADIS config to load'
677
678 - string:
679 name: localConfigDir
680 default: null
681 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
682
683 - string:
684 name: configRepo
685 default: 'pod-configs'
686 description: 'A repository containing the config files, will be checked out if specified'
687
688 - string:
689 name: oltDebVersion
690 default: '{oltDebVersion}'
691 description: 'OLT Software version to install'
692
693 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700694 name: profile
695 default: '{profile}'
696 description: 'Technology Profile pushed to the ETCD'
697
698 - string:
699 name: notificationEmail
700 default: 'andy@opennetworking.org'
701 description: ''
702
703 - bool:
704 name: reinstallOlt
705 default: false
706 description: "Re-install OLT software"
707
Zack Williams03ebb272020-03-27 09:42:33 -0700708 - string:
709 name: manualBranch
710 default: '{manualBranch}'
711 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700712
Andy Bavier8c11d462019-12-17 08:19:34 -0700713 - string:
714 name: extraRobotArgs
715 default: '-e bbsim'
716 description: 'Arguments to pass to robot'
717
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700718 project-type: pipeline
719 concurrent: true
720
721 dsl: !include-raw-escape: pipeline/{pipeline-script}