blob: a10fb7df49b2d581f8d2ebb37d162f2966b4f8b0 [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 Bavieraaa60f72019-09-20 09:11:21 -070014 default-image-tag: 'master'
Andy Bavier4c8b3232019-11-22 16:17:47 -070015 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070016 make-target: sanity-multi-kind
17 onus: 2
18 pons: 2
19 time-trigger: "H H/3 * * *"
20
21 - 'voltha-periodic-test':
Andy Bavierd4ba3372020-01-21 17:01:53 -070022 name: 'periodic-voltha-functional-test'
Andy Bavierf93f3142020-01-09 16:08:51 -070023 build-node: 'qct-pod4-node2'
24 default-image-tag: 'master'
25 code-branch: 'master'
Andy Bavierd4ba3372020-01-21 17:01:53 -070026 make-target: functional-single-kind
Andy Bavierf93f3142020-01-09 16:08:51 -070027 onus: 1
28 pons: 1
Andy Bavierd4ba3372020-01-21 17:01:53 -070029 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070030
31 - 'voltha-periodic-test':
Andy Bavier4313d102020-03-23 09:21:53 -070032 name: 'periodic-voltha-errorscenarios-test'
33 build-node: 'qct-pod4-node2'
34 default-image-tag: 'master'
35 code-branch: 'master'
36 make-target: bbsim-errorscenarios
37 onus: 1
38 pons: 1
39 time-trigger: "H H/6 * * *"
40
41 - 'voltha-periodic-test':
hwchiufdc49242019-11-18 16:37:22 -080042 name: 'periodic-voltha-system-test'
43 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080044 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiufdc49242019-11-18 16:37:22 -080045 default-image-tag: 'master'
hwchiuc9189b72019-12-02 15:12:29 -080046 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080047 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080048 onus: 2
49 pons: 2
50 time-trigger: "H H/12 * * *"
51
52 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070053 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070054 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070055 build-node: 'qct-pod4-node2'
56 default-image-tag: 'master'
57 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070058 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070059 onus: 1
60 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070061 test-runs: 5
62 time-trigger: "H H/3 * * *"
63
64 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -070065 name: 'periodic-voltha-scale-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070066 build-node: 'qct-pod4-node2'
Andy Bavier218385e2019-11-13 09:51:38 -070067 default-image-tag: 'master'
Andy Bavier4c8b3232019-11-22 16:17:47 -070068 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070069 make-target: scale-multi-kind
70 onus: 2
71 pons: 8
72 time-trigger: "H H/3 * * *"
Kailashaad71012019-08-27 10:36:53 -070073
Andy Bavier0d1d63e2020-03-03 13:52:02 -070074 - 'voltha-periodic-test':
75 name: 'periodic-voltha-alarm-test'
76 build-node: 'qct-pod4-node2'
77 default-image-tag: 'master'
78 code-branch: 'master'
79 make-target: bbsim-alarms-kind
80 onus: 1
81 pons: 1
82 time-trigger: "H H/3 * * *"
83
Andy Bavierbf68c5e2019-10-25 15:05:28 -070084 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -070085 - 'verify_physical_voltha_patchset_auto':
86 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -070087 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -070088 config-pod: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -070089 oltDebVersion: 'openolt_asfvolt16.deb'
90 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -070091
92 # Per-patchset Pod builds on Tucson pod
93 - 'verify_physical_voltha_patchset_manual':
94 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -070095 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070096 config-pod: 'tucson-pod'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070097 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070098 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070099
100 # Manual build job for Tucson pod
101 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700102 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700103 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700104 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700105 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700106 manualBranch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -0700107 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700108 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700109
Kailash8b8de742019-07-30 08:54:51 -0700110- job-template:
Kailashaad71012019-08-27 10:36:53 -0700111 id: 'voltha-periodic-test'
112 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700113 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700114 test-runs: 1
115 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700116 gerrit-project: ''
117
Kailash8b8de742019-07-30 08:54:51 -0700118 description: |
119 <!-- Managed by Jenkins Job Builder -->
120 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
121 E2E Validation for Voltha 2.X
122
123 properties:
124 - cord-infra-properties:
125 build-days-to-keep: '{build-days-to-keep}'
126 artifact-num-to-keep: '{artifact-num-to-keep}'
127
128 wrappers:
129 - lf-infra-wrappers:
130 build-timeout: '{build-timeout}'
131 jenkins-ssh-credential: '{jenkins-ssh-credential}'
132
133 parameters:
134 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700135 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700136 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700137 description: 'Name of the Jenkins node to run the job on'
138
139 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700140 name: extraHelmFlags
Andy Bavierad0b2bd2020-03-18 08:47:18 -0700141 default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700142 description: 'Helm flags to pass to ./voltha up'
143
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700144 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700145 name: makeTarget
146 default: '{make-target}'
147 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700148
Andy Bavier4c8b3232019-11-22 16:17:47 -0700149 - string:
150 name: manifestUrl
151 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
152 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
153
154 - string:
155 name: manifestBranch
156 default: '{code-branch}'
157 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
158
Andy Bavier3708d072019-12-10 15:22:18 -0700159 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700160 name: gerritProject
161 default: '{gerrit-project}'
162 description: 'Name of the Gerrit project'
163
164 - string:
165 name: gerritChangeNumber
166 default: ''
167 description: 'Changeset number in Gerrit'
168
169 - string:
170 name: gerritPatchsetNumber
171 default: ''
172 description: 'PatchSet number in Gerrit'
173
174 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700175 name: testRuns
176 default: '{test-runs}'
177 description: 'How many times to repeat the tests'
178
179 - string:
180 name: extraRobotArgs
181 default: '{robot-args}'
182 description: 'Arguments to pass to robot'
183
184
Kailash8b8de742019-07-30 08:54:51 -0700185 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700186 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700187
Zack Williamsb3292082019-10-11 17:15:18 -0700188 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700189
190 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700191 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700192 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700193 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700194
195- job-template:
196 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800197 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavierad0b2bd2020-03-18 08:47:18 -0700198 extra-helm-flags: ''
Andy Bavierb99c3d32020-02-18 11:14:17 -0700199 skip-vote: false
Kailashaad71012019-08-27 10:36:53 -0700200
201 description: |
202 <!-- Managed by Jenkins Job Builder -->
203 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
204 E2E Validation for Voltha 2.X
205
206 properties:
207 - cord-infra-properties:
208 build-days-to-keep: '{build-days-to-keep}'
209 artifact-num-to-keep: '{artifact-num-to-keep}'
210
211 wrappers:
212 - lf-infra-wrappers:
213 build-timeout: '{build-timeout}'
214 jenkins-ssh-credential: '{jenkins-ssh-credential}'
215
216 parameters:
217 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700218 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700219 default: 'ubuntu16.04-basebuild-4c-8g'
220 description: 'Name of the Jenkins node to run the job on'
221
222 - string:
223 name: manifestUrl
224 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
225 description: 'URL to the repo manifest'
226
227 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700228 name: branch
229 default: '$GERRIT_BRANCH'
230 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700231
232 - string:
hwchiu14f97852019-10-08 10:51:11 -0700233 name: gerritProject
234 default: '$GERRIT_PROJECT'
235 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700236
237 - string:
hwchiu14f97852019-10-08 10:51:11 -0700238 name: gerritChangeNumber
239 default: '$GERRIT_CHANGE_NUMBER'
240 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700241
242 - string:
hwchiu14f97852019-10-08 10:51:11 -0700243 name: gerritPatchsetNumber
244 default: '$GERRIT_PATCHSET_NUMBER'
245 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700246
247 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700248 name: extraHelmFlags
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700249 default: '{extra-helm-flags}'
Andy Bavierbedd0392019-10-16 13:58:18 -0700250 description: 'Helm flags to pass to ./voltha up'
251
Kailashaad71012019-08-27 10:36:53 -0700252 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700253 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700254
Zack Williamsb3292082019-10-11 17:15:18 -0700255 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700256
257 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700258 - gerrit:
259 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700260 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700261 silent-start: true
262 trigger-on:
263 - patchset-created-event:
264 exclude-drafts: true
265 exclude-trivial-rebase: false
266 exclude-no-code-change: true
267 - draft-published-event
268 - comment-added-contains-event:
269 comment-contains-value: '(?i)^.*recheck$'
270 projects:
271 - project-compare-type: REG_EXP
272 project-pattern: '^{project}$'
273 branches:
274 - branch-compare-type: REG_EXP
Andy Bavier204efab2020-02-19 10:21:45 -0700275 branch-pattern: '{branch-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700276 file-paths:
277 - compare-type: REG_EXP
278 pattern: '{all-files-regexp}'
279 skip-vote:
Andy Baviere2e3b542020-02-19 15:48:42 -0700280 successful: '{skip-vote}'
281 failed: '{skip-vote}'
282 unstable: '{skip-vote}'
283 notbuilt: '{skip-vote}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700284
285# POD Per Patchset Pipeline Jobs
286
287- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700288 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700289 id: verify_physical_voltha_patchset_auto
290 description: |
291 <!-- Managed by Jenkins Job Builder -->
292 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
293 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
294 Created by Andy Bavier, andy@opennetworking.org <br />
295 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700296 sandbox: true
297 pipeline-script: 'voltha-physical-build-and-tests.groovy'
298
299 properties:
300 - cord-infra-properties:
301 build-days-to-keep: '{build-days-to-keep}'
302 artifact-num-to-keep: '{artifact-num-to-keep}'
303
304 parameters:
305 - string:
306 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700307 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700308 description: 'Pod management node'
309
310 - string:
311 name: manifestUrl
312 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
313 description: 'URL to the repo manifest'
314
315 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700316 name: branch
317 default: '$GERRIT_BRANCH'
318 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700319
320 - string:
321 name: gerritProject
322 default: '$GERRIT_PROJECT'
323 description: 'Name of the Gerrit project'
324
325 - string:
326 name: gerritChangeNumber
327 default: '$GERRIT_CHANGE_NUMBER'
328 description: 'Changeset number in Gerrit'
329
330 - string:
331 name: gerritPatchsetNumber
332 default: '$GERRIT_PATCHSET_NUMBER'
333 description: 'PatchSet number in Gerrit'
334
335 - string:
336 name: cordRepoUrl
337 default: '{gerrit-server-url}'
338 description: 'The URL of the CORD Project repository'
339
340 - string:
341 name: podName
342 default: '{config-pod}'
343
344 - string:
345 name: deploymentConfigFile
346 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
347 description: 'Path of deployment config file'
348
349 - string:
350 name: kindVolthaValuesFile
351 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
352 description: 'Path of kind-voltha values override file'
353
354 - string:
355 name: sadisConfigFile
356 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
357 description: 'Path of SADIS config to load'
358
359 - string:
360 name: localConfigDir
361 default: null
362 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
363
364 - string:
365 name: configRepo
366 default: 'pod-configs'
367 description: 'A repository containing the config files, will be checked out if specified'
368
369 - string:
370 name: oltDebVersion
371 default: '{oltDebVersion}'
372 description: 'OLT Software version to install'
373
374 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700375 name: profile
376 default: '{profile}'
377 description: 'Technology Profile pushed to the ETCD'
378
379 - string:
380 name: notificationEmail
381 default: 'andy@opennetworking.org'
382 description: ''
383
384 - bool:
385 name: reinstallOlt
386 default: true
387 description: "Re-install OLT software"
388
Zack Williams03ebb272020-03-27 09:42:33 -0700389 - string:
390 name: manualBranch
391 default: '{manualBranch}'
392 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700393
394 - string:
395 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700396 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700397 description: 'Arguments to pass to robot'
398
399 project-type: pipeline
400 concurrent: true
401
402 dsl: !include-raw-escape: pipeline/{pipeline-script}
403
404 triggers:
405 - gerrit:
406 server-name: '{gerrit-server-name}'
407 dependency-jobs: '{dependency-jobs}'
408 silent-start: false
409 successful-message: "PASSED hardware test"
410 failure-message: "FAILED hardware test"
411 unstable-message: "UNSTABLE hardware test"
412 trigger-on:
413 - comment-added-event:
414 approval-category: 'Code-Review'
415 approval-value: '+2'
416 projects:
417 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700418 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700419 branches:
420 - branch-compare-type: PLAIN
421 branch-pattern: 'master'
422
423
424- job-template:
425 name: '{name}'
426 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700427 description: |
428 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700429 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700430 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700431 Created by Andy Bavier, andy@opennetworking.org <br />
432 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700433 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700434 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700435
436 properties:
437 - cord-infra-properties:
438 build-days-to-keep: '{build-days-to-keep}'
439 artifact-num-to-keep: '{artifact-num-to-keep}'
440
441 parameters:
442 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700443 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700444 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700445 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700446
447 - string:
448 name: manifestUrl
449 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
450 description: 'URL to the repo manifest'
451
452 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700453 name: branch
454 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700455 description: 'Name of the repo branch to use'
456
457 - string:
458 name: gerritProject
459 default: '$GERRIT_PROJECT'
460 description: 'Name of the Gerrit project'
461
462 - string:
463 name: gerritChangeNumber
464 default: '$GERRIT_CHANGE_NUMBER'
465 description: 'Changeset number in Gerrit'
466
467 - string:
468 name: gerritPatchsetNumber
469 default: '$GERRIT_PATCHSET_NUMBER'
470 description: 'PatchSet number in Gerrit'
471
472 - string:
473 name: cordRepoUrl
474 default: '{gerrit-server-url}'
475 description: 'The URL of the CORD Project repository'
476
477 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700478 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700479 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700480
481 - string:
482 name: deploymentConfigFile
483 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
484 description: 'Path of deployment config file'
485
486 - string:
487 name: kindVolthaValuesFile
488 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
489 description: 'Path of kind-voltha values override file'
490
491 - string:
492 name: sadisConfigFile
493 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
494 description: 'Path of SADIS config to load'
495
496 - string:
497 name: localConfigDir
498 default: null
499 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
500
501 - string:
502 name: configRepo
503 default: 'pod-configs'
504 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700505
506 - string:
507 name: oltDebVersion
508 default: '{oltDebVersion}'
509 description: 'OLT Software version to install'
510
511 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700512 name: profile
513 default: '{profile}'
514 description: 'Technology Profile pushed to the ETCD'
515
516 - string:
517 name: notificationEmail
518 default: 'andy@opennetworking.org'
519 description: ''
520
521 - bool:
522 name: reinstallOlt
523 default: true
524 description: "Re-install OLT software"
525
Zack Williams03ebb272020-03-27 09:42:33 -0700526 - string:
527 name: manualBranch
528 default: '{manualBranch}'
529 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700530
Andy Bavier8c11d462019-12-17 08:19:34 -0700531 - string:
532 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700533 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700534 description: 'Arguments to pass to robot'
535
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700536 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700537 concurrent: true
538
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700539 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700540
Andy Bavier1f465592019-11-06 10:03:56 -0700541 triggers:
542 - gerrit:
543 server-name: '{gerrit-server-name}'
544 dependency-jobs: '{dependency-jobs}'
545 silent-start: false
546 successful-message: "PASSED hardware test"
547 failure-message: "FAILED hardware test"
548 unstable-message: "UNSTABLE hardware test"
549 trigger-on:
550 - comment-added-contains-event:
551 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800552 - comment-added-contains-event:
553 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700554 projects:
555 - project-compare-type: REG_EXP
Zack Williams03ebb272020-03-27 09:42:33 -0700556 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 -0700557 branches:
558 - branch-compare-type: PLAIN
Zack Williams03ebb272020-03-27 09:42:33 -0700559 branch-pattern: '^(master|voltha-2.3)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700560
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700561
562- job-template:
563 name: '{name}'
564 id: build_physical_voltha_manual
565 description: |
566 <!-- Managed by Jenkins Job Builder -->
567 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
568 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
569 Created by Andy Bavier, andy@opennetworking.org <br />
570 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700571 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700572 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700573
574 properties:
575 - cord-infra-properties:
576 build-days-to-keep: '{build-days-to-keep}'
577 artifact-num-to-keep: '{artifact-num-to-keep}'
578
579 parameters:
580 - string:
581 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700582 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700583 description: 'Pod management node'
584
585 - string:
586 name: manifestUrl
587 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
588 description: 'URL to the repo manifest'
589
590 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700591 name: branch
592 default: "$GERRIT_BRANCH"
593 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700594
595 - string:
596 name: gerritProject
597 default: '$GERRIT_PROJECT'
598 description: 'Name of the Gerrit project'
599
600 - string:
601 name: gerritChangeNumber
602 default: '$GERRIT_CHANGE_NUMBER'
603 description: 'Changeset number in Gerrit'
604
605 - string:
606 name: gerritPatchsetNumber
607 default: '$GERRIT_PATCHSET_NUMBER'
608 description: 'PatchSet number in Gerrit'
609
610 - string:
611 name: cordRepoUrl
612 default: '{gerrit-server-url}'
613 description: 'The URL of the CORD Project repository'
614
615 - string:
616 name: podName
617 default: '{config-pod}'
618
619 - string:
620 name: deploymentConfigFile
621 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
622 description: 'Path of deployment config file'
623
624 - string:
625 name: kindVolthaValuesFile
626 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
627 description: 'Path of kind-voltha values override file'
628
629 - string:
630 name: sadisConfigFile
631 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
632 description: 'Path of SADIS config to load'
633
634 - string:
635 name: localConfigDir
636 default: null
637 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
638
639 - string:
640 name: configRepo
641 default: 'pod-configs'
642 description: 'A repository containing the config files, will be checked out if specified'
643
644 - string:
645 name: oltDebVersion
646 default: '{oltDebVersion}'
647 description: 'OLT Software version to install'
648
649 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700650 name: profile
651 default: '{profile}'
652 description: 'Technology Profile pushed to the ETCD'
653
654 - string:
655 name: notificationEmail
656 default: 'andy@opennetworking.org'
657 description: ''
658
659 - bool:
660 name: reinstallOlt
661 default: false
662 description: "Re-install OLT software"
663
Zack Williams03ebb272020-03-27 09:42:33 -0700664 - string:
665 name: manualBranch
666 default: '{manualBranch}'
667 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700668
Andy Bavier8c11d462019-12-17 08:19:34 -0700669 - string:
670 name: extraRobotArgs
671 default: '-e bbsim'
672 description: 'Arguments to pass to robot'
673
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700674 project-type: pipeline
675 concurrent: true
676
677 dsl: !include-raw-escape: pipeline/{pipeline-script}