blob: 020be88ecb92a493196bf891d3d4643a69117a27 [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'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800160 default-test-args: '-i sanityORDeleteOLT -i PowerSwitch -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700161
162 # Per-patchset Pod builds on Tucson pod
163 - 'verify_physical_voltha_patchset_manual':
164 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700165 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700166 config-pod: 'tucson-pod'
Girish Gowdraad746502021-01-11 10:08:05 -0800167 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800168 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700169 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700170 trigger-string: 'hardware test'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800171 default-test-args: '-i sanityORDeleteOLT -i PowerSwitch -X'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700172
173
174 # Per-patchset Pod builds on Tucson pod
175 - 'verify_physical_voltha_patchset_manual':
176 name: 'verify_physical_voltha_patchset_manual_DT'
177 build-node: 'tucson-pod'
178 config-pod: 'tucson-pod-DT'
Girish Gowdraad746502021-01-11 10:08:05 -0800179 oltDebVersionMaster: 'openolt_asfvolt16-3.3.2-f7feb4b828467ccc99104b56b29dc7a19aa2008b-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800180 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700181 profile: 'Default'
182 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
183 trigger-string: 'DT hardware test'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800184 default-test-args: '-i sanityDt -i PowerSwitch -X'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700185
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'
Girish Gowdraaabad2b2021-01-21 12:24:34 -0800197 default-test-args: '-i sanityORDeleteOLT -i PowerSwitch -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700198
Kailash8b8de742019-07-30 08:54:51 -0700199- job-template:
Kailashaad71012019-08-27 10:36:53 -0700200 id: 'voltha-periodic-test'
201 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700202 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700203 test-runs: 1
204 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700205 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700206 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700207 volthaSystemTestsChange: ''
208 kindVolthaChange: ''
Andrea Campanella6d562182020-10-06 18:39:30 +0200209 extraHelmFlags: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700210 sandbox: true
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800211 olts: 1
Matteo Scandolob36f0892020-11-23 12:19:48 -0800212 withAlarms: false
Andy Bavierb35171c2020-03-06 15:47:29 -0700213
Kailash8b8de742019-07-30 08:54:51 -0700214 description: |
215 <!-- Managed by Jenkins Job Builder -->
216 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
217 E2E Validation for Voltha 2.X
218
219 properties:
220 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800221 build-days-to-keep: '{big-build-days-to-keep}'
222 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Kailash8b8de742019-07-30 08:54:51 -0700223
224 wrappers:
225 - lf-infra-wrappers:
226 build-timeout: '{build-timeout}'
227 jenkins-ssh-credential: '{jenkins-ssh-credential}'
228
229 parameters:
230 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700231 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700232 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700233 description: 'Name of the Jenkins node to run the job on'
234
235 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700236 name: extraHelmFlags
Andrea Campanella6d562182020-10-06 18:39:30 +0200237 default: '--set onu={onus},pon={pons},{extraHelmFlags}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700238 description: 'Helm flags to pass to ./voltha up'
239
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800240 - bool:
241 name: withAlarms
Matteo Scandolob36f0892020-11-23 12:19:48 -0800242 default: '{withAlarms}'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800243 description: "Run alarm based tests when true"
244
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700245 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700246 name: makeTarget
247 default: '{make-target}'
248 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700249
Andy Bavier4c8b3232019-11-22 16:17:47 -0700250 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800251 name: makeFailtestTarget
252 default: '{make-target-failtest}'
253 description: 'Makefile target to invoke during failure/based test'
254
255 - string:
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800256 name: makeMultiOltTarget
257 default: '{make-target-multipleolt}'
258 description: 'Makefile target to invoke during multiple olt test'
259
260 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800261 name: makeErrortestTarget
262 default: '{make-target-errortest}'
263 description: 'Makefile target to invoke during error test'
264
265 - string:
266 name: makeAlarmtestTarget
267 default: '{make-target-alarmtest}'
268 description: 'Makefile target to invoke during alarm test'
269
270 - string:
Andy Bavier4c8b3232019-11-22 16:17:47 -0700271 name: manifestUrl
272 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700273 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700274
275 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700276 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700277 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700278 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700279
Andy Bavier3708d072019-12-10 15:22:18 -0700280 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700281 name: gerritProject
282 default: '{gerrit-project}'
283 description: 'Name of the Gerrit project'
284
285 - string:
286 name: gerritChangeNumber
287 default: ''
288 description: 'Changeset number in Gerrit'
289
290 - string:
291 name: gerritPatchsetNumber
292 default: ''
293 description: 'PatchSet number in Gerrit'
294
295 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700296 name: testRuns
297 default: '{test-runs}'
298 description: 'How many times to repeat the tests'
299
300 - string:
301 name: extraRobotArgs
302 default: '{robot-args}'
303 description: 'Arguments to pass to robot'
304
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700305 - string:
306 name: workFlow
307 default: '{work-flow}'
308 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700309
pierventref48ebc12020-07-17 16:01:32 +0200310 - string:
311 name: karafHome
312 default: '{karaf-home}'
313 description: 'Karaf home'
314
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700315 - string:
316 name: volthaSystemTestsChange
317 default: '{volthaSystemTestsChange}'
318 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
319
320 - string:
321 name: kindVolthaChange
322 default: '{kindVolthaChange}'
323 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
324
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800325 - string:
326 name: olts
327 default: '{olts}'
328 description: 'How many BBSim instances to run'
329
Kailash8b8de742019-07-30 08:54:51 -0700330 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700331 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700332
Zack Williamsb3292082019-10-11 17:15:18 -0700333 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700334
335 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700336 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700337 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700338 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700339
340- job-template:
341 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800342 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700343 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700344 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700345 volthaSystemTestsChange: ''
346 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700347
348 description: |
349 <!-- Managed by Jenkins Job Builder -->
350 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
351 E2E Validation for Voltha 2.X
352
353 properties:
354 - cord-infra-properties:
355 build-days-to-keep: '{build-days-to-keep}'
356 artifact-num-to-keep: '{artifact-num-to-keep}'
357
358 wrappers:
359 - lf-infra-wrappers:
360 build-timeout: '{build-timeout}'
361 jenkins-ssh-credential: '{jenkins-ssh-credential}'
362
363 parameters:
364 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700365 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700366 default: 'ubuntu16.04-basebuild-4c-8g'
367 description: 'Name of the Jenkins node to run the job on'
368
369 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700370 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700371 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700372 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700373
374 - string:
hwchiu14f97852019-10-08 10:51:11 -0700375 name: gerritProject
376 default: '$GERRIT_PROJECT'
377 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700378
379 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700380 name: gerritRefspec
381 default: '$GERRIT_REFSPEC'
382 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700383
384 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700385 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700386 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700387 description: 'Helm flags to pass to ./voltha up'
388
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700389 - string:
390 name: volthaSystemTestsChange
391 default: '{volthaSystemTestsChange}'
392 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
393
394 - string:
395 name: kindVolthaChange
396 default: '{kindVolthaChange}'
397 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
398
Kailashaad71012019-08-27 10:36:53 -0700399 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700400 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700401
Zack Williamsb3292082019-10-11 17:15:18 -0700402 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700403
404 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700405 - gerrit:
406 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700407 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700408 silent-start: true
409 trigger-on:
410 - patchset-created-event:
411 exclude-drafts: true
412 exclude-trivial-rebase: false
413 exclude-no-code-change: true
414 - draft-published-event
415 - comment-added-contains-event:
416 comment-contains-value: '(?i)^.*recheck$'
417 projects:
418 - project-compare-type: REG_EXP
419 project-pattern: '^{project}$'
420 branches:
421 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700422 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700423 file-paths:
424 - compare-type: REG_EXP
425 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700426
427# POD Per Patchset Pipeline Jobs
428
429- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700430 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700431 id: verify_physical_voltha_patchset_auto
432 description: |
433 <!-- Managed by Jenkins Job Builder -->
434 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
435 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
436 Created by Andy Bavier, andy@opennetworking.org <br />
437 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700438 sandbox: true
439 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700440 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700441
442 properties:
443 - cord-infra-properties:
444 build-days-to-keep: '{build-days-to-keep}'
445 artifact-num-to-keep: '{artifact-num-to-keep}'
446
447 parameters:
448 - string:
449 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700450 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700451 description: 'Pod management node'
452
453 - string:
454 name: manifestUrl
455 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
456 description: 'URL to the repo manifest'
457
458 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700459 name: branch
460 default: '$GERRIT_BRANCH'
461 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700462
463 - string:
464 name: gerritProject
465 default: '$GERRIT_PROJECT'
466 description: 'Name of the Gerrit project'
467
468 - string:
469 name: gerritChangeNumber
470 default: '$GERRIT_CHANGE_NUMBER'
471 description: 'Changeset number in Gerrit'
472
473 - string:
474 name: gerritPatchsetNumber
475 default: '$GERRIT_PATCHSET_NUMBER'
476 description: 'PatchSet number in Gerrit'
477
478 - string:
479 name: cordRepoUrl
480 default: '{gerrit-server-url}'
481 description: 'The URL of the CORD Project repository'
482
483 - string:
484 name: podName
485 default: '{config-pod}'
486
487 - string:
488 name: deploymentConfigFile
489 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
490 description: 'Path of deployment config file'
491
492 - string:
493 name: kindVolthaValuesFile
494 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
495 description: 'Path of kind-voltha values override file'
496
497 - string:
498 name: sadisConfigFile
499 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
500 description: 'Path of SADIS config to load'
501
502 - string:
503 name: localConfigDir
504 default: null
505 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
506
507 - string:
508 name: configRepo
509 default: 'pod-configs'
510 description: 'A repository containing the config files, will be checked out if specified'
511
512 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700513 name: oltDebVersionMaster
514 default: '{oltDebVersionMaster}'
515 description: 'OLT Software version to install for master branch builds'
516
517 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700518 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700519 default: '{oltDebVersionVoltha23}'
520 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700521
522 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700523 name: profile
524 default: '{profile}'
525 description: 'Technology Profile pushed to the ETCD'
526
527 - string:
528 name: notificationEmail
529 default: 'andy@opennetworking.org'
530 description: ''
531
532 - bool:
533 name: reinstallOlt
534 default: true
535 description: "Re-install OLT software"
536
Zack Williams03ebb272020-03-27 09:42:33 -0700537 - string:
538 name: manualBranch
539 default: '{manualBranch}'
540 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700541
542 - string:
543 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700544 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700545 description: 'Arguments to pass to robot'
546
547 project-type: pipeline
548 concurrent: true
549
550 dsl: !include-raw-escape: pipeline/{pipeline-script}
551
552 triggers:
553 - gerrit:
554 server-name: '{gerrit-server-name}'
555 dependency-jobs: '{dependency-jobs}'
556 silent-start: false
557 successful-message: "PASSED hardware test"
558 failure-message: "FAILED hardware test"
559 unstable-message: "UNSTABLE hardware test"
560 trigger-on:
561 - comment-added-event:
562 approval-category: 'Code-Review'
563 approval-value: '+2'
564 projects:
565 - project-compare-type: REG_EXP
Girish Gowdra7beebea2021-01-31 18:56:45 -0800566 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-openonu-adapter-go|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700567 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700568 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700569 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700570
571
572- job-template:
573 name: '{name}'
574 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700575 description: |
576 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700577 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700578 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700579 Created by Andy Bavier, andy@opennetworking.org <br />
580 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700581 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700582 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700583 trigger-string: 'hardware test'
584 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700585
586 properties:
587 - cord-infra-properties:
588 build-days-to-keep: '{build-days-to-keep}'
589 artifact-num-to-keep: '{artifact-num-to-keep}'
590
591 parameters:
592 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700593 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700594 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700595 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700596
597 - string:
598 name: manifestUrl
599 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
600 description: 'URL to the repo manifest'
601
602 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700603 name: branch
604 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700605 description: 'Name of the repo branch to use'
606
607 - string:
608 name: gerritProject
609 default: '$GERRIT_PROJECT'
610 description: 'Name of the Gerrit project'
611
612 - string:
613 name: gerritChangeNumber
614 default: '$GERRIT_CHANGE_NUMBER'
615 description: 'Changeset number in Gerrit'
616
617 - string:
618 name: gerritPatchsetNumber
619 default: '$GERRIT_PATCHSET_NUMBER'
620 description: 'PatchSet number in Gerrit'
621
622 - string:
623 name: cordRepoUrl
624 default: '{gerrit-server-url}'
625 description: 'The URL of the CORD Project repository'
626
627 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700628 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700629 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700630
631 - string:
632 name: deploymentConfigFile
633 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
634 description: 'Path of deployment config file'
635
636 - string:
637 name: kindVolthaValuesFile
638 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
639 description: 'Path of kind-voltha values override file'
640
641 - string:
642 name: sadisConfigFile
643 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
644 description: 'Path of SADIS config to load'
645
646 - string:
647 name: localConfigDir
648 default: null
649 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
650
651 - string:
652 name: configRepo
653 default: 'pod-configs'
654 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700655
656 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700657 name: oltDebVersionMaster
658 default: '{oltDebVersionMaster}'
659 description: 'OLT Software version to install for master branch builds'
660
661 - string:
662 name: oltDebVersionVoltha23
663 default: '{oltDebVersionVoltha23}'
664 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700665
666 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700667 name: profile
668 default: '{profile}'
669 description: 'Technology Profile pushed to the ETCD'
670
671 - string:
672 name: notificationEmail
673 default: 'andy@opennetworking.org'
674 description: ''
675
676 - bool:
677 name: reinstallOlt
678 default: true
679 description: "Re-install OLT software"
680
Zack Williams03ebb272020-03-27 09:42:33 -0700681 - string:
682 name: manualBranch
683 default: '{manualBranch}'
684 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700685
Andy Bavier8c11d462019-12-17 08:19:34 -0700686 - string:
687 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700688 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700689 description: 'Arguments to pass to robot'
690
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700691 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700692 concurrent: true
693
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700694 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700695
Andy Bavier1f465592019-11-06 10:03:56 -0700696 triggers:
697 - gerrit:
698 server-name: '{gerrit-server-name}'
699 dependency-jobs: '{dependency-jobs}'
700 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700701 successful-message: "PASSED {trigger-string}"
702 failure-message: "FAILED {trigger-string}"
703 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700704 trigger-on:
705 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700706 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800707 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700708 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700709 projects:
710 - project-compare-type: REG_EXP
Girish Gowdra7beebea2021-01-31 18:56:45 -0800711 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 -0700712 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700713 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700714 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700715
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700716
717- job-template:
718 name: '{name}'
719 id: build_physical_voltha_manual
720 description: |
721 <!-- Managed by Jenkins Job Builder -->
722 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
723 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
724 Created by Andy Bavier, andy@opennetworking.org <br />
725 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700726 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700727 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700728
729 properties:
730 - cord-infra-properties:
731 build-days-to-keep: '{build-days-to-keep}'
732 artifact-num-to-keep: '{artifact-num-to-keep}'
733
734 parameters:
735 - string:
736 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700737 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700738 description: 'Pod management node'
739
740 - string:
741 name: manifestUrl
742 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
743 description: 'URL to the repo manifest'
744
745 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700746 name: branch
747 default: "$GERRIT_BRANCH"
748 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700749
750 - string:
751 name: gerritProject
752 default: '$GERRIT_PROJECT'
753 description: 'Name of the Gerrit project'
754
755 - string:
756 name: gerritChangeNumber
757 default: '$GERRIT_CHANGE_NUMBER'
758 description: 'Changeset number in Gerrit'
759
760 - string:
761 name: gerritPatchsetNumber
762 default: '$GERRIT_PATCHSET_NUMBER'
763 description: 'PatchSet number in Gerrit'
764
765 - string:
766 name: cordRepoUrl
767 default: '{gerrit-server-url}'
768 description: 'The URL of the CORD Project repository'
769
770 - string:
771 name: podName
772 default: '{config-pod}'
773
774 - string:
775 name: deploymentConfigFile
776 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
777 description: 'Path of deployment config file'
778
779 - string:
780 name: kindVolthaValuesFile
781 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
782 description: 'Path of kind-voltha values override file'
783
784 - string:
785 name: sadisConfigFile
786 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
787 description: 'Path of SADIS config to load'
788
789 - string:
790 name: localConfigDir
791 default: null
792 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
793
794 - string:
795 name: configRepo
796 default: 'pod-configs'
797 description: 'A repository containing the config files, will be checked out if specified'
798
799 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700800 name: oltDebVersionMaster
801 default: '{oltDebVersionMaster}'
802 description: 'OLT Software version to install for master branch builds'
803
804 - string:
805 name: oltDebVersionVoltha23
806 default: '{oltDebVersionVoltha23}'
807 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700808
809 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700810 name: profile
811 default: '{profile}'
812 description: 'Technology Profile pushed to the ETCD'
813
814 - string:
815 name: notificationEmail
816 default: 'andy@opennetworking.org'
817 description: ''
818
819 - bool:
820 name: reinstallOlt
821 default: false
822 description: "Re-install OLT software"
823
Zack Williams03ebb272020-03-27 09:42:33 -0700824 - string:
825 name: manualBranch
826 default: '{manualBranch}'
827 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700828
Andy Bavier8c11d462019-12-17 08:19:34 -0700829 - string:
830 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700831 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700832 description: 'Arguments to pass to robot'
833
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700834 project-type: pipeline
835 concurrent: true
836
837 dsl: !include-raw-escape: pipeline/{pipeline-script}