blob: 91b4ec7f6e1fbc0b634b829e416d1b353886c522 [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 Scandolo9aae4952020-09-14 13:05:53 -0700354 volthaSystemTestsChange: ''
355 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700356
357 description: |
358 <!-- Managed by Jenkins Job Builder -->
359 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
360 E2E Validation for Voltha 2.X
361
362 properties:
363 - cord-infra-properties:
364 build-days-to-keep: '{build-days-to-keep}'
365 artifact-num-to-keep: '{artifact-num-to-keep}'
366
367 wrappers:
368 - lf-infra-wrappers:
369 build-timeout: '{build-timeout}'
370 jenkins-ssh-credential: '{jenkins-ssh-credential}'
371
372 parameters:
373 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700374 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700375 default: 'ubuntu16.04-basebuild-4c-8g'
376 description: 'Name of the Jenkins node to run the job on'
377
378 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700379 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700380 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700381 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700382
383 - string:
hwchiu14f97852019-10-08 10:51:11 -0700384 name: gerritProject
385 default: '$GERRIT_PROJECT'
386 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700387
388 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700389 name: gerritRefspec
390 default: '$GERRIT_REFSPEC'
391 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700392
393 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700394 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700395 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700396 description: 'Helm flags to pass to ./voltha up'
397
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700398 - string:
399 name: volthaSystemTestsChange
400 default: '{volthaSystemTestsChange}'
401 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
402
403 - string:
404 name: kindVolthaChange
405 default: '{kindVolthaChange}'
406 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
407
Kailashaad71012019-08-27 10:36:53 -0700408 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700409 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700410
Zack Williamsb3292082019-10-11 17:15:18 -0700411 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700412
413 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700414 - gerrit:
415 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700416 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700417 silent-start: true
418 trigger-on:
419 - patchset-created-event:
420 exclude-drafts: true
421 exclude-trivial-rebase: false
422 exclude-no-code-change: true
423 - draft-published-event
424 - comment-added-contains-event:
425 comment-contains-value: '(?i)^.*recheck$'
426 projects:
427 - project-compare-type: REG_EXP
428 project-pattern: '^{project}$'
429 branches:
430 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700431 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700432 file-paths:
433 - compare-type: REG_EXP
434 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700435
436# POD Per Patchset Pipeline Jobs
437
438- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700439 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700440 id: verify_physical_voltha_patchset_auto
441 description: |
442 <!-- Managed by Jenkins Job Builder -->
443 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
444 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
445 Created by Andy Bavier, andy@opennetworking.org <br />
446 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700447 sandbox: true
448 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700449 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700450
451 properties:
452 - cord-infra-properties:
453 build-days-to-keep: '{build-days-to-keep}'
454 artifact-num-to-keep: '{artifact-num-to-keep}'
455
456 parameters:
457 - string:
458 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700459 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700460 description: 'Pod management node'
461
462 - string:
463 name: manifestUrl
464 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
465 description: 'URL to the repo manifest'
466
467 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700468 name: branch
469 default: '$GERRIT_BRANCH'
470 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700471
472 - string:
473 name: gerritProject
474 default: '$GERRIT_PROJECT'
475 description: 'Name of the Gerrit project'
476
477 - string:
478 name: gerritChangeNumber
479 default: '$GERRIT_CHANGE_NUMBER'
480 description: 'Changeset number in Gerrit'
481
482 - string:
483 name: gerritPatchsetNumber
484 default: '$GERRIT_PATCHSET_NUMBER'
485 description: 'PatchSet number in Gerrit'
486
487 - string:
488 name: cordRepoUrl
489 default: '{gerrit-server-url}'
490 description: 'The URL of the CORD Project repository'
491
492 - string:
493 name: podName
494 default: '{config-pod}'
495
496 - string:
497 name: deploymentConfigFile
498 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
499 description: 'Path of deployment config file'
500
501 - string:
502 name: kindVolthaValuesFile
503 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
504 description: 'Path of kind-voltha values override file'
505
506 - string:
507 name: sadisConfigFile
508 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
509 description: 'Path of SADIS config to load'
510
511 - string:
512 name: localConfigDir
513 default: null
514 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
515
516 - string:
517 name: configRepo
518 default: 'pod-configs'
519 description: 'A repository containing the config files, will be checked out if specified'
520
521 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700522 name: oltDebVersionMaster
523 default: '{oltDebVersionMaster}'
524 description: 'OLT Software version to install for master branch builds'
525
526 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700527 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700528 default: '{oltDebVersionVoltha23}'
529 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700530
531 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700532 name: profile
533 default: '{profile}'
534 description: 'Technology Profile pushed to the ETCD'
535
536 - string:
537 name: notificationEmail
538 default: 'andy@opennetworking.org'
539 description: ''
540
541 - bool:
542 name: reinstallOlt
543 default: true
544 description: "Re-install OLT software"
545
Zack Williams03ebb272020-03-27 09:42:33 -0700546 - string:
547 name: manualBranch
548 default: '{manualBranch}'
549 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700550
551 - string:
552 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700553 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700554 description: 'Arguments to pass to robot'
555
556 project-type: pipeline
557 concurrent: true
558
559 dsl: !include-raw-escape: pipeline/{pipeline-script}
560
561 triggers:
562 - gerrit:
563 server-name: '{gerrit-server-name}'
564 dependency-jobs: '{dependency-jobs}'
565 silent-start: false
566 successful-message: "PASSED hardware test"
567 failure-message: "FAILED hardware test"
568 unstable-message: "UNSTABLE hardware test"
569 trigger-on:
570 - comment-added-event:
571 approval-category: 'Code-Review'
572 approval-value: '+2'
573 projects:
574 - project-compare-type: REG_EXP
Girish Gowdra7beebea2021-01-31 18:56:45 -0800575 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-openonu-adapter-go|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700576 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700577 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700578 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700579
580
581- job-template:
582 name: '{name}'
583 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700584 description: |
585 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700586 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700587 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700588 Created by Andy Bavier, andy@opennetworking.org <br />
589 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700590 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700591 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700592 trigger-string: 'hardware test'
593 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700594
595 properties:
596 - cord-infra-properties:
597 build-days-to-keep: '{build-days-to-keep}'
598 artifact-num-to-keep: '{artifact-num-to-keep}'
599
600 parameters:
601 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700602 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700603 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700604 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700605
606 - string:
607 name: manifestUrl
608 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
609 description: 'URL to the repo manifest'
610
611 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700612 name: branch
613 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700614 description: 'Name of the repo branch to use'
615
616 - string:
617 name: gerritProject
618 default: '$GERRIT_PROJECT'
619 description: 'Name of the Gerrit project'
620
621 - string:
622 name: gerritChangeNumber
623 default: '$GERRIT_CHANGE_NUMBER'
624 description: 'Changeset number in Gerrit'
625
626 - string:
627 name: gerritPatchsetNumber
628 default: '$GERRIT_PATCHSET_NUMBER'
629 description: 'PatchSet number in Gerrit'
630
631 - string:
632 name: cordRepoUrl
633 default: '{gerrit-server-url}'
634 description: 'The URL of the CORD Project repository'
635
636 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700637 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700638 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700639
640 - string:
641 name: deploymentConfigFile
642 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
643 description: 'Path of deployment config file'
644
645 - string:
646 name: kindVolthaValuesFile
647 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
648 description: 'Path of kind-voltha values override file'
649
650 - string:
651 name: sadisConfigFile
652 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
653 description: 'Path of SADIS config to load'
654
655 - string:
656 name: localConfigDir
657 default: null
658 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
659
660 - string:
661 name: configRepo
662 default: 'pod-configs'
663 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700664
665 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700666 name: oltDebVersionMaster
667 default: '{oltDebVersionMaster}'
668 description: 'OLT Software version to install for master branch builds'
669
670 - string:
671 name: oltDebVersionVoltha23
672 default: '{oltDebVersionVoltha23}'
673 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700674
675 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700676 name: profile
677 default: '{profile}'
678 description: 'Technology Profile pushed to the ETCD'
679
680 - string:
681 name: notificationEmail
682 default: 'andy@opennetworking.org'
683 description: ''
684
685 - bool:
686 name: reinstallOlt
687 default: true
688 description: "Re-install OLT software"
689
Zack Williams03ebb272020-03-27 09:42:33 -0700690 - string:
691 name: manualBranch
692 default: '{manualBranch}'
693 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700694
Andy Bavier8c11d462019-12-17 08:19:34 -0700695 - string:
696 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700697 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700698 description: 'Arguments to pass to robot'
699
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700700 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700701 concurrent: true
702
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700703 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700704
Andy Bavier1f465592019-11-06 10:03:56 -0700705 triggers:
706 - gerrit:
707 server-name: '{gerrit-server-name}'
708 dependency-jobs: '{dependency-jobs}'
709 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700710 successful-message: "PASSED {trigger-string}"
711 failure-message: "FAILED {trigger-string}"
712 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700713 trigger-on:
714 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700715 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800716 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700717 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700718 projects:
719 - project-compare-type: REG_EXP
Girish Gowdra7beebea2021-01-31 18:56:45 -0800720 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 -0700721 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700722 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700723 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700724
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700725
726- job-template:
727 name: '{name}'
728 id: build_physical_voltha_manual
729 description: |
730 <!-- Managed by Jenkins Job Builder -->
731 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
732 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
733 Created by Andy Bavier, andy@opennetworking.org <br />
734 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700735 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700736 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700737
738 properties:
739 - cord-infra-properties:
740 build-days-to-keep: '{build-days-to-keep}'
741 artifact-num-to-keep: '{artifact-num-to-keep}'
742
743 parameters:
744 - string:
745 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700746 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700747 description: 'Pod management node'
748
749 - string:
750 name: manifestUrl
751 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
752 description: 'URL to the repo manifest'
753
754 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700755 name: branch
756 default: "$GERRIT_BRANCH"
757 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700758
759 - string:
760 name: gerritProject
761 default: '$GERRIT_PROJECT'
762 description: 'Name of the Gerrit project'
763
764 - string:
765 name: gerritChangeNumber
766 default: '$GERRIT_CHANGE_NUMBER'
767 description: 'Changeset number in Gerrit'
768
769 - string:
770 name: gerritPatchsetNumber
771 default: '$GERRIT_PATCHSET_NUMBER'
772 description: 'PatchSet number in Gerrit'
773
774 - string:
775 name: cordRepoUrl
776 default: '{gerrit-server-url}'
777 description: 'The URL of the CORD Project repository'
778
779 - string:
780 name: podName
781 default: '{config-pod}'
782
783 - string:
784 name: deploymentConfigFile
785 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
786 description: 'Path of deployment config file'
787
788 - string:
789 name: kindVolthaValuesFile
790 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
791 description: 'Path of kind-voltha values override file'
792
793 - string:
794 name: sadisConfigFile
795 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
796 description: 'Path of SADIS config to load'
797
798 - string:
799 name: localConfigDir
800 default: null
801 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
802
803 - string:
804 name: configRepo
805 default: 'pod-configs'
806 description: 'A repository containing the config files, will be checked out if specified'
807
808 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700809 name: oltDebVersionMaster
810 default: '{oltDebVersionMaster}'
811 description: 'OLT Software version to install for master branch builds'
812
813 - string:
814 name: oltDebVersionVoltha23
815 default: '{oltDebVersionVoltha23}'
816 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700817
818 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700819 name: profile
820 default: '{profile}'
821 description: 'Technology Profile pushed to the ETCD'
822
823 - string:
824 name: notificationEmail
825 default: 'andy@opennetworking.org'
826 description: ''
827
828 - bool:
829 name: reinstallOlt
830 default: false
831 description: "Re-install OLT software"
832
Zack Williams03ebb272020-03-27 09:42:33 -0700833 - string:
834 name: manualBranch
835 default: '{manualBranch}'
836 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700837
Andy Bavier8c11d462019-12-17 08:19:34 -0700838 - string:
839 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700840 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700841 description: 'Arguments to pass to robot'
842
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700843 project-type: pipeline
844 concurrent: true
845
846 dsl: !include-raw-escape: pipeline/{pipeline-script}