blob: fdab5f3a9419e8dee961875ce8f7f7ebdf7d3d57 [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 Bavierbf68c5e2019-10-25 15:05:28 -070063 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -070064 - 'verify_physical_voltha_patchset_auto':
65 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -070066 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -070067 config-pod: 'tucson-pod'
68 branch: 'master'
69 oltDebVersion: 'openolt_asfvolt16.deb'
70 profile: 'Default'
71 withPatchset: true
72
73 # Per-patchset Pod builds on Tucson pod
74 - 'verify_physical_voltha_patchset_manual':
75 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -070076 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070077 config-pod: 'tucson-pod'
78 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070079 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070080 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070081 withPatchset: true
82
83 # Manual build job for Tucson pod
84 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -070085 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -070086 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -070087 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -070088 config-pod: 'tucson-pod'
89 branch: 'master'
Andy Bavierfc4dcc42019-11-18 15:33:52 -070090 oltDebVersion: 'openolt_asfvolt16.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -070091 profile: 'Default'
92 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -070093
Kailash8b8de742019-07-30 08:54:51 -070094- job-template:
Kailashaad71012019-08-27 10:36:53 -070095 id: 'voltha-periodic-test'
96 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -070097 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070098 test-runs: 1
99 robot-args: ''
Kailash8b8de742019-07-30 08:54:51 -0700100
101 description: |
102 <!-- Managed by Jenkins Job Builder -->
103 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
104 E2E Validation for Voltha 2.X
105
106 properties:
107 - cord-infra-properties:
108 build-days-to-keep: '{build-days-to-keep}'
109 artifact-num-to-keep: '{artifact-num-to-keep}'
110
111 wrappers:
112 - lf-infra-wrappers:
113 build-timeout: '{build-timeout}'
114 jenkins-ssh-credential: '{jenkins-ssh-credential}'
115
116 parameters:
117 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700118 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700119 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700120 description: 'Name of the Jenkins node to run the job on'
121
122 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700123 name: extraHelmFlags
Andy Bavier46c08a72020-02-06 14:07:48 -0700124 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 -0700125 description: 'Helm flags to pass to ./voltha up'
126
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700127 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700128 name: makeTarget
129 default: '{make-target}'
130 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700131
Andy Bavier4c8b3232019-11-22 16:17:47 -0700132 - string:
133 name: manifestUrl
134 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
135 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
136
137 - string:
138 name: manifestBranch
139 default: '{code-branch}'
140 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
141
Andy Bavier3708d072019-12-10 15:22:18 -0700142 - string:
143 name: testRuns
144 default: '{test-runs}'
145 description: 'How many times to repeat the tests'
146
147 - string:
148 name: extraRobotArgs
149 default: '{robot-args}'
150 description: 'Arguments to pass to robot'
151
152
Kailash8b8de742019-07-30 08:54:51 -0700153 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700154 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700155
Zack Williamsb3292082019-10-11 17:15:18 -0700156 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700157
158 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700159 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700160 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700161 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700162
163- job-template:
164 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800165 name: 'verify_{project}_sanity-test{name-extension}'
Matteo Scandolo569bad92020-01-16 11:35:15 -0800166 extra-helm-flags: ''
Andy Bavierb99c3d32020-02-18 11:14:17 -0700167 skip-vote: false
Kailashaad71012019-08-27 10:36:53 -0700168
169 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
Kailashaad71012019-08-27 10:36:53 -0700187 default: 'ubuntu16.04-basebuild-4c-8g'
188 description: 'Name of the Jenkins node to run the job on'
189
190 - string:
191 name: manifestUrl
192 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
193 description: 'URL to the repo manifest'
194
195 - string:
hwchiu14f97852019-10-08 10:51:11 -0700196 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800197 default: 'master'
hwchiu14f97852019-10-08 10:51:11 -0700198 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700199
200 - string:
hwchiu14f97852019-10-08 10:51:11 -0700201 name: gerritProject
202 default: '$GERRIT_PROJECT'
203 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700204
205 - string:
hwchiu14f97852019-10-08 10:51:11 -0700206 name: gerritChangeNumber
207 default: '$GERRIT_CHANGE_NUMBER'
208 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700209
210 - string:
hwchiu14f97852019-10-08 10:51:11 -0700211 name: gerritPatchsetNumber
212 default: '$GERRIT_PATCHSET_NUMBER'
213 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700214
215 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700216 name: extraHelmFlags
Andy Bavier4f7fbea2019-11-21 14:38:47 -0700217 default: '{extra-helm-flags}'
Andy Bavierbedd0392019-10-16 13:58:18 -0700218 description: 'Helm flags to pass to ./voltha up'
219
Kailashaad71012019-08-27 10:36:53 -0700220 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700221 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700222
Zack Williamsb3292082019-10-11 17:15:18 -0700223 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700224
225 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700226 - gerrit:
227 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700228 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700229 silent-start: true
230 trigger-on:
231 - patchset-created-event:
232 exclude-drafts: true
233 exclude-trivial-rebase: false
234 exclude-no-code-change: true
235 - draft-published-event
236 - comment-added-contains-event:
237 comment-contains-value: '(?i)^.*recheck$'
238 projects:
239 - project-compare-type: REG_EXP
240 project-pattern: '^{project}$'
241 branches:
242 - branch-compare-type: REG_EXP
Andy Bavier204efab2020-02-19 10:21:45 -0700243 branch-pattern: '{branch-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700244 file-paths:
245 - compare-type: REG_EXP
246 pattern: '{all-files-regexp}'
247 skip-vote:
Andy Baviere2e3b542020-02-19 15:48:42 -0700248 successful: '{skip-vote}'
249 failed: '{skip-vote}'
250 unstable: '{skip-vote}'
251 notbuilt: '{skip-vote}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700252
253# POD Per Patchset Pipeline Jobs
254
255- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700256 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700257 id: verify_physical_voltha_patchset_auto
258 description: |
259 <!-- Managed by Jenkins Job Builder -->
260 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
261 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
262 Created by Andy Bavier, andy@opennetworking.org <br />
263 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700264 sandbox: true
265 pipeline-script: 'voltha-physical-build-and-tests.groovy'
266
267 properties:
268 - cord-infra-properties:
269 build-days-to-keep: '{build-days-to-keep}'
270 artifact-num-to-keep: '{artifact-num-to-keep}'
271
272 parameters:
273 - string:
274 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700275 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700276 description: 'Pod management node'
277
278 - string:
279 name: manifestUrl
280 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
281 description: 'URL to the repo manifest'
282
283 - string:
284 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800285 default: master
Andy Bavier51ba7e82019-12-17 11:01:01 -0700286 description: 'Name of the repo branch to use'
287
288 - string:
289 name: gerritProject
290 default: '$GERRIT_PROJECT'
291 description: 'Name of the Gerrit project'
292
293 - string:
294 name: gerritChangeNumber
295 default: '$GERRIT_CHANGE_NUMBER'
296 description: 'Changeset number in Gerrit'
297
298 - string:
299 name: gerritPatchsetNumber
300 default: '$GERRIT_PATCHSET_NUMBER'
301 description: 'PatchSet number in Gerrit'
302
303 - string:
304 name: cordRepoUrl
305 default: '{gerrit-server-url}'
306 description: 'The URL of the CORD Project repository'
307
308 - string:
309 name: podName
310 default: '{config-pod}'
311
312 - string:
313 name: deploymentConfigFile
314 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
315 description: 'Path of deployment config file'
316
317 - string:
318 name: kindVolthaValuesFile
319 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
320 description: 'Path of kind-voltha values override file'
321
322 - string:
323 name: sadisConfigFile
324 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
325 description: 'Path of SADIS config to load'
326
327 - string:
328 name: localConfigDir
329 default: null
330 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
331
332 - string:
333 name: configRepo
334 default: 'pod-configs'
335 description: 'A repository containing the config files, will be checked out if specified'
336
337 - string:
338 name: oltDebVersion
339 default: '{oltDebVersion}'
340 description: 'OLT Software version to install'
341
342 - string:
343 name: branch
344 default: '{branch}'
345
346 - string:
347 name: profile
348 default: '{profile}'
349 description: 'Technology Profile pushed to the ETCD'
350
351 - string:
352 name: notificationEmail
353 default: 'andy@opennetworking.org'
354 description: ''
355
356 - bool:
357 name: reinstallOlt
358 default: true
359 description: "Re-install OLT software"
360
361 - bool:
362 name: withPatchset
363 default: true
364 description: "Build with Gerrit patchset"
365
366 - string:
367 name: extraRobotArgs
368 default: '-i sanity'
369 description: 'Arguments to pass to robot'
370
371 project-type: pipeline
372 concurrent: true
373
374 dsl: !include-raw-escape: pipeline/{pipeline-script}
375
376 triggers:
377 - gerrit:
378 server-name: '{gerrit-server-name}'
379 dependency-jobs: '{dependency-jobs}'
380 silent-start: false
381 successful-message: "PASSED hardware test"
382 failure-message: "FAILED hardware test"
383 unstable-message: "UNSTABLE hardware test"
384 trigger-on:
385 - comment-added-event:
386 approval-category: 'Code-Review'
387 approval-value: '+2'
388 projects:
389 - project-compare-type: REG_EXP
390 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter)$'
391 branches:
392 - branch-compare-type: PLAIN
393 branch-pattern: 'master'
394
395
396- job-template:
397 name: '{name}'
398 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700399 description: |
400 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700401 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700402 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700403 Created by Andy Bavier, andy@opennetworking.org <br />
404 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700405 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700406 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700407
408 properties:
409 - cord-infra-properties:
410 build-days-to-keep: '{build-days-to-keep}'
411 artifact-num-to-keep: '{artifact-num-to-keep}'
412
413 parameters:
414 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700415 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700416 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700417 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700418
419 - string:
420 name: manifestUrl
421 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
422 description: 'URL to the repo manifest'
423
424 - string:
425 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800426 default: master
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700427 description: 'Name of the repo branch to use'
428
429 - string:
430 name: gerritProject
431 default: '$GERRIT_PROJECT'
432 description: 'Name of the Gerrit project'
433
434 - string:
435 name: gerritChangeNumber
436 default: '$GERRIT_CHANGE_NUMBER'
437 description: 'Changeset number in Gerrit'
438
439 - string:
440 name: gerritPatchsetNumber
441 default: '$GERRIT_PATCHSET_NUMBER'
442 description: 'PatchSet number in Gerrit'
443
444 - string:
445 name: cordRepoUrl
446 default: '{gerrit-server-url}'
447 description: 'The URL of the CORD Project repository'
448
449 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700450 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700451 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700452
453 - string:
454 name: deploymentConfigFile
455 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
456 description: 'Path of deployment config file'
457
458 - string:
459 name: kindVolthaValuesFile
460 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
461 description: 'Path of kind-voltha values override file'
462
463 - string:
464 name: sadisConfigFile
465 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
466 description: 'Path of SADIS config to load'
467
468 - string:
469 name: localConfigDir
470 default: null
471 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
472
473 - string:
474 name: configRepo
475 default: 'pod-configs'
476 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700477
478 - string:
479 name: oltDebVersion
480 default: '{oltDebVersion}'
481 description: 'OLT Software version to install'
482
483 - string:
484 name: branch
485 default: '{branch}'
486
487 - string:
488 name: profile
489 default: '{profile}'
490 description: 'Technology Profile pushed to the ETCD'
491
492 - string:
493 name: notificationEmail
494 default: 'andy@opennetworking.org'
495 description: ''
496
497 - bool:
498 name: reinstallOlt
499 default: true
500 description: "Re-install OLT software"
501
Andy Bavier19c98a22019-11-11 13:57:11 -0700502 - bool:
503 name: withPatchset
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700504 default: true
505 description: "Build with Gerrit patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700506
Andy Bavier8c11d462019-12-17 08:19:34 -0700507 - string:
508 name: extraRobotArgs
509 default: '-i sanity'
510 description: 'Arguments to pass to robot'
511
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700512 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700513 concurrent: true
514
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700515 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700516
Andy Bavier1f465592019-11-06 10:03:56 -0700517 triggers:
518 - gerrit:
519 server-name: '{gerrit-server-name}'
520 dependency-jobs: '{dependency-jobs}'
521 silent-start: false
522 successful-message: "PASSED hardware test"
523 failure-message: "FAILED hardware test"
524 unstable-message: "UNSTABLE hardware test"
525 trigger-on:
526 - comment-added-contains-event:
527 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800528 - comment-added-contains-event:
529 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700530 projects:
531 - project-compare-type: REG_EXP
Matteo Scandolo70800a32020-01-06 11:55:27 -0800532 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 -0700533 branches:
534 - branch-compare-type: PLAIN
535 branch-pattern: 'master'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700536
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700537
538- job-template:
539 name: '{name}'
540 id: build_physical_voltha_manual
541 description: |
542 <!-- Managed by Jenkins Job Builder -->
543 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
544 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
545 Created by Andy Bavier, andy@opennetworking.org <br />
546 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700547 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700548 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700549
550 properties:
551 - cord-infra-properties:
552 build-days-to-keep: '{build-days-to-keep}'
553 artifact-num-to-keep: '{artifact-num-to-keep}'
554
555 parameters:
556 - string:
557 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700558 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700559 description: 'Pod management node'
560
561 - string:
562 name: manifestUrl
563 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
564 description: 'URL to the repo manifest'
565
566 - string:
567 name: manifestBranch
Matteo Scandoloe547ddf2020-01-15 11:39:31 -0800568 default: master
Andy Bavier06d816c2019-11-19 11:40:48 -0700569 description: 'Name of the repo branch to use (change to $GERRIT_BRANCH if testing a patchset)'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700570
571 - string:
572 name: gerritProject
573 default: '$GERRIT_PROJECT'
574 description: 'Name of the Gerrit project'
575
576 - string:
577 name: gerritChangeNumber
578 default: '$GERRIT_CHANGE_NUMBER'
579 description: 'Changeset number in Gerrit'
580
581 - string:
582 name: gerritPatchsetNumber
583 default: '$GERRIT_PATCHSET_NUMBER'
584 description: 'PatchSet number in Gerrit'
585
586 - string:
587 name: cordRepoUrl
588 default: '{gerrit-server-url}'
589 description: 'The URL of the CORD Project repository'
590
591 - string:
592 name: podName
593 default: '{config-pod}'
594
595 - string:
596 name: deploymentConfigFile
597 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
598 description: 'Path of deployment config file'
599
600 - string:
601 name: kindVolthaValuesFile
602 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
603 description: 'Path of kind-voltha values override file'
604
605 - string:
606 name: sadisConfigFile
607 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
608 description: 'Path of SADIS config to load'
609
610 - string:
611 name: localConfigDir
612 default: null
613 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
614
615 - string:
616 name: configRepo
617 default: 'pod-configs'
618 description: 'A repository containing the config files, will be checked out if specified'
619
620 - string:
621 name: oltDebVersion
622 default: '{oltDebVersion}'
623 description: 'OLT Software version to install'
624
625 - string:
626 name: branch
627 default: '{branch}'
628
629 - string:
630 name: profile
631 default: '{profile}'
632 description: 'Technology Profile pushed to the ETCD'
633
634 - string:
635 name: notificationEmail
636 default: 'andy@opennetworking.org'
637 description: ''
638
639 - bool:
640 name: reinstallOlt
641 default: false
642 description: "Re-install OLT software"
643
644 - bool:
645 name: withPatchset
646 default: false
647 description: "Build with Gerrit patchset"
648
Andy Bavier8c11d462019-12-17 08:19:34 -0700649 - string:
650 name: extraRobotArgs
651 default: '-e bbsim'
652 description: 'Arguments to pass to robot'
653
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700654 project-type: pipeline
655 concurrent: true
656
657 dsl: !include-raw-escape: pipeline/{pipeline-script}