blob: 0bc47df8e10886cb5ea5c3048eac29db9bc2259c [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':
TorstenThieme326e7972021-01-19 14:27:59 +000068 name: 'periodic-voltha-openonu-go-test-bbsim'
69 pipeline-script: 'voltha-openonu-go-test-bbsim.groovy'
70 build-node: 'ubuntu16.04-basebuild-4c-8g'
71 make-target: openonu-go-adapter-test
72 withAlarms: false
73 code-branch: 'master'
74 time-trigger: "H H/12 * * *"
75
76 - 'voltha-periodic-test':
Andrea Campanellaf3c32af2020-12-10 12:21:57 +010077 name: 'periodic-voltha-test-DMI'
78 pipeline-script: 'voltha-DMI-bbsim-tests.groovy'
79 build-node: 'qct-pod4-node2'
Andrea Campanellae9739492020-12-17 09:54:04 +010080 make-target: bbsim-dmi-hw-management-test
Andrea Campanellaf3c32af2020-12-10 12:21:57 +010081 withAlarms: false
82 code-branch: 'master'
83 time-trigger: "H H/12 * * *"
84
85 - 'voltha-periodic-test':
Andrea Campanellae9739492020-12-17 09:54:04 +010086 name: 'periodic-voltha-test-DMI-2.6'
87 pipeline-script: 'voltha-DMI-bbsim-tests.groovy'
88 build-node: 'qct-pod4-node2'
89 make-target: bbsim-dmi-hw-management-test
90 withAlarms: false
91 code-branch: 'voltha-2.6'
92 time-trigger: "H H/12 * * *"
93
94 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -080095 name: 'periodic-voltha-test-bbsim-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -070096 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavier10926f12020-03-27 16:53:43 -070097 build-node: 'qct-pod4-node2'
Andy Bavier10926f12020-03-27 16:53:43 -070098 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080099 make-target-failtest: bbsim-failurescenarios
100 make-target-errortest: bbsim-errorscenarios
101 make-target-alarmtest: bbsim-alarms-kind
102 withAlarms: true
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800103 code-branch: 'voltha-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -0700104 onus: 2
105 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -0700106 time-trigger: "H H/12 * * *"
107
108 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -0700109 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -0800110 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -0800111 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -0800112 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -0800113 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -0800114 onus: 2
115 pons: 2
116 time-trigger: "H H/12 * * *"
117
118 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800119 name: 'periodic-voltha-etcd-test-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700120 pipeline-script: 'voltha-system-test-bbsim.groovy'
121 build-node: 'ubuntu16.04-basebuild-4c-8g'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800122 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700123 make-target: sanity-multi-kind
124 onus: 2
125 pons: 2
126 time-trigger: "H H/12 * * *"
127
128
129 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -0700130 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -0700131 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700132 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -0700133 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -0700134 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -0700135 onus: 1
136 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -0700137 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700138 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700139
140 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800141 name: 'periodic-voltha-sanity-test-multi-runs-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700142 pipeline-script: 'voltha-go-multi-tests.groovy'
143 build-node: 'qct-pod4-node2'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800144 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700145 make-target: sanity-kind
146 onus: 1
147 pons: 1
148 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700149 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700150
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700151 - 'voltha-periodic-test':
152 name: 'nightly-voltha-DTflow-sanity-test'
153 build-node: 'ubuntu16.04-basebuild-4c-8g'
154 code-branch: 'master'
155 make-target: sanity-kind-dt
156 onus: 1
157 pons: 1
158 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700159 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700160
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700161 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700162 - 'verify_physical_voltha_patchset_auto':
163 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700164 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -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 Bavier51ba7e82019-12-17 11:01:01 -0700168 profile: 'Default'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800169 default-test-args: '-i sanityORDeleteOLT -i PowerSwitch -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700170
171 # Per-patchset Pod builds on Tucson pod
172 - 'verify_physical_voltha_patchset_manual':
173 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700174 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700175 config-pod: 'tucson-pod'
Girish Gowdraad746502021-01-11 10:08:05 -0800176 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800177 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700178 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700179 trigger-string: 'hardware test'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800180 default-test-args: '-i sanityORDeleteOLT -i PowerSwitch -X'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700181
182
183 # Per-patchset Pod builds on Tucson pod
184 - 'verify_physical_voltha_patchset_manual':
185 name: 'verify_physical_voltha_patchset_manual_DT'
186 build-node: 'tucson-pod'
187 config-pod: 'tucson-pod-DT'
Girish Gowdraad746502021-01-11 10:08:05 -0800188 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800189 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700190 profile: 'Default'
191 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
192 trigger-string: 'DT hardware test'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800193 default-test-args: '-i sanityDt -i PowerSwitch -X'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700194
Andy Bavier19c98a22019-11-11 13:57:11 -0700195
196 # Manual build job for Tucson pod
197 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700198 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700199 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700200 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700201 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700202 manualBranch: 'master'
Girish Gowdraad746502021-01-11 10:08:05 -0800203 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800204 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700205 profile: 'Default'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800206 default-test-args: '-i sanityORDeleteOLT -i PowerSwitch -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700207
Kailash8b8de742019-07-30 08:54:51 -0700208- job-template:
Kailashaad71012019-08-27 10:36:53 -0700209 id: 'voltha-periodic-test'
210 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700211 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700212 test-runs: 1
213 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700214 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700215 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700216 volthaSystemTestsChange: ''
217 kindVolthaChange: ''
Andrea Campanella6d562182020-10-06 18:39:30 +0200218 extraHelmFlags: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700219 sandbox: true
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800220 olts: 1
Matteo Scandolob36f0892020-11-23 12:19:48 -0800221 withAlarms: false
Andy Bavierb35171c2020-03-06 15:47:29 -0700222
Kailash8b8de742019-07-30 08:54:51 -0700223 description: |
224 <!-- Managed by Jenkins Job Builder -->
225 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
226 E2E Validation for Voltha 2.X
227
228 properties:
229 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800230 build-days-to-keep: '{big-build-days-to-keep}'
231 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Kailash8b8de742019-07-30 08:54:51 -0700232
233 wrappers:
234 - lf-infra-wrappers:
235 build-timeout: '{build-timeout}'
236 jenkins-ssh-credential: '{jenkins-ssh-credential}'
237
238 parameters:
239 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700240 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700241 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700242 description: 'Name of the Jenkins node to run the job on'
243
244 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700245 name: extraHelmFlags
Andrea Campanella6d562182020-10-06 18:39:30 +0200246 default: '--set onu={onus},pon={pons},{extraHelmFlags}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700247 description: 'Helm flags to pass to ./voltha up'
248
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800249 - bool:
250 name: withAlarms
Matteo Scandolob36f0892020-11-23 12:19:48 -0800251 default: '{withAlarms}'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800252 description: "Run alarm based tests when true"
253
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700254 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700255 name: makeTarget
256 default: '{make-target}'
257 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700258
Andy Bavier4c8b3232019-11-22 16:17:47 -0700259 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800260 name: makeFailtestTarget
261 default: '{make-target-failtest}'
262 description: 'Makefile target to invoke during failure/based test'
263
264 - string:
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800265 name: makeMultiOltTarget
266 default: '{make-target-multipleolt}'
267 description: 'Makefile target to invoke during multiple olt test'
268
269 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800270 name: makeErrortestTarget
271 default: '{make-target-errortest}'
272 description: 'Makefile target to invoke during error test'
273
274 - string:
275 name: makeAlarmtestTarget
276 default: '{make-target-alarmtest}'
277 description: 'Makefile target to invoke during alarm test'
278
279 - string:
Andy Bavier4c8b3232019-11-22 16:17:47 -0700280 name: manifestUrl
281 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700282 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700283
284 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700285 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700286 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700287 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700288
Andy Bavier3708d072019-12-10 15:22:18 -0700289 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700290 name: gerritProject
291 default: '{gerrit-project}'
292 description: 'Name of the Gerrit project'
293
294 - string:
295 name: gerritChangeNumber
296 default: ''
297 description: 'Changeset number in Gerrit'
298
299 - string:
300 name: gerritPatchsetNumber
301 default: ''
302 description: 'PatchSet number in Gerrit'
303
304 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700305 name: testRuns
306 default: '{test-runs}'
307 description: 'How many times to repeat the tests'
308
309 - string:
310 name: extraRobotArgs
311 default: '{robot-args}'
312 description: 'Arguments to pass to robot'
313
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700314 - string:
315 name: workFlow
316 default: '{work-flow}'
317 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700318
pierventref48ebc12020-07-17 16:01:32 +0200319 - string:
320 name: karafHome
321 default: '{karaf-home}'
322 description: 'Karaf home'
323
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700324 - string:
325 name: volthaSystemTestsChange
326 default: '{volthaSystemTestsChange}'
327 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
328
329 - string:
330 name: kindVolthaChange
331 default: '{kindVolthaChange}'
332 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
333
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800334 - string:
335 name: olts
336 default: '{olts}'
337 description: 'How many BBSim instances to run'
338
Kailash8b8de742019-07-30 08:54:51 -0700339 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700340 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700341
Zack Williamsb3292082019-10-11 17:15:18 -0700342 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700343
344 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700345 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700346 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700347 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700348
349- job-template:
350 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800351 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700352 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700353 sandbox: true
Matteo Scandolo42f6e572021-01-25 15:11:34 -0800354 build-timeout: 20
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700355 volthaSystemTestsChange: ''
Matteo Scandolo42f6e572021-01-25 15:11:34 -0800356 volthaHelmChartsChange: ''
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700357 kindVolthaChange: ''
Matteo Scandolo42f6e572021-01-25 15:11:34 -0800358 branch-regexp: '{all-branches-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700359
360 description: |
361 <!-- Managed by Jenkins Job Builder -->
362 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
363 E2E Validation for Voltha 2.X
364
365 properties:
366 - cord-infra-properties:
367 build-days-to-keep: '{build-days-to-keep}'
368 artifact-num-to-keep: '{artifact-num-to-keep}'
369
370 wrappers:
371 - lf-infra-wrappers:
372 build-timeout: '{build-timeout}'
373 jenkins-ssh-credential: '{jenkins-ssh-credential}'
374
375 parameters:
376 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700377 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700378 default: 'ubuntu16.04-basebuild-4c-8g'
379 description: 'Name of the Jenkins node to run the job on'
380
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:
Matteo Scandolo42f6e572021-01-25 15:11:34 -0800402 name: volthaSystemTestsChange
403 default: '{volthaSystemTestsChange}'
404 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
405
406 - string:
407 name: volthaHelmChartsChange
408 default: '{volthaHelmChartsChange}'
409 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/79/18779/13"'
410
411 - string:
412 name: branch
413 default: '{override-branch}'
414 description: 'Name of the branch to use'
415
416 # deprecated params (not used in master, remove after 2.6 support is dropped)
417 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700418 name: kindVolthaChange
419 default: '{kindVolthaChange}'
420 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
421
Kailashaad71012019-08-27 10:36:53 -0700422 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700423 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700424
Zack Williamsb3292082019-10-11 17:15:18 -0700425 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700426
427 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700428 - gerrit:
429 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700430 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700431 silent-start: true
432 trigger-on:
433 - patchset-created-event:
434 exclude-drafts: true
435 exclude-trivial-rebase: false
436 exclude-no-code-change: true
437 - draft-published-event
438 - comment-added-contains-event:
439 comment-contains-value: '(?i)^.*recheck$'
440 projects:
441 - project-compare-type: REG_EXP
442 project-pattern: '^{project}$'
443 branches:
444 - branch-compare-type: REG_EXP
Matteo Scandolo42f6e572021-01-25 15:11:34 -0800445 branch-pattern: '{branch-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700446 file-paths:
447 - compare-type: REG_EXP
448 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700449
450# POD Per Patchset Pipeline Jobs
451
452- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700453 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700454 id: verify_physical_voltha_patchset_auto
455 description: |
456 <!-- Managed by Jenkins Job Builder -->
457 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
458 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
459 Created by Andy Bavier, andy@opennetworking.org <br />
460 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700461 sandbox: true
462 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700463 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700464
465 properties:
466 - cord-infra-properties:
467 build-days-to-keep: '{build-days-to-keep}'
468 artifact-num-to-keep: '{artifact-num-to-keep}'
469
470 parameters:
471 - string:
472 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700473 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700474 description: 'Pod management node'
475
476 - string:
477 name: manifestUrl
478 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
479 description: 'URL to the repo manifest'
480
481 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700482 name: branch
483 default: '$GERRIT_BRANCH'
484 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700485
486 - string:
487 name: gerritProject
488 default: '$GERRIT_PROJECT'
489 description: 'Name of the Gerrit project'
490
491 - string:
492 name: gerritChangeNumber
493 default: '$GERRIT_CHANGE_NUMBER'
494 description: 'Changeset number in Gerrit'
495
496 - string:
497 name: gerritPatchsetNumber
498 default: '$GERRIT_PATCHSET_NUMBER'
499 description: 'PatchSet number in Gerrit'
500
501 - string:
502 name: cordRepoUrl
503 default: '{gerrit-server-url}'
504 description: 'The URL of the CORD Project repository'
505
506 - string:
507 name: podName
508 default: '{config-pod}'
509
510 - string:
511 name: deploymentConfigFile
512 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
513 description: 'Path of deployment config file'
514
515 - string:
516 name: kindVolthaValuesFile
517 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
518 description: 'Path of kind-voltha values override file'
519
520 - string:
521 name: sadisConfigFile
522 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
523 description: 'Path of SADIS config to load'
524
525 - string:
526 name: localConfigDir
527 default: null
528 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
529
530 - string:
531 name: configRepo
532 default: 'pod-configs'
533 description: 'A repository containing the config files, will be checked out if specified'
534
535 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700536 name: oltDebVersionMaster
537 default: '{oltDebVersionMaster}'
538 description: 'OLT Software version to install for master branch builds'
539
540 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700541 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700542 default: '{oltDebVersionVoltha23}'
543 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700544
545 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700546 name: profile
547 default: '{profile}'
548 description: 'Technology Profile pushed to the ETCD'
549
550 - string:
551 name: notificationEmail
552 default: 'andy@opennetworking.org'
553 description: ''
554
555 - bool:
556 name: reinstallOlt
557 default: true
558 description: "Re-install OLT software"
559
Zack Williams03ebb272020-03-27 09:42:33 -0700560 - string:
561 name: manualBranch
562 default: '{manualBranch}'
563 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700564
565 - string:
566 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700567 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700568 description: 'Arguments to pass to robot'
569
570 project-type: pipeline
571 concurrent: true
572
573 dsl: !include-raw-escape: pipeline/{pipeline-script}
574
575 triggers:
576 - gerrit:
577 server-name: '{gerrit-server-name}'
578 dependency-jobs: '{dependency-jobs}'
579 silent-start: false
580 successful-message: "PASSED hardware test"
581 failure-message: "FAILED hardware test"
582 unstable-message: "UNSTABLE hardware test"
583 trigger-on:
584 - comment-added-event:
585 approval-category: 'Code-Review'
586 approval-value: '+2'
587 projects:
588 - project-compare-type: REG_EXP
Girish Gowdra7beebea2021-01-31 18:56:45 -0800589 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-openonu-adapter-go|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700590 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700591 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700592 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700593
594
595- job-template:
596 name: '{name}'
597 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700598 description: |
599 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700600 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700601 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700602 Created by Andy Bavier, andy@opennetworking.org <br />
603 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700604 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700605 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700606 trigger-string: 'hardware test'
607 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700608
609 properties:
610 - cord-infra-properties:
611 build-days-to-keep: '{build-days-to-keep}'
612 artifact-num-to-keep: '{artifact-num-to-keep}'
613
614 parameters:
615 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700616 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700617 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700618 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700619
620 - string:
621 name: manifestUrl
622 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
623 description: 'URL to the repo manifest'
624
625 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700626 name: branch
627 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700628 description: 'Name of the repo branch to use'
629
630 - string:
631 name: gerritProject
632 default: '$GERRIT_PROJECT'
633 description: 'Name of the Gerrit project'
634
635 - string:
636 name: gerritChangeNumber
637 default: '$GERRIT_CHANGE_NUMBER'
638 description: 'Changeset number in Gerrit'
639
640 - string:
641 name: gerritPatchsetNumber
642 default: '$GERRIT_PATCHSET_NUMBER'
643 description: 'PatchSet number in Gerrit'
644
645 - string:
646 name: cordRepoUrl
647 default: '{gerrit-server-url}'
648 description: 'The URL of the CORD Project repository'
649
650 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700651 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700652 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700653
654 - string:
655 name: deploymentConfigFile
656 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
657 description: 'Path of deployment config file'
658
659 - string:
660 name: kindVolthaValuesFile
661 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
662 description: 'Path of kind-voltha values override file'
663
664 - string:
665 name: sadisConfigFile
666 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
667 description: 'Path of SADIS config to load'
668
669 - string:
670 name: localConfigDir
671 default: null
672 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
673
674 - string:
675 name: configRepo
676 default: 'pod-configs'
677 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700678
679 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700680 name: oltDebVersionMaster
681 default: '{oltDebVersionMaster}'
682 description: 'OLT Software version to install for master branch builds'
683
684 - string:
685 name: oltDebVersionVoltha23
686 default: '{oltDebVersionVoltha23}'
687 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700688
689 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700690 name: profile
691 default: '{profile}'
692 description: 'Technology Profile pushed to the ETCD'
693
694 - string:
695 name: notificationEmail
696 default: 'andy@opennetworking.org'
697 description: ''
698
699 - bool:
700 name: reinstallOlt
701 default: true
702 description: "Re-install OLT software"
703
Zack Williams03ebb272020-03-27 09:42:33 -0700704 - string:
705 name: manualBranch
706 default: '{manualBranch}'
707 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700708
Andy Bavier8c11d462019-12-17 08:19:34 -0700709 - string:
710 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700711 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700712 description: 'Arguments to pass to robot'
713
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700714 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700715 concurrent: true
716
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700717 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700718
Andy Bavier1f465592019-11-06 10:03:56 -0700719 triggers:
720 - gerrit:
721 server-name: '{gerrit-server-name}'
722 dependency-jobs: '{dependency-jobs}'
723 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700724 successful-message: "PASSED {trigger-string}"
725 failure-message: "FAILED {trigger-string}"
726 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700727 trigger-on:
728 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700729 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800730 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700731 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700732 projects:
733 - project-compare-type: REG_EXP
Girish Gowdra7beebea2021-01-31 18:56:45 -0800734 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 -0700735 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700736 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700737 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700738
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700739
740- job-template:
741 name: '{name}'
742 id: build_physical_voltha_manual
743 description: |
744 <!-- Managed by Jenkins Job Builder -->
745 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
746 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
747 Created by Andy Bavier, andy@opennetworking.org <br />
748 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700749 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700750 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700751
752 properties:
753 - cord-infra-properties:
754 build-days-to-keep: '{build-days-to-keep}'
755 artifact-num-to-keep: '{artifact-num-to-keep}'
756
757 parameters:
758 - string:
759 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700760 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700761 description: 'Pod management node'
762
763 - string:
764 name: manifestUrl
765 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
766 description: 'URL to the repo manifest'
767
768 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700769 name: branch
770 default: "$GERRIT_BRANCH"
771 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700772
773 - string:
774 name: gerritProject
775 default: '$GERRIT_PROJECT'
776 description: 'Name of the Gerrit project'
777
778 - string:
779 name: gerritChangeNumber
780 default: '$GERRIT_CHANGE_NUMBER'
781 description: 'Changeset number in Gerrit'
782
783 - string:
784 name: gerritPatchsetNumber
785 default: '$GERRIT_PATCHSET_NUMBER'
786 description: 'PatchSet number in Gerrit'
787
788 - string:
789 name: cordRepoUrl
790 default: '{gerrit-server-url}'
791 description: 'The URL of the CORD Project repository'
792
793 - string:
794 name: podName
795 default: '{config-pod}'
796
797 - string:
798 name: deploymentConfigFile
799 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
800 description: 'Path of deployment config file'
801
802 - string:
803 name: kindVolthaValuesFile
804 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
805 description: 'Path of kind-voltha values override file'
806
807 - string:
808 name: sadisConfigFile
809 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
810 description: 'Path of SADIS config to load'
811
812 - string:
813 name: localConfigDir
814 default: null
815 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
816
817 - string:
818 name: configRepo
819 default: 'pod-configs'
820 description: 'A repository containing the config files, will be checked out if specified'
821
822 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700823 name: oltDebVersionMaster
824 default: '{oltDebVersionMaster}'
825 description: 'OLT Software version to install for master branch builds'
826
827 - string:
828 name: oltDebVersionVoltha23
829 default: '{oltDebVersionVoltha23}'
830 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700831
832 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700833 name: profile
834 default: '{profile}'
835 description: 'Technology Profile pushed to the ETCD'
836
837 - string:
838 name: notificationEmail
839 default: 'andy@opennetworking.org'
840 description: ''
841
842 - bool:
843 name: reinstallOlt
844 default: false
845 description: "Re-install OLT software"
846
Zack Williams03ebb272020-03-27 09:42:33 -0700847 - string:
848 name: manualBranch
849 default: '{manualBranch}'
850 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700851
Andy Bavier8c11d462019-12-17 08:19:34 -0700852 - string:
853 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700854 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700855 description: 'Arguments to pass to robot'
856
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700857 project-type: pipeline
858 concurrent: true
859
860 dsl: !include-raw-escape: pipeline/{pipeline-script}