blob: 817e15fc859b7e16a04d80ad421592f84c1745be [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 Campanellaf3c32af2020-12-10 12:21:57 +010068 name: 'periodic-voltha-test-DMI'
69 pipeline-script: 'voltha-DMI-bbsim-tests.groovy'
70 build-node: 'qct-pod4-node2'
Andrea Campanellae9739492020-12-17 09:54:04 +010071 make-target: bbsim-dmi-hw-management-test
Andrea Campanellaf3c32af2020-12-10 12:21:57 +010072 withAlarms: false
73 code-branch: 'master'
74 time-trigger: "H H/12 * * *"
75
76 - 'voltha-periodic-test':
Andrea Campanellae9739492020-12-17 09:54:04 +010077 name: 'periodic-voltha-test-DMI-2.6'
78 pipeline-script: 'voltha-DMI-bbsim-tests.groovy'
79 build-node: 'qct-pod4-node2'
80 make-target: bbsim-dmi-hw-management-test
81 withAlarms: false
82 code-branch: 'voltha-2.6'
83 time-trigger: "H H/12 * * *"
84
85 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -080086 name: 'periodic-voltha-test-bbsim-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -070087 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavier10926f12020-03-27 16:53:43 -070088 build-node: 'qct-pod4-node2'
Andy Bavier10926f12020-03-27 16:53:43 -070089 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080090 make-target-failtest: bbsim-failurescenarios
91 make-target-errortest: bbsim-errorscenarios
92 make-target-alarmtest: bbsim-alarms-kind
93 withAlarms: true
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -080094 code-branch: 'voltha-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -070095 onus: 2
96 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -070097 time-trigger: "H H/12 * * *"
98
99 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -0700100 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -0800101 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -0800102 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -0800103 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -0800104 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -0800105 onus: 2
106 pons: 2
107 time-trigger: "H H/12 * * *"
108
109 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800110 name: 'periodic-voltha-etcd-test-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700111 pipeline-script: 'voltha-system-test-bbsim.groovy'
112 build-node: 'ubuntu16.04-basebuild-4c-8g'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800113 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700114 make-target: sanity-multi-kind
115 onus: 2
116 pons: 2
117 time-trigger: "H H/12 * * *"
118
119
120 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -0700121 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -0700122 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700123 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -0700124 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -0700125 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -0700126 onus: 1
127 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -0700128 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700129 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700130
131 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800132 name: 'periodic-voltha-sanity-test-multi-runs-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700133 pipeline-script: 'voltha-go-multi-tests.groovy'
134 build-node: 'qct-pod4-node2'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800135 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700136 make-target: sanity-kind
137 onus: 1
138 pons: 1
139 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700140 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700141
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700142 - 'voltha-periodic-test':
143 name: 'nightly-voltha-DTflow-sanity-test'
144 build-node: 'ubuntu16.04-basebuild-4c-8g'
145 code-branch: 'master'
146 make-target: sanity-kind-dt
147 onus: 1
148 pons: 1
149 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700150 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700151
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700152 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700153 - 'verify_physical_voltha_patchset_auto':
154 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700155 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700156 config-pod: 'tucson-pod'
Girish Gowdraad746502021-01-11 10:08:05 -0800157 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800158 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700159 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700160
161 # Per-patchset Pod builds on Tucson pod
162 - 'verify_physical_voltha_patchset_manual':
163 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700164 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700165 config-pod: 'tucson-pod'
Girish Gowdraad746502021-01-11 10:08:05 -0800166 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800167 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700168 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700169 trigger-string: 'hardware test'
170 default-test-args: '-i sanityORDeleteOLT -X'
171
172
173 # Per-patchset Pod builds on Tucson pod
174 - 'verify_physical_voltha_patchset_manual':
175 name: 'verify_physical_voltha_patchset_manual_DT'
176 build-node: 'tucson-pod'
177 config-pod: 'tucson-pod-DT'
Girish Gowdraad746502021-01-11 10:08:05 -0800178 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800179 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700180 profile: 'Default'
181 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
182 trigger-string: 'DT hardware test'
183 default-test-args: '-i sanityDt -X'
184
185
Andy Bavier19c98a22019-11-11 13:57:11 -0700186
187 # Manual build job for Tucson pod
188 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700189 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700190 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700191 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700192 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700193 manualBranch: 'master'
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 Bavier19c98a22019-11-11 13:57:11 -0700196 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700197
Kailash8b8de742019-07-30 08:54:51 -0700198- job-template:
Kailashaad71012019-08-27 10:36:53 -0700199 id: 'voltha-periodic-test'
200 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700201 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700202 test-runs: 1
203 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700204 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700205 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700206 volthaSystemTestsChange: ''
207 kindVolthaChange: ''
Andrea Campanella6d562182020-10-06 18:39:30 +0200208 extraHelmFlags: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700209 sandbox: true
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800210 olts: 1
Matteo Scandolob36f0892020-11-23 12:19:48 -0800211 withAlarms: false
Andy Bavierb35171c2020-03-06 15:47:29 -0700212
Kailash8b8de742019-07-30 08:54:51 -0700213 description: |
214 <!-- Managed by Jenkins Job Builder -->
215 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
216 E2E Validation for Voltha 2.X
217
218 properties:
219 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800220 build-days-to-keep: '{big-build-days-to-keep}'
221 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Kailash8b8de742019-07-30 08:54:51 -0700222
223 wrappers:
224 - lf-infra-wrappers:
225 build-timeout: '{build-timeout}'
226 jenkins-ssh-credential: '{jenkins-ssh-credential}'
227
228 parameters:
229 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700230 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700231 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700232 description: 'Name of the Jenkins node to run the job on'
233
234 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700235 name: extraHelmFlags
Andrea Campanella6d562182020-10-06 18:39:30 +0200236 default: '--set onu={onus},pon={pons},{extraHelmFlags}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700237 description: 'Helm flags to pass to ./voltha up'
238
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800239 - bool:
240 name: withAlarms
Matteo Scandolob36f0892020-11-23 12:19:48 -0800241 default: '{withAlarms}'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800242 description: "Run alarm based tests when true"
243
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700244 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700245 name: makeTarget
246 default: '{make-target}'
247 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700248
Andy Bavier4c8b3232019-11-22 16:17:47 -0700249 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800250 name: makeFailtestTarget
251 default: '{make-target-failtest}'
252 description: 'Makefile target to invoke during failure/based test'
253
254 - string:
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800255 name: makeMultiOltTarget
256 default: '{make-target-multipleolt}'
257 description: 'Makefile target to invoke during multiple olt test'
258
259 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800260 name: makeErrortestTarget
261 default: '{make-target-errortest}'
262 description: 'Makefile target to invoke during error test'
263
264 - string:
265 name: makeAlarmtestTarget
266 default: '{make-target-alarmtest}'
267 description: 'Makefile target to invoke during alarm test'
268
269 - string:
Andy Bavier4c8b3232019-11-22 16:17:47 -0700270 name: manifestUrl
271 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700272 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700273
274 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700275 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700276 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700277 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700278
Andy Bavier3708d072019-12-10 15:22:18 -0700279 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700280 name: gerritProject
281 default: '{gerrit-project}'
282 description: 'Name of the Gerrit project'
283
284 - string:
285 name: gerritChangeNumber
286 default: ''
287 description: 'Changeset number in Gerrit'
288
289 - string:
290 name: gerritPatchsetNumber
291 default: ''
292 description: 'PatchSet number in Gerrit'
293
294 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700295 name: testRuns
296 default: '{test-runs}'
297 description: 'How many times to repeat the tests'
298
299 - string:
300 name: extraRobotArgs
301 default: '{robot-args}'
302 description: 'Arguments to pass to robot'
303
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700304 - string:
305 name: workFlow
306 default: '{work-flow}'
307 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700308
pierventref48ebc12020-07-17 16:01:32 +0200309 - string:
310 name: karafHome
311 default: '{karaf-home}'
312 description: 'Karaf home'
313
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700314 - string:
315 name: volthaSystemTestsChange
316 default: '{volthaSystemTestsChange}'
317 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
318
319 - string:
320 name: kindVolthaChange
321 default: '{kindVolthaChange}'
322 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
323
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800324 - string:
325 name: olts
326 default: '{olts}'
327 description: 'How many BBSim instances to run'
328
Kailash8b8de742019-07-30 08:54:51 -0700329 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700330 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700331
Zack Williamsb3292082019-10-11 17:15:18 -0700332 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700333
334 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700335 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700336 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700337 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700338
339- job-template:
340 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800341 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700342 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700343 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700344 volthaSystemTestsChange: ''
345 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700346
347 description: |
348 <!-- Managed by Jenkins Job Builder -->
349 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
350 E2E Validation for Voltha 2.X
351
352 properties:
353 - cord-infra-properties:
354 build-days-to-keep: '{build-days-to-keep}'
355 artifact-num-to-keep: '{artifact-num-to-keep}'
356
357 wrappers:
358 - lf-infra-wrappers:
359 build-timeout: '{build-timeout}'
360 jenkins-ssh-credential: '{jenkins-ssh-credential}'
361
362 parameters:
363 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700364 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700365 default: 'ubuntu16.04-basebuild-4c-8g'
366 description: 'Name of the Jenkins node to run the job on'
367
368 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700369 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700370 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700371 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700372
373 - string:
hwchiu14f97852019-10-08 10:51:11 -0700374 name: gerritProject
375 default: '$GERRIT_PROJECT'
376 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700377
378 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700379 name: gerritRefspec
380 default: '$GERRIT_REFSPEC'
381 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700382
383 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700384 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700385 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700386 description: 'Helm flags to pass to ./voltha up'
387
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700388 - string:
389 name: volthaSystemTestsChange
390 default: '{volthaSystemTestsChange}'
391 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
392
393 - string:
394 name: kindVolthaChange
395 default: '{kindVolthaChange}'
396 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
397
Kailashaad71012019-08-27 10:36:53 -0700398 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700399 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700400
Zack Williamsb3292082019-10-11 17:15:18 -0700401 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700402
403 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700404 - gerrit:
405 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700406 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700407 silent-start: true
408 trigger-on:
409 - patchset-created-event:
410 exclude-drafts: true
411 exclude-trivial-rebase: false
412 exclude-no-code-change: true
413 - draft-published-event
414 - comment-added-contains-event:
415 comment-contains-value: '(?i)^.*recheck$'
416 projects:
417 - project-compare-type: REG_EXP
418 project-pattern: '^{project}$'
419 branches:
420 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700421 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700422 file-paths:
423 - compare-type: REG_EXP
424 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700425
426# POD Per Patchset Pipeline Jobs
427
428- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700429 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700430 id: verify_physical_voltha_patchset_auto
431 description: |
432 <!-- Managed by Jenkins Job Builder -->
433 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
434 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
435 Created by Andy Bavier, andy@opennetworking.org <br />
436 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700437 sandbox: true
438 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700439 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700440
441 properties:
442 - cord-infra-properties:
443 build-days-to-keep: '{build-days-to-keep}'
444 artifact-num-to-keep: '{artifact-num-to-keep}'
445
446 parameters:
447 - string:
448 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700449 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700450 description: 'Pod management node'
451
452 - string:
453 name: manifestUrl
454 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
455 description: 'URL to the repo manifest'
456
457 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700458 name: branch
459 default: '$GERRIT_BRANCH'
460 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700461
462 - string:
463 name: gerritProject
464 default: '$GERRIT_PROJECT'
465 description: 'Name of the Gerrit project'
466
467 - string:
468 name: gerritChangeNumber
469 default: '$GERRIT_CHANGE_NUMBER'
470 description: 'Changeset number in Gerrit'
471
472 - string:
473 name: gerritPatchsetNumber
474 default: '$GERRIT_PATCHSET_NUMBER'
475 description: 'PatchSet number in Gerrit'
476
477 - string:
478 name: cordRepoUrl
479 default: '{gerrit-server-url}'
480 description: 'The URL of the CORD Project repository'
481
482 - string:
483 name: podName
484 default: '{config-pod}'
485
486 - string:
487 name: deploymentConfigFile
488 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
489 description: 'Path of deployment config file'
490
491 - string:
492 name: kindVolthaValuesFile
493 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
494 description: 'Path of kind-voltha values override file'
495
496 - string:
497 name: sadisConfigFile
498 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
499 description: 'Path of SADIS config to load'
500
501 - string:
502 name: localConfigDir
503 default: null
504 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
505
506 - string:
507 name: configRepo
508 default: 'pod-configs'
509 description: 'A repository containing the config files, will be checked out if specified'
510
511 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700512 name: oltDebVersionMaster
513 default: '{oltDebVersionMaster}'
514 description: 'OLT Software version to install for master branch builds'
515
516 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700517 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700518 default: '{oltDebVersionVoltha23}'
519 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700520
521 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700522 name: profile
523 default: '{profile}'
524 description: 'Technology Profile pushed to the ETCD'
525
526 - string:
527 name: notificationEmail
528 default: 'andy@opennetworking.org'
529 description: ''
530
531 - bool:
532 name: reinstallOlt
533 default: true
534 description: "Re-install OLT software"
535
Zack Williams03ebb272020-03-27 09:42:33 -0700536 - string:
537 name: manualBranch
538 default: '{manualBranch}'
539 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700540
541 - string:
542 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700543 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700544 description: 'Arguments to pass to robot'
545
546 project-type: pipeline
547 concurrent: true
548
549 dsl: !include-raw-escape: pipeline/{pipeline-script}
550
551 triggers:
552 - gerrit:
553 server-name: '{gerrit-server-name}'
554 dependency-jobs: '{dependency-jobs}'
555 silent-start: false
556 successful-message: "PASSED hardware test"
557 failure-message: "FAILED hardware test"
558 unstable-message: "UNSTABLE hardware test"
559 trigger-on:
560 - comment-added-event:
561 approval-category: 'Code-Review'
562 approval-value: '+2'
563 projects:
564 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700565 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700566 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700567 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700568 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700569
570
571- job-template:
572 name: '{name}'
573 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700574 description: |
575 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700576 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700577 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700578 Created by Andy Bavier, andy@opennetworking.org <br />
579 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700580 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700581 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700582 trigger-string: 'hardware test'
583 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700584
585 properties:
586 - cord-infra-properties:
587 build-days-to-keep: '{build-days-to-keep}'
588 artifact-num-to-keep: '{artifact-num-to-keep}'
589
590 parameters:
591 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700592 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700593 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700594 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700595
596 - string:
597 name: manifestUrl
598 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
599 description: 'URL to the repo manifest'
600
601 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700602 name: branch
603 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700604 description: 'Name of the repo branch to use'
605
606 - string:
607 name: gerritProject
608 default: '$GERRIT_PROJECT'
609 description: 'Name of the Gerrit project'
610
611 - string:
612 name: gerritChangeNumber
613 default: '$GERRIT_CHANGE_NUMBER'
614 description: 'Changeset number in Gerrit'
615
616 - string:
617 name: gerritPatchsetNumber
618 default: '$GERRIT_PATCHSET_NUMBER'
619 description: 'PatchSet number in Gerrit'
620
621 - string:
622 name: cordRepoUrl
623 default: '{gerrit-server-url}'
624 description: 'The URL of the CORD Project repository'
625
626 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700627 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700628 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700629
630 - string:
631 name: deploymentConfigFile
632 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
633 description: 'Path of deployment config file'
634
635 - string:
636 name: kindVolthaValuesFile
637 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
638 description: 'Path of kind-voltha values override file'
639
640 - string:
641 name: sadisConfigFile
642 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
643 description: 'Path of SADIS config to load'
644
645 - string:
646 name: localConfigDir
647 default: null
648 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
649
650 - string:
651 name: configRepo
652 default: 'pod-configs'
653 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700654
655 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700656 name: oltDebVersionMaster
657 default: '{oltDebVersionMaster}'
658 description: 'OLT Software version to install for master branch builds'
659
660 - string:
661 name: oltDebVersionVoltha23
662 default: '{oltDebVersionVoltha23}'
663 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700664
665 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700666 name: profile
667 default: '{profile}'
668 description: 'Technology Profile pushed to the ETCD'
669
670 - string:
671 name: notificationEmail
672 default: 'andy@opennetworking.org'
673 description: ''
674
675 - bool:
676 name: reinstallOlt
677 default: true
678 description: "Re-install OLT software"
679
Zack Williams03ebb272020-03-27 09:42:33 -0700680 - string:
681 name: manualBranch
682 default: '{manualBranch}'
683 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700684
Andy Bavier8c11d462019-12-17 08:19:34 -0700685 - string:
686 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700687 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700688 description: 'Arguments to pass to robot'
689
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700690 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700691 concurrent: true
692
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700693 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700694
Andy Bavier1f465592019-11-06 10:03:56 -0700695 triggers:
696 - gerrit:
697 server-name: '{gerrit-server-name}'
698 dependency-jobs: '{dependency-jobs}'
699 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700700 successful-message: "PASSED {trigger-string}"
701 failure-message: "FAILED {trigger-string}"
702 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700703 trigger-on:
704 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700705 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800706 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700707 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700708 projects:
709 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700710 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 -0700711 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700712 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700713 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700714
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700715
716- job-template:
717 name: '{name}'
718 id: build_physical_voltha_manual
719 description: |
720 <!-- Managed by Jenkins Job Builder -->
721 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
722 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
723 Created by Andy Bavier, andy@opennetworking.org <br />
724 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700725 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700726 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700727
728 properties:
729 - cord-infra-properties:
730 build-days-to-keep: '{build-days-to-keep}'
731 artifact-num-to-keep: '{artifact-num-to-keep}'
732
733 parameters:
734 - string:
735 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700736 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700737 description: 'Pod management node'
738
739 - string:
740 name: manifestUrl
741 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
742 description: 'URL to the repo manifest'
743
744 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700745 name: branch
746 default: "$GERRIT_BRANCH"
747 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700748
749 - string:
750 name: gerritProject
751 default: '$GERRIT_PROJECT'
752 description: 'Name of the Gerrit project'
753
754 - string:
755 name: gerritChangeNumber
756 default: '$GERRIT_CHANGE_NUMBER'
757 description: 'Changeset number in Gerrit'
758
759 - string:
760 name: gerritPatchsetNumber
761 default: '$GERRIT_PATCHSET_NUMBER'
762 description: 'PatchSet number in Gerrit'
763
764 - string:
765 name: cordRepoUrl
766 default: '{gerrit-server-url}'
767 description: 'The URL of the CORD Project repository'
768
769 - string:
770 name: podName
771 default: '{config-pod}'
772
773 - string:
774 name: deploymentConfigFile
775 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
776 description: 'Path of deployment config file'
777
778 - string:
779 name: kindVolthaValuesFile
780 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
781 description: 'Path of kind-voltha values override file'
782
783 - string:
784 name: sadisConfigFile
785 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
786 description: 'Path of SADIS config to load'
787
788 - string:
789 name: localConfigDir
790 default: null
791 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
792
793 - string:
794 name: configRepo
795 default: 'pod-configs'
796 description: 'A repository containing the config files, will be checked out if specified'
797
798 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700799 name: oltDebVersionMaster
800 default: '{oltDebVersionMaster}'
801 description: 'OLT Software version to install for master branch builds'
802
803 - string:
804 name: oltDebVersionVoltha23
805 default: '{oltDebVersionVoltha23}'
806 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700807
808 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700809 name: profile
810 default: '{profile}'
811 description: 'Technology Profile pushed to the ETCD'
812
813 - string:
814 name: notificationEmail
815 default: 'andy@opennetworking.org'
816 description: ''
817
818 - bool:
819 name: reinstallOlt
820 default: false
821 description: "Re-install OLT software"
822
Zack Williams03ebb272020-03-27 09:42:33 -0700823 - string:
824 name: manualBranch
825 default: '{manualBranch}'
826 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700827
Andy Bavier8c11d462019-12-17 08:19:34 -0700828 - string:
829 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700830 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700831 description: 'Arguments to pass to robot'
832
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700833 project-type: pipeline
834 concurrent: true
835
836 dsl: !include-raw-escape: pipeline/{pipeline-script}