blob: bc74e827ab1b23c75412a3083f7566da60f60139 [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
Kailash8b8de742019-07-30 08:54:51 -070017
18 jobs:
hwchiu14f97852019-10-08 10:51:11 -070019 - 'voltha-periodic-test':
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070020 name: 'periodic-voltha-test-bbsim'
21 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavierf93f3142020-01-09 16:08:51 -070022 build-node: 'qct-pod4-node2'
Andy Bavierd4ba3372020-01-21 17:01:53 -070023 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080024 make-target-failtest: bbsim-failurescenarios
25 make-target-errortest: bbsim-errorscenarios
26 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080027 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080028 withAlarms: true
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070029 code-branch: 'master'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080030 olts: 1
31 onus: 2
32 pons: 2
33 time-trigger: "H H/12 * * *"
34
35 - 'voltha-periodic-test':
36 name: 'periodic-voltha-multiple-olts-test-bbsim'
37 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
38 build-node: 'qct-pod4-node2'
Suchitra Vemurie50560a2020-11-18 14:14:09 -080039 make-target: functional-multi-olt
40 make-target-failtest: bbsim-multiolt-failurescenarios
41 make-target-errortest: bbsim-multiolt-errorscenarios
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080042 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080043 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080044 withAlarms: false
45 code-branch: 'master'
46 olts: 2
Andy Bavier4be37062020-06-29 15:17:26 -070047 onus: 2
48 pons: 2
Andy Bavierd4ba3372020-01-21 17:01:53 -070049 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070050
51 - 'voltha-periodic-test':
Suchitra Vemuri95a73432020-12-16 13:17:48 -080052 name: 'periodic-voltha-2.6-multiple-olts-test-bbsim'
53 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
54 build-node: 'qct-pod4-node2'
55 make-target: functional-multi-olt
56 make-target-failtest: bbsim-multiolt-failurescenarios
57 make-target-errortest: bbsim-multiolt-errorscenarios
58 make-target-alarmtest: bbsim-alarms-kind
59 make-target-multipleolt: bbsim-multiolt-kind
60 withAlarms: false
61 code-branch: 'voltha-2.6'
62 olts: 2
63 onus: 2
64 pons: 2
65 time-trigger: "H H/12 * * *"
66
67 - 'voltha-periodic-test':
Andrea Campanella1aa547e2020-10-05 10:32:28 +020068 name: 'periodic-voltha-test-bbsim-openonugo'
69 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
70 build-node: 'qct-pod4-node2'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080071 make-target-failtest: bbsim-failurescenarios
72 make-target-errortest: bbsim-errorscenarios
73 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080074 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080075 withAlarms: true
Andrea Campanella1aa547e2020-10-05 10:32:28 +020076 make-target: functional-single-kind
77 code-branch: 'master'
Andrea Campanella92011402020-10-07 00:20:19 +020078 work-flow: 'DT'
Andrea Campanella51b1c0b2020-10-13 12:12:01 +020079 extraHelmFlags: 'use_openonu_adapter_go=true,images.adapter_open_onu_go.repository=voltha/voltha-openonu-adapter-go,images.adapter_open_onu_go.tag=master'
Andrea Campanella1aa547e2020-10-05 10:32:28 +020080 onus: 2
81 pons: 2
82 time-trigger: "H H/12 * * *"
83
84 - 'voltha-periodic-test':
Andrea Campanellaf3c32af2020-12-10 12:21:57 +010085 name: 'periodic-voltha-test-DMI'
86 pipeline-script: 'voltha-DMI-bbsim-tests.groovy'
87 build-node: 'qct-pod4-node2'
88 make-target: voltha-dmi-hw-management-test
89 withAlarms: false
90 code-branch: 'master'
91 time-trigger: "H H/12 * * *"
92
93 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -080094 name: 'periodic-voltha-test-bbsim-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -070095 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavier10926f12020-03-27 16:53:43 -070096 build-node: 'qct-pod4-node2'
Andy Bavier10926f12020-03-27 16:53:43 -070097 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080098 make-target-failtest: bbsim-failurescenarios
99 make-target-errortest: bbsim-errorscenarios
100 make-target-alarmtest: bbsim-alarms-kind
101 withAlarms: true
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800102 code-branch: 'voltha-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -0700103 onus: 2
104 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -0700105 time-trigger: "H H/12 * * *"
106
107 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -0700108 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -0800109 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -0800110 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -0800111 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -0800112 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -0800113 onus: 2
114 pons: 2
115 time-trigger: "H H/12 * * *"
116
117 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800118 name: 'periodic-voltha-etcd-test-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700119 pipeline-script: 'voltha-system-test-bbsim.groovy'
120 build-node: 'ubuntu16.04-basebuild-4c-8g'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800121 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700122 make-target: sanity-multi-kind
123 onus: 2
124 pons: 2
125 time-trigger: "H H/12 * * *"
126
127
128 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -0700129 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -0700130 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700131 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -0700132 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -0700133 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -0700134 onus: 1
135 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -0700136 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700137 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700138
139 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800140 name: 'periodic-voltha-sanity-test-multi-runs-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700141 pipeline-script: 'voltha-go-multi-tests.groovy'
142 build-node: 'qct-pod4-node2'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800143 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700144 make-target: sanity-kind
145 onus: 1
146 pons: 1
147 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700148 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700149
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700150 - 'voltha-periodic-test':
151 name: 'nightly-voltha-DTflow-sanity-test'
152 build-node: 'ubuntu16.04-basebuild-4c-8g'
153 code-branch: 'master'
154 make-target: sanity-kind-dt
155 onus: 1
156 pons: 1
157 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700158 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700159
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700160 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700161 - 'verify_physical_voltha_patchset_auto':
162 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700163 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700164 config-pod: 'tucson-pod'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800165 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800166 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700167 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700168
169 # Per-patchset Pod builds on Tucson pod
170 - 'verify_physical_voltha_patchset_manual':
171 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700172 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700173 config-pod: 'tucson-pod'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800174 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800175 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700176 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700177 trigger-string: 'hardware test'
178 default-test-args: '-i sanityORDeleteOLT -X'
179
180
181 # Per-patchset Pod builds on Tucson pod
182 - 'verify_physical_voltha_patchset_manual':
183 name: 'verify_physical_voltha_patchset_manual_DT'
184 build-node: 'tucson-pod'
185 config-pod: 'tucson-pod-DT'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800186 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800187 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700188 profile: 'Default'
189 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
190 trigger-string: 'DT hardware test'
191 default-test-args: '-i sanityDt -X'
192
193
Andy Bavier19c98a22019-11-11 13:57:11 -0700194
195 # Manual build job for Tucson pod
196 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700197 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700198 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700199 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700200 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700201 manualBranch: 'master'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800202 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800203 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700204 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700205
Kailash8b8de742019-07-30 08:54:51 -0700206- job-template:
Kailashaad71012019-08-27 10:36:53 -0700207 id: 'voltha-periodic-test'
208 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700209 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700210 test-runs: 1
211 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700212 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700213 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700214 volthaSystemTestsChange: ''
215 kindVolthaChange: ''
Andrea Campanella6d562182020-10-06 18:39:30 +0200216 extraHelmFlags: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700217 sandbox: true
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800218 olts: 1
Matteo Scandolob36f0892020-11-23 12:19:48 -0800219 withAlarms: false
Andy Bavierb35171c2020-03-06 15:47:29 -0700220
Kailash8b8de742019-07-30 08:54:51 -0700221 description: |
222 <!-- Managed by Jenkins Job Builder -->
223 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
224 E2E Validation for Voltha 2.X
225
226 properties:
227 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800228 build-days-to-keep: '{big-build-days-to-keep}'
229 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Kailash8b8de742019-07-30 08:54:51 -0700230
231 wrappers:
232 - lf-infra-wrappers:
233 build-timeout: '{build-timeout}'
234 jenkins-ssh-credential: '{jenkins-ssh-credential}'
235
236 parameters:
237 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700238 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700239 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700240 description: 'Name of the Jenkins node to run the job on'
241
242 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700243 name: extraHelmFlags
Andrea Campanella6d562182020-10-06 18:39:30 +0200244 default: '--set onu={onus},pon={pons},{extraHelmFlags}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700245 description: 'Helm flags to pass to ./voltha up'
246
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800247 - bool:
248 name: withAlarms
Matteo Scandolob36f0892020-11-23 12:19:48 -0800249 default: '{withAlarms}'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800250 description: "Run alarm based tests when true"
251
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700252 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700253 name: makeTarget
254 default: '{make-target}'
255 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700256
Andy Bavier4c8b3232019-11-22 16:17:47 -0700257 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800258 name: makeFailtestTarget
259 default: '{make-target-failtest}'
260 description: 'Makefile target to invoke during failure/based test'
261
262 - string:
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800263 name: makeMultiOltTarget
264 default: '{make-target-multipleolt}'
265 description: 'Makefile target to invoke during multiple olt test'
266
267 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800268 name: makeErrortestTarget
269 default: '{make-target-errortest}'
270 description: 'Makefile target to invoke during error test'
271
272 - string:
273 name: makeAlarmtestTarget
274 default: '{make-target-alarmtest}'
275 description: 'Makefile target to invoke during alarm test'
276
277 - string:
Andy Bavier4c8b3232019-11-22 16:17:47 -0700278 name: manifestUrl
279 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700280 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700281
282 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700283 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700284 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700285 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700286
Andy Bavier3708d072019-12-10 15:22:18 -0700287 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700288 name: gerritProject
289 default: '{gerrit-project}'
290 description: 'Name of the Gerrit project'
291
292 - string:
293 name: gerritChangeNumber
294 default: ''
295 description: 'Changeset number in Gerrit'
296
297 - string:
298 name: gerritPatchsetNumber
299 default: ''
300 description: 'PatchSet number in Gerrit'
301
302 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700303 name: testRuns
304 default: '{test-runs}'
305 description: 'How many times to repeat the tests'
306
307 - string:
308 name: extraRobotArgs
309 default: '{robot-args}'
310 description: 'Arguments to pass to robot'
311
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700312 - string:
313 name: workFlow
314 default: '{work-flow}'
315 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700316
pierventref48ebc12020-07-17 16:01:32 +0200317 - string:
318 name: karafHome
319 default: '{karaf-home}'
320 description: 'Karaf home'
321
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700322 - string:
323 name: volthaSystemTestsChange
324 default: '{volthaSystemTestsChange}'
325 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
326
327 - string:
328 name: kindVolthaChange
329 default: '{kindVolthaChange}'
330 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
331
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800332 - string:
333 name: olts
334 default: '{olts}'
335 description: 'How many BBSim instances to run'
336
Kailash8b8de742019-07-30 08:54:51 -0700337 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700338 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700339
Zack Williamsb3292082019-10-11 17:15:18 -0700340 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700341
342 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700343 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700344 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700345 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700346
347- job-template:
348 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800349 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700350 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700351 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700352 volthaSystemTestsChange: ''
353 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700354
355 description: |
356 <!-- Managed by Jenkins Job Builder -->
357 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
358 E2E Validation for Voltha 2.X
359
360 properties:
361 - cord-infra-properties:
362 build-days-to-keep: '{build-days-to-keep}'
363 artifact-num-to-keep: '{artifact-num-to-keep}'
364
365 wrappers:
366 - lf-infra-wrappers:
367 build-timeout: '{build-timeout}'
368 jenkins-ssh-credential: '{jenkins-ssh-credential}'
369
370 parameters:
371 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700372 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700373 default: 'ubuntu16.04-basebuild-4c-8g'
374 description: 'Name of the Jenkins node to run the job on'
375
376 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700377 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700378 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700379 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700380
381 - string:
hwchiu14f97852019-10-08 10:51:11 -0700382 name: gerritProject
383 default: '$GERRIT_PROJECT'
384 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700385
386 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700387 name: gerritRefspec
388 default: '$GERRIT_REFSPEC'
389 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700390
391 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700392 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700393 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700394 description: 'Helm flags to pass to ./voltha up'
395
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700396 - string:
397 name: volthaSystemTestsChange
398 default: '{volthaSystemTestsChange}'
399 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
400
401 - string:
402 name: kindVolthaChange
403 default: '{kindVolthaChange}'
404 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
405
Kailashaad71012019-08-27 10:36:53 -0700406 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700407 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700408
Zack Williamsb3292082019-10-11 17:15:18 -0700409 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700410
411 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700412 - gerrit:
413 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700414 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700415 silent-start: true
416 trigger-on:
417 - patchset-created-event:
418 exclude-drafts: true
419 exclude-trivial-rebase: false
420 exclude-no-code-change: true
421 - draft-published-event
422 - comment-added-contains-event:
423 comment-contains-value: '(?i)^.*recheck$'
424 projects:
425 - project-compare-type: REG_EXP
426 project-pattern: '^{project}$'
427 branches:
428 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700429 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700430 file-paths:
431 - compare-type: REG_EXP
432 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700433
434# POD Per Patchset Pipeline Jobs
435
436- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700437 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700438 id: verify_physical_voltha_patchset_auto
439 description: |
440 <!-- Managed by Jenkins Job Builder -->
441 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
442 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
443 Created by Andy Bavier, andy@opennetworking.org <br />
444 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700445 sandbox: true
446 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700447 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700448
449 properties:
450 - cord-infra-properties:
451 build-days-to-keep: '{build-days-to-keep}'
452 artifact-num-to-keep: '{artifact-num-to-keep}'
453
454 parameters:
455 - string:
456 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700457 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700458 description: 'Pod management node'
459
460 - string:
461 name: manifestUrl
462 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
463 description: 'URL to the repo manifest'
464
465 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700466 name: branch
467 default: '$GERRIT_BRANCH'
468 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700469
470 - string:
471 name: gerritProject
472 default: '$GERRIT_PROJECT'
473 description: 'Name of the Gerrit project'
474
475 - string:
476 name: gerritChangeNumber
477 default: '$GERRIT_CHANGE_NUMBER'
478 description: 'Changeset number in Gerrit'
479
480 - string:
481 name: gerritPatchsetNumber
482 default: '$GERRIT_PATCHSET_NUMBER'
483 description: 'PatchSet number in Gerrit'
484
485 - string:
486 name: cordRepoUrl
487 default: '{gerrit-server-url}'
488 description: 'The URL of the CORD Project repository'
489
490 - string:
491 name: podName
492 default: '{config-pod}'
493
494 - string:
495 name: deploymentConfigFile
496 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
497 description: 'Path of deployment config file'
498
499 - string:
500 name: kindVolthaValuesFile
501 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
502 description: 'Path of kind-voltha values override file'
503
504 - string:
505 name: sadisConfigFile
506 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
507 description: 'Path of SADIS config to load'
508
509 - string:
510 name: localConfigDir
511 default: null
512 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
513
514 - string:
515 name: configRepo
516 default: 'pod-configs'
517 description: 'A repository containing the config files, will be checked out if specified'
518
519 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700520 name: oltDebVersionMaster
521 default: '{oltDebVersionMaster}'
522 description: 'OLT Software version to install for master branch builds'
523
524 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700525 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700526 default: '{oltDebVersionVoltha23}'
527 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700528
529 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700530 name: profile
531 default: '{profile}'
532 description: 'Technology Profile pushed to the ETCD'
533
534 - string:
535 name: notificationEmail
536 default: 'andy@opennetworking.org'
537 description: ''
538
539 - bool:
540 name: reinstallOlt
541 default: true
542 description: "Re-install OLT software"
543
Zack Williams03ebb272020-03-27 09:42:33 -0700544 - string:
545 name: manualBranch
546 default: '{manualBranch}'
547 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700548
549 - string:
550 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700551 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700552 description: 'Arguments to pass to robot'
553
554 project-type: pipeline
555 concurrent: true
556
557 dsl: !include-raw-escape: pipeline/{pipeline-script}
558
559 triggers:
560 - gerrit:
561 server-name: '{gerrit-server-name}'
562 dependency-jobs: '{dependency-jobs}'
563 silent-start: false
564 successful-message: "PASSED hardware test"
565 failure-message: "FAILED hardware test"
566 unstable-message: "UNSTABLE hardware test"
567 trigger-on:
568 - comment-added-event:
569 approval-category: 'Code-Review'
570 approval-value: '+2'
571 projects:
572 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700573 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700574 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700575 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700576 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700577
578
579- job-template:
580 name: '{name}'
581 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700582 description: |
583 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700584 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700585 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700586 Created by Andy Bavier, andy@opennetworking.org <br />
587 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700588 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700589 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700590 trigger-string: 'hardware test'
591 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700592
593 properties:
594 - cord-infra-properties:
595 build-days-to-keep: '{build-days-to-keep}'
596 artifact-num-to-keep: '{artifact-num-to-keep}'
597
598 parameters:
599 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700600 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700601 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700602 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700603
604 - string:
605 name: manifestUrl
606 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
607 description: 'URL to the repo manifest'
608
609 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700610 name: branch
611 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700612 description: 'Name of the repo branch to use'
613
614 - string:
615 name: gerritProject
616 default: '$GERRIT_PROJECT'
617 description: 'Name of the Gerrit project'
618
619 - string:
620 name: gerritChangeNumber
621 default: '$GERRIT_CHANGE_NUMBER'
622 description: 'Changeset number in Gerrit'
623
624 - string:
625 name: gerritPatchsetNumber
626 default: '$GERRIT_PATCHSET_NUMBER'
627 description: 'PatchSet number in Gerrit'
628
629 - string:
630 name: cordRepoUrl
631 default: '{gerrit-server-url}'
632 description: 'The URL of the CORD Project repository'
633
634 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700635 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700636 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700637
638 - string:
639 name: deploymentConfigFile
640 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
641 description: 'Path of deployment config file'
642
643 - string:
644 name: kindVolthaValuesFile
645 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
646 description: 'Path of kind-voltha values override file'
647
648 - string:
649 name: sadisConfigFile
650 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
651 description: 'Path of SADIS config to load'
652
653 - string:
654 name: localConfigDir
655 default: null
656 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
657
658 - string:
659 name: configRepo
660 default: 'pod-configs'
661 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700662
663 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700664 name: oltDebVersionMaster
665 default: '{oltDebVersionMaster}'
666 description: 'OLT Software version to install for master branch builds'
667
668 - string:
669 name: oltDebVersionVoltha23
670 default: '{oltDebVersionVoltha23}'
671 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700672
673 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700674 name: profile
675 default: '{profile}'
676 description: 'Technology Profile pushed to the ETCD'
677
678 - string:
679 name: notificationEmail
680 default: 'andy@opennetworking.org'
681 description: ''
682
683 - bool:
684 name: reinstallOlt
685 default: true
686 description: "Re-install OLT software"
687
Zack Williams03ebb272020-03-27 09:42:33 -0700688 - string:
689 name: manualBranch
690 default: '{manualBranch}'
691 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700692
Andy Bavier8c11d462019-12-17 08:19:34 -0700693 - string:
694 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700695 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700696 description: 'Arguments to pass to robot'
697
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700698 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700699 concurrent: true
700
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700701 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700702
Andy Bavier1f465592019-11-06 10:03:56 -0700703 triggers:
704 - gerrit:
705 server-name: '{gerrit-server-name}'
706 dependency-jobs: '{dependency-jobs}'
707 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700708 successful-message: "PASSED {trigger-string}"
709 failure-message: "FAILED {trigger-string}"
710 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700711 trigger-on:
712 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700713 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800714 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700715 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700716 projects:
717 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700718 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests|ofagent-py|ofagent-go|voltha-onos|kind-voltha|voltha-helm-charts)$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700719 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700720 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700721 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700722
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700723
724- job-template:
725 name: '{name}'
726 id: build_physical_voltha_manual
727 description: |
728 <!-- Managed by Jenkins Job Builder -->
729 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
730 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
731 Created by Andy Bavier, andy@opennetworking.org <br />
732 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700733 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700734 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700735
736 properties:
737 - cord-infra-properties:
738 build-days-to-keep: '{build-days-to-keep}'
739 artifact-num-to-keep: '{artifact-num-to-keep}'
740
741 parameters:
742 - string:
743 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700744 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700745 description: 'Pod management node'
746
747 - string:
748 name: manifestUrl
749 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
750 description: 'URL to the repo manifest'
751
752 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700753 name: branch
754 default: "$GERRIT_BRANCH"
755 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700756
757 - string:
758 name: gerritProject
759 default: '$GERRIT_PROJECT'
760 description: 'Name of the Gerrit project'
761
762 - string:
763 name: gerritChangeNumber
764 default: '$GERRIT_CHANGE_NUMBER'
765 description: 'Changeset number in Gerrit'
766
767 - string:
768 name: gerritPatchsetNumber
769 default: '$GERRIT_PATCHSET_NUMBER'
770 description: 'PatchSet number in Gerrit'
771
772 - string:
773 name: cordRepoUrl
774 default: '{gerrit-server-url}'
775 description: 'The URL of the CORD Project repository'
776
777 - string:
778 name: podName
779 default: '{config-pod}'
780
781 - string:
782 name: deploymentConfigFile
783 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
784 description: 'Path of deployment config file'
785
786 - string:
787 name: kindVolthaValuesFile
788 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
789 description: 'Path of kind-voltha values override file'
790
791 - string:
792 name: sadisConfigFile
793 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
794 description: 'Path of SADIS config to load'
795
796 - string:
797 name: localConfigDir
798 default: null
799 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
800
801 - string:
802 name: configRepo
803 default: 'pod-configs'
804 description: 'A repository containing the config files, will be checked out if specified'
805
806 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700807 name: oltDebVersionMaster
808 default: '{oltDebVersionMaster}'
809 description: 'OLT Software version to install for master branch builds'
810
811 - string:
812 name: oltDebVersionVoltha23
813 default: '{oltDebVersionVoltha23}'
814 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700815
816 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700817 name: profile
818 default: '{profile}'
819 description: 'Technology Profile pushed to the ETCD'
820
821 - string:
822 name: notificationEmail
823 default: 'andy@opennetworking.org'
824 description: ''
825
826 - bool:
827 name: reinstallOlt
828 default: false
829 description: "Re-install OLT software"
830
Zack Williams03ebb272020-03-27 09:42:33 -0700831 - string:
832 name: manualBranch
833 default: '{manualBranch}'
834 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700835
Andy Bavier8c11d462019-12-17 08:19:34 -0700836 - string:
837 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700838 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700839 description: 'Arguments to pass to robot'
840
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700841 project-type: pipeline
842 concurrent: true
843
844 dsl: !include-raw-escape: pipeline/{pipeline-script}