blob: e185c53f7b7f731bcc34abbe2b7d9b6392314538 [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: ''
Suchitra Vemuri456b6b42020-11-10 19:06:22 -08009 olts: 1
Andrea Campanellaf3c32af2020-12-10 12:21:57 +010010 onus: 1
11 pons: 1
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080012 withAlarms: true
13 make-target-failtest: bbsim-failurescenarios
14 make-target-errortest: bbsim-errorscenarios
15 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080016 make-target-multipleolt: bbsim-multiolt-kind
TorstenThieme669258d2021-01-29 09:03:10 +000017 make-target-1t4gemtest: 1t4gem-openonu-go-adapter-test
18 make-target-1t8gemtest: 1t8gem-openonu-go-adapter-test
Kailash8b8de742019-07-30 08:54:51 -070019
20 jobs:
hwchiu14f97852019-10-08 10:51:11 -070021 - 'voltha-periodic-test':
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070022 name: 'periodic-voltha-test-bbsim'
23 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavierf93f3142020-01-09 16:08:51 -070024 build-node: 'qct-pod4-node2'
Andy Bavierd4ba3372020-01-21 17:01:53 -070025 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080026 make-target-failtest: bbsim-failurescenarios
27 make-target-errortest: bbsim-errorscenarios
28 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080029 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080030 withAlarms: true
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070031 code-branch: 'master'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080032 olts: 1
33 onus: 2
34 pons: 2
35 time-trigger: "H H/12 * * *"
36
37 - 'voltha-periodic-test':
38 name: 'periodic-voltha-multiple-olts-test-bbsim'
39 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
40 build-node: 'qct-pod4-node2'
Suchitra Vemurie50560a2020-11-18 14:14:09 -080041 make-target: functional-multi-olt
42 make-target-failtest: bbsim-multiolt-failurescenarios
43 make-target-errortest: bbsim-multiolt-errorscenarios
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080044 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080045 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080046 withAlarms: false
47 code-branch: 'master'
48 olts: 2
Andy Bavier4be37062020-06-29 15:17:26 -070049 onus: 2
50 pons: 2
Andy Bavierd4ba3372020-01-21 17:01:53 -070051 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070052
53 - 'voltha-periodic-test':
Suchitra Vemuri95a73432020-12-16 13:17:48 -080054 name: 'periodic-voltha-2.6-multiple-olts-test-bbsim'
55 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
56 build-node: 'qct-pod4-node2'
57 make-target: functional-multi-olt
58 make-target-failtest: bbsim-multiolt-failurescenarios
59 make-target-errortest: bbsim-multiolt-errorscenarios
60 make-target-alarmtest: bbsim-alarms-kind
61 make-target-multipleolt: bbsim-multiolt-kind
62 withAlarms: false
63 code-branch: 'voltha-2.6'
64 olts: 2
65 onus: 2
66 pons: 2
67 time-trigger: "H H/12 * * *"
68
69 - 'voltha-periodic-test':
TorstenThieme326e7972021-01-19 14:27:59 +000070 name: 'periodic-voltha-openonu-go-test-bbsim'
71 pipeline-script: 'voltha-openonu-go-test-bbsim.groovy'
72 build-node: 'ubuntu16.04-basebuild-4c-8g'
73 make-target: openonu-go-adapter-test
TorstenThieme669258d2021-01-29 09:03:10 +000074 make-target-1t4gemtest: 1t4gem-openonu-go-adapter-test
75 make-target-1t8gemtest: 1t8gem-openonu-go-adapter-test
TorstenThieme326e7972021-01-19 14:27:59 +000076 withAlarms: false
77 code-branch: 'master'
78 time-trigger: "H H/12 * * *"
79
80 - 'voltha-periodic-test':
TorstenThieme669258d2021-01-29 09:03:10 +000081 name: 'periodic-voltha-multiple-olts-openonu-go-test-bbsim'
82 pipeline-script: 'voltha-openonu-go-test-bbsim.groovy'
83 build-node: 'ubuntu16.04-basebuild-4c-8g'
84 make-target: openonu-go-adapter-multi-olt-test
85 make-target-1t4gemtest: 1t4gem-openonu-go-adapter-multi-olt-test
86 make-target-1t8gemtest: 1t8gem-openonu-go-adapter-multi-olt-test
87 withAlarms: false
88 code-branch: 'master'
89 olts: 2
90 onus: 2
91 pons: 2
92 time-trigger: "H H/12 * * *"
93
94 - 'voltha-periodic-test':
Andrea Campanellaf3c32af2020-12-10 12:21:57 +010095 name: 'periodic-voltha-test-DMI'
96 pipeline-script: 'voltha-DMI-bbsim-tests.groovy'
97 build-node: 'qct-pod4-node2'
Andrea Campanellae9739492020-12-17 09:54:04 +010098 make-target: bbsim-dmi-hw-management-test
Andrea Campanellaf3c32af2020-12-10 12:21:57 +010099 withAlarms: false
100 code-branch: 'master'
101 time-trigger: "H H/12 * * *"
102
103 - 'voltha-periodic-test':
Andrea Campanellae9739492020-12-17 09:54:04 +0100104 name: 'periodic-voltha-test-DMI-2.6'
105 pipeline-script: 'voltha-DMI-bbsim-tests.groovy'
106 build-node: 'qct-pod4-node2'
107 make-target: bbsim-dmi-hw-management-test
108 withAlarms: false
109 code-branch: 'voltha-2.6'
110 time-trigger: "H H/12 * * *"
111
112 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800113 name: 'periodic-voltha-test-bbsim-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -0700114 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavier10926f12020-03-27 16:53:43 -0700115 build-node: 'qct-pod4-node2'
Andy Bavier10926f12020-03-27 16:53:43 -0700116 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800117 make-target-failtest: bbsim-failurescenarios
118 make-target-errortest: bbsim-errorscenarios
119 make-target-alarmtest: bbsim-alarms-kind
120 withAlarms: true
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800121 code-branch: 'voltha-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -0700122 onus: 2
123 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -0700124 time-trigger: "H H/12 * * *"
125
126 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -0700127 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -0800128 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -0800129 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -0800130 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -0800131 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -0800132 onus: 2
133 pons: 2
134 time-trigger: "H H/12 * * *"
135
136 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800137 name: 'periodic-voltha-etcd-test-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700138 pipeline-script: 'voltha-system-test-bbsim.groovy'
139 build-node: 'ubuntu16.04-basebuild-4c-8g'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800140 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700141 make-target: sanity-multi-kind
142 onus: 2
143 pons: 2
144 time-trigger: "H H/12 * * *"
145
146
147 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -0700148 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -0700149 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700150 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -0700151 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -0700152 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -0700153 onus: 1
154 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -0700155 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700156 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700157
158 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800159 name: 'periodic-voltha-sanity-test-multi-runs-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700160 pipeline-script: 'voltha-go-multi-tests.groovy'
161 build-node: 'qct-pod4-node2'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800162 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700163 make-target: sanity-kind
164 onus: 1
165 pons: 1
166 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700167 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700168
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700169 - 'voltha-periodic-test':
170 name: 'nightly-voltha-DTflow-sanity-test'
171 build-node: 'ubuntu16.04-basebuild-4c-8g'
172 code-branch: 'master'
173 make-target: sanity-kind-dt
174 onus: 1
175 pons: 1
176 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700177 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700178
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700179 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700180 - 'verify_physical_voltha_patchset_auto':
181 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700182 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700183 config-pod: 'tucson-pod'
Girish Gowdraad746502021-01-11 10:08:05 -0800184 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800185 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700186 profile: 'Default'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800187 default-test-args: '-i sanityORDeleteOLT -i PowerSwitch -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700188
189 # Per-patchset Pod builds on Tucson pod
190 - 'verify_physical_voltha_patchset_manual':
191 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700192 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700193 config-pod: 'tucson-pod'
Girish Gowdraad746502021-01-11 10:08:05 -0800194 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800195 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700196 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700197 trigger-string: 'hardware test'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800198 default-test-args: '-i sanityORDeleteOLT -i PowerSwitch -X'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700199
200
201 # Per-patchset Pod builds on Tucson pod
202 - 'verify_physical_voltha_patchset_manual':
203 name: 'verify_physical_voltha_patchset_manual_DT'
204 build-node: 'tucson-pod'
205 config-pod: 'tucson-pod-DT'
Girish Gowdraad746502021-01-11 10:08:05 -0800206 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800207 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700208 profile: 'Default'
209 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
210 trigger-string: 'DT hardware test'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800211 default-test-args: '-i sanityDt -i PowerSwitch -X'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700212
Andy Bavier19c98a22019-11-11 13:57:11 -0700213
214 # Manual build job for Tucson pod
215 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700216 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700217 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700218 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700219 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700220 manualBranch: 'master'
Girish Gowdraad746502021-01-11 10:08:05 -0800221 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800222 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700223 profile: 'Default'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800224 default-test-args: '-i sanityORDeleteOLT -i PowerSwitch -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700225
Kailash8b8de742019-07-30 08:54:51 -0700226- job-template:
Kailashaad71012019-08-27 10:36:53 -0700227 id: 'voltha-periodic-test'
228 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700229 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700230 test-runs: 1
231 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700232 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700233 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700234 volthaSystemTestsChange: ''
235 kindVolthaChange: ''
Andrea Campanella6d562182020-10-06 18:39:30 +0200236 extraHelmFlags: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700237 sandbox: true
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800238 olts: 1
Matteo Scandolob36f0892020-11-23 12:19:48 -0800239 withAlarms: false
Andy Bavierb35171c2020-03-06 15:47:29 -0700240
Kailash8b8de742019-07-30 08:54:51 -0700241 description: |
242 <!-- Managed by Jenkins Job Builder -->
243 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
244 E2E Validation for Voltha 2.X
245
246 properties:
247 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800248 build-days-to-keep: '{big-build-days-to-keep}'
249 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Kailash8b8de742019-07-30 08:54:51 -0700250
251 wrappers:
252 - lf-infra-wrappers:
253 build-timeout: '{build-timeout}'
254 jenkins-ssh-credential: '{jenkins-ssh-credential}'
255
256 parameters:
257 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700258 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700259 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700260 description: 'Name of the Jenkins node to run the job on'
261
262 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700263 name: extraHelmFlags
Andrea Campanella6d562182020-10-06 18:39:30 +0200264 default: '--set onu={onus},pon={pons},{extraHelmFlags}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700265 description: 'Helm flags to pass to ./voltha up'
266
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800267 - bool:
268 name: withAlarms
Matteo Scandolob36f0892020-11-23 12:19:48 -0800269 default: '{withAlarms}'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800270 description: "Run alarm based tests when true"
271
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700272 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700273 name: makeTarget
274 default: '{make-target}'
275 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700276
Andy Bavier4c8b3232019-11-22 16:17:47 -0700277 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800278 name: makeFailtestTarget
279 default: '{make-target-failtest}'
280 description: 'Makefile target to invoke during failure/based test'
281
282 - string:
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800283 name: makeMultiOltTarget
284 default: '{make-target-multipleolt}'
285 description: 'Makefile target to invoke during multiple olt test'
286
287 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800288 name: makeErrortestTarget
289 default: '{make-target-errortest}'
290 description: 'Makefile target to invoke during error test'
291
292 - string:
293 name: makeAlarmtestTarget
294 default: '{make-target-alarmtest}'
295 description: 'Makefile target to invoke during alarm test'
296
297 - string:
TorstenThieme669258d2021-01-29 09:03:10 +0000298 name: make1t4gemTestTarget
299 default: '{make-target-1t4gemtest}'
300 description: 'Makefile target to invoke during 1t4gem test'
301
302 - string:
303 name: make1t8gemTestTarget
304 default: '{make-target-1t8gemtest}'
305 description: 'Makefile target to invoke during 1t8gem test'
306
307 - string:
Andy Bavier4c8b3232019-11-22 16:17:47 -0700308 name: manifestUrl
309 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700310 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700311
312 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700313 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700314 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700315 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700316
Andy Bavier3708d072019-12-10 15:22:18 -0700317 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700318 name: gerritProject
319 default: '{gerrit-project}'
320 description: 'Name of the Gerrit project'
321
322 - string:
323 name: gerritChangeNumber
324 default: ''
325 description: 'Changeset number in Gerrit'
326
327 - string:
328 name: gerritPatchsetNumber
329 default: ''
330 description: 'PatchSet number in Gerrit'
331
332 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700333 name: testRuns
334 default: '{test-runs}'
335 description: 'How many times to repeat the tests'
336
337 - string:
338 name: extraRobotArgs
339 default: '{robot-args}'
340 description: 'Arguments to pass to robot'
341
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700342 - string:
343 name: workFlow
344 default: '{work-flow}'
345 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700346
pierventref48ebc12020-07-17 16:01:32 +0200347 - string:
348 name: karafHome
349 default: '{karaf-home}'
350 description: 'Karaf home'
351
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700352 - string:
353 name: volthaSystemTestsChange
354 default: '{volthaSystemTestsChange}'
355 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
356
357 - string:
358 name: kindVolthaChange
359 default: '{kindVolthaChange}'
360 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
361
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800362 - string:
363 name: olts
364 default: '{olts}'
365 description: 'How many BBSim instances to run'
366
Kailash8b8de742019-07-30 08:54:51 -0700367 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700368 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700369
Zack Williamsb3292082019-10-11 17:15:18 -0700370 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700371
372 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700373 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700374 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700375 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700376
377- job-template:
378 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800379 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700380 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700381 sandbox: true
Matteo Scandolo42f6e572021-01-25 15:11:34 -0800382 build-timeout: 20
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700383 volthaSystemTestsChange: ''
Matteo Scandolo42f6e572021-01-25 15:11:34 -0800384 volthaHelmChartsChange: ''
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700385 kindVolthaChange: ''
Matteo Scandolo42f6e572021-01-25 15:11:34 -0800386 branch-regexp: '{all-branches-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700387
388 description: |
389 <!-- Managed by Jenkins Job Builder -->
390 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
391 E2E Validation for Voltha 2.X
392
393 properties:
394 - cord-infra-properties:
395 build-days-to-keep: '{build-days-to-keep}'
396 artifact-num-to-keep: '{artifact-num-to-keep}'
397
398 wrappers:
399 - lf-infra-wrappers:
400 build-timeout: '{build-timeout}'
401 jenkins-ssh-credential: '{jenkins-ssh-credential}'
402
403 parameters:
404 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700405 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700406 default: 'ubuntu16.04-basebuild-4c-8g'
407 description: 'Name of the Jenkins node to run the job on'
408
409 - string:
hwchiu14f97852019-10-08 10:51:11 -0700410 name: gerritProject
411 default: '$GERRIT_PROJECT'
412 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700413
414 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700415 name: gerritRefspec
416 default: '$GERRIT_REFSPEC'
417 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700418
419 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700420 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700421 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700422 description: 'Helm flags to pass to ./voltha up'
423
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700424 - string:
425 name: volthaSystemTestsChange
426 default: '{volthaSystemTestsChange}'
427 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
428
429 - string:
Matteo Scandolo42f6e572021-01-25 15:11:34 -0800430 name: volthaSystemTestsChange
431 default: '{volthaSystemTestsChange}'
432 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
433
434 - string:
435 name: volthaHelmChartsChange
436 default: '{volthaHelmChartsChange}'
437 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/79/18779/13"'
438
439 - string:
440 name: branch
441 default: '{override-branch}'
442 description: 'Name of the branch to use'
443
444 # deprecated params (not used in master, remove after 2.6 support is dropped)
445 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700446 name: kindVolthaChange
447 default: '{kindVolthaChange}'
448 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
449
Kailashaad71012019-08-27 10:36:53 -0700450 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700451 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700452
Zack Williamsb3292082019-10-11 17:15:18 -0700453 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700454
455 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700456 - gerrit:
457 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700458 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700459 silent-start: true
460 trigger-on:
461 - patchset-created-event:
462 exclude-drafts: true
463 exclude-trivial-rebase: false
464 exclude-no-code-change: true
465 - draft-published-event
466 - comment-added-contains-event:
467 comment-contains-value: '(?i)^.*recheck$'
468 projects:
469 - project-compare-type: REG_EXP
470 project-pattern: '^{project}$'
471 branches:
472 - branch-compare-type: REG_EXP
Matteo Scandolo42f6e572021-01-25 15:11:34 -0800473 branch-pattern: '{branch-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700474 file-paths:
475 - compare-type: REG_EXP
476 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700477
478# POD Per Patchset Pipeline Jobs
479
480- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700481 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700482 id: verify_physical_voltha_patchset_auto
483 description: |
484 <!-- Managed by Jenkins Job Builder -->
485 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
486 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
487 Created by Andy Bavier, andy@opennetworking.org <br />
488 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700489 sandbox: true
490 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700491 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700492
493 properties:
494 - cord-infra-properties:
495 build-days-to-keep: '{build-days-to-keep}'
496 artifact-num-to-keep: '{artifact-num-to-keep}'
497
498 parameters:
499 - string:
500 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700501 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700502 description: 'Pod management node'
503
504 - string:
505 name: manifestUrl
506 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
507 description: 'URL to the repo manifest'
508
509 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700510 name: branch
511 default: '$GERRIT_BRANCH'
512 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700513
514 - string:
515 name: gerritProject
516 default: '$GERRIT_PROJECT'
517 description: 'Name of the Gerrit project'
518
519 - string:
520 name: gerritChangeNumber
521 default: '$GERRIT_CHANGE_NUMBER'
522 description: 'Changeset number in Gerrit'
523
524 - string:
525 name: gerritPatchsetNumber
526 default: '$GERRIT_PATCHSET_NUMBER'
527 description: 'PatchSet number in Gerrit'
528
529 - string:
530 name: cordRepoUrl
531 default: '{gerrit-server-url}'
532 description: 'The URL of the CORD Project repository'
533
534 - string:
535 name: podName
536 default: '{config-pod}'
537
538 - string:
539 name: deploymentConfigFile
540 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
541 description: 'Path of deployment config file'
542
543 - string:
544 name: kindVolthaValuesFile
545 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
546 description: 'Path of kind-voltha values override file'
547
548 - string:
549 name: sadisConfigFile
550 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
551 description: 'Path of SADIS config to load'
552
553 - string:
554 name: localConfigDir
555 default: null
556 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
557
558 - string:
559 name: configRepo
560 default: 'pod-configs'
561 description: 'A repository containing the config files, will be checked out if specified'
562
563 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700564 name: oltDebVersionMaster
565 default: '{oltDebVersionMaster}'
566 description: 'OLT Software version to install for master branch builds'
567
568 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700569 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700570 default: '{oltDebVersionVoltha23}'
571 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700572
573 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700574 name: profile
575 default: '{profile}'
576 description: 'Technology Profile pushed to the ETCD'
577
578 - string:
579 name: notificationEmail
580 default: 'andy@opennetworking.org'
581 description: ''
582
583 - bool:
584 name: reinstallOlt
585 default: true
586 description: "Re-install OLT software"
587
Zack Williams03ebb272020-03-27 09:42:33 -0700588 - string:
589 name: manualBranch
590 default: '{manualBranch}'
591 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700592
593 - string:
594 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700595 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700596 description: 'Arguments to pass to robot'
597
598 project-type: pipeline
599 concurrent: true
600
601 dsl: !include-raw-escape: pipeline/{pipeline-script}
602
603 triggers:
604 - gerrit:
605 server-name: '{gerrit-server-name}'
606 dependency-jobs: '{dependency-jobs}'
607 silent-start: false
608 successful-message: "PASSED hardware test"
609 failure-message: "FAILED hardware test"
610 unstable-message: "UNSTABLE hardware test"
611 trigger-on:
612 - comment-added-event:
613 approval-category: 'Code-Review'
614 approval-value: '+2'
615 projects:
616 - project-compare-type: REG_EXP
Girish Gowdra7beebea2021-01-31 18:56:45 -0800617 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-openonu-adapter-go|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700618 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700619 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700620 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700621
622
623- job-template:
624 name: '{name}'
625 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700626 description: |
627 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700628 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700629 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700630 Created by Andy Bavier, andy@opennetworking.org <br />
631 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700632 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700633 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700634 trigger-string: 'hardware test'
635 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700636
637 properties:
638 - cord-infra-properties:
639 build-days-to-keep: '{build-days-to-keep}'
640 artifact-num-to-keep: '{artifact-num-to-keep}'
641
642 parameters:
643 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700644 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700645 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700646 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700647
648 - string:
649 name: manifestUrl
650 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
651 description: 'URL to the repo manifest'
652
653 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700654 name: branch
655 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700656 description: 'Name of the repo branch to use'
657
658 - string:
659 name: gerritProject
660 default: '$GERRIT_PROJECT'
661 description: 'Name of the Gerrit project'
662
663 - string:
664 name: gerritChangeNumber
665 default: '$GERRIT_CHANGE_NUMBER'
666 description: 'Changeset number in Gerrit'
667
668 - string:
669 name: gerritPatchsetNumber
670 default: '$GERRIT_PATCHSET_NUMBER'
671 description: 'PatchSet number in Gerrit'
672
673 - string:
674 name: cordRepoUrl
675 default: '{gerrit-server-url}'
676 description: 'The URL of the CORD Project repository'
677
678 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700679 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700680 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700681
682 - string:
683 name: deploymentConfigFile
684 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
685 description: 'Path of deployment config file'
686
687 - string:
688 name: kindVolthaValuesFile
689 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
690 description: 'Path of kind-voltha values override file'
691
692 - string:
693 name: sadisConfigFile
694 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
695 description: 'Path of SADIS config to load'
696
697 - string:
698 name: localConfigDir
699 default: null
700 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
701
702 - string:
703 name: configRepo
704 default: 'pod-configs'
705 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700706
707 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700708 name: oltDebVersionMaster
709 default: '{oltDebVersionMaster}'
710 description: 'OLT Software version to install for master branch builds'
711
712 - string:
713 name: oltDebVersionVoltha23
714 default: '{oltDebVersionVoltha23}'
715 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700716
717 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700718 name: profile
719 default: '{profile}'
720 description: 'Technology Profile pushed to the ETCD'
721
722 - string:
723 name: notificationEmail
724 default: 'andy@opennetworking.org'
725 description: ''
726
727 - bool:
728 name: reinstallOlt
729 default: true
730 description: "Re-install OLT software"
731
Zack Williams03ebb272020-03-27 09:42:33 -0700732 - string:
733 name: manualBranch
734 default: '{manualBranch}'
735 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700736
Andy Bavier8c11d462019-12-17 08:19:34 -0700737 - string:
738 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700739 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700740 description: 'Arguments to pass to robot'
741
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700742 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700743 concurrent: true
744
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700745 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700746
Andy Bavier1f465592019-11-06 10:03:56 -0700747 triggers:
748 - gerrit:
749 server-name: '{gerrit-server-name}'
750 dependency-jobs: '{dependency-jobs}'
751 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700752 successful-message: "PASSED {trigger-string}"
753 failure-message: "FAILED {trigger-string}"
754 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700755 trigger-on:
756 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700757 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800758 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700759 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700760 projects:
761 - project-compare-type: REG_EXP
Girish Gowdra7beebea2021-01-31 18:56:45 -0800762 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-openonu-adapter-go|voltha-api-server|voltha-system-tests|ofagent-py|ofagent-go|voltha-onos|kind-voltha|voltha-helm-charts)$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700763 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700764 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700765 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700766
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700767
768- job-template:
769 name: '{name}'
770 id: build_physical_voltha_manual
771 description: |
772 <!-- Managed by Jenkins Job Builder -->
773 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
774 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
775 Created by Andy Bavier, andy@opennetworking.org <br />
776 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700777 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700778 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700779
780 properties:
781 - cord-infra-properties:
782 build-days-to-keep: '{build-days-to-keep}'
783 artifact-num-to-keep: '{artifact-num-to-keep}'
784
785 parameters:
786 - string:
787 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700788 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700789 description: 'Pod management node'
790
791 - string:
792 name: manifestUrl
793 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
794 description: 'URL to the repo manifest'
795
796 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700797 name: branch
798 default: "$GERRIT_BRANCH"
799 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700800
801 - string:
802 name: gerritProject
803 default: '$GERRIT_PROJECT'
804 description: 'Name of the Gerrit project'
805
806 - string:
807 name: gerritChangeNumber
808 default: '$GERRIT_CHANGE_NUMBER'
809 description: 'Changeset number in Gerrit'
810
811 - string:
812 name: gerritPatchsetNumber
813 default: '$GERRIT_PATCHSET_NUMBER'
814 description: 'PatchSet number in Gerrit'
815
816 - string:
817 name: cordRepoUrl
818 default: '{gerrit-server-url}'
819 description: 'The URL of the CORD Project repository'
820
821 - string:
822 name: podName
823 default: '{config-pod}'
824
825 - string:
826 name: deploymentConfigFile
827 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
828 description: 'Path of deployment config file'
829
830 - string:
831 name: kindVolthaValuesFile
832 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
833 description: 'Path of kind-voltha values override file'
834
835 - string:
836 name: sadisConfigFile
837 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
838 description: 'Path of SADIS config to load'
839
840 - string:
841 name: localConfigDir
842 default: null
843 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
844
845 - string:
846 name: configRepo
847 default: 'pod-configs'
848 description: 'A repository containing the config files, will be checked out if specified'
849
850 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700851 name: oltDebVersionMaster
852 default: '{oltDebVersionMaster}'
853 description: 'OLT Software version to install for master branch builds'
854
855 - string:
856 name: oltDebVersionVoltha23
857 default: '{oltDebVersionVoltha23}'
858 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700859
860 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700861 name: profile
862 default: '{profile}'
863 description: 'Technology Profile pushed to the ETCD'
864
865 - string:
866 name: notificationEmail
867 default: 'andy@opennetworking.org'
868 description: ''
869
870 - bool:
871 name: reinstallOlt
872 default: false
873 description: "Re-install OLT software"
874
Zack Williams03ebb272020-03-27 09:42:33 -0700875 - string:
876 name: manualBranch
877 default: '{manualBranch}'
878 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700879
Andy Bavier8c11d462019-12-17 08:19:34 -0700880 - string:
881 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700882 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700883 description: 'Arguments to pass to robot'
884
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700885 project-type: pipeline
886 concurrent: true
887
888 dsl: !include-raw-escape: pipeline/{pipeline-script}