blob: 4420fd6efc57738c6fda39e792de56aaf0c515da [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
10 withAlarms: true
11 make-target-failtest: bbsim-failurescenarios
12 make-target-errortest: bbsim-errorscenarios
13 make-target-alarmtest: bbsim-alarms-kind
Kailash8b8de742019-07-30 08:54:51 -070014
15 jobs:
hwchiu14f97852019-10-08 10:51:11 -070016 - 'voltha-periodic-test':
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070017 name: 'periodic-voltha-test-bbsim'
18 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavierf93f3142020-01-09 16:08:51 -070019 build-node: 'qct-pod4-node2'
Andy Bavierd4ba3372020-01-21 17:01:53 -070020 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080021 make-target-failtest: bbsim-failurescenarios
22 make-target-errortest: bbsim-errorscenarios
23 make-target-alarmtest: bbsim-alarms-kind
24 withAlarms: true
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070025 code-branch: 'master'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080026 olts: 1
27 onus: 2
28 pons: 2
29 time-trigger: "H H/12 * * *"
30
31 - 'voltha-periodic-test':
32 name: 'periodic-voltha-multiple-olts-test-bbsim'
33 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
34 build-node: 'qct-pod4-node2'
35 make-target: functional-multi-olt
36 make-target-failtest: bbsim-multi-olt-failurescenarios
37 make-target-errortest: bbsim-multi-olt-errorscenarios
38 make-target-alarmtest: bbsim-alarms-kind
39 withAlarms: false
40 code-branch: 'master'
41 olts: 2
Andy Bavier4be37062020-06-29 15:17:26 -070042 onus: 2
43 pons: 2
Andy Bavierd4ba3372020-01-21 17:01:53 -070044 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070045
46 - 'voltha-periodic-test':
Andrea Campanella1aa547e2020-10-05 10:32:28 +020047 name: 'periodic-voltha-test-bbsim-openonugo'
48 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
49 build-node: 'qct-pod4-node2'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080050 make-target-failtest: bbsim-failurescenarios
51 make-target-errortest: bbsim-errorscenarios
52 make-target-alarmtest: bbsim-alarms-kind
53 withAlarms: true
Andrea Campanella1aa547e2020-10-05 10:32:28 +020054 make-target: functional-single-kind
55 code-branch: 'master'
Andrea Campanella92011402020-10-07 00:20:19 +020056 work-flow: 'DT'
Andrea Campanella51b1c0b2020-10-13 12:12:01 +020057 extraHelmFlags: 'use_openonu_adapter_go=true,images.adapter_open_onu_go.repository=voltha/voltha-openonu-adapter-go,images.adapter_open_onu_go.tag=master'
Andrea Campanella1aa547e2020-10-05 10:32:28 +020058 onus: 2
59 pons: 2
60 time-trigger: "H H/12 * * *"
61
62 - 'voltha-periodic-test':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070063 name: 'periodic-voltha-test-bbsim-2.5'
Andy Bavier4be37062020-06-29 15:17:26 -070064 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavier10926f12020-03-27 16:53:43 -070065 build-node: 'qct-pod4-node2'
Andy Bavier10926f12020-03-27 16:53:43 -070066 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080067 make-target-failtest: bbsim-failurescenarios
68 make-target-errortest: bbsim-errorscenarios
69 make-target-alarmtest: bbsim-alarms-kind
70 withAlarms: true
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070071 code-branch: 'voltha-2.5'
Andy Bavier4be37062020-06-29 15:17:26 -070072 onus: 2
73 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -070074 time-trigger: "H H/12 * * *"
75
76 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -070077 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -080078 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080079 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080080 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080081 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080082 onus: 2
83 pons: 2
84 time-trigger: "H H/12 * * *"
85
86 - 'voltha-periodic-test':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070087 name: 'periodic-voltha-etcd-test-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070088 pipeline-script: 'voltha-system-test-bbsim.groovy'
89 build-node: 'ubuntu16.04-basebuild-4c-8g'
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070090 code-branch: 'voltha-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070091 make-target: sanity-multi-kind
92 onus: 2
93 pons: 2
94 time-trigger: "H H/12 * * *"
95
96
97 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070098 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070099 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700100 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -0700101 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -0700102 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -0700103 onus: 1
104 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -0700105 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700106 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700107
108 - 'voltha-periodic-test':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -0700109 name: 'periodic-voltha-sanity-test-multi-runs-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -0700110 pipeline-script: 'voltha-go-multi-tests.groovy'
111 build-node: 'qct-pod4-node2'
Matteo Scandolo6fb577f2020-09-29 09:51:56 -0700112 code-branch: 'voltha-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -0700113 make-target: sanity-kind
114 onus: 1
115 pons: 1
116 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700117 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700118
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700119 - 'voltha-periodic-test':
120 name: 'nightly-voltha-DTflow-sanity-test'
121 build-node: 'ubuntu16.04-basebuild-4c-8g'
122 code-branch: 'master'
123 make-target: sanity-kind-dt
124 onus: 1
125 pons: 1
126 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700127 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700128
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700129 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700130 - 'verify_physical_voltha_patchset_auto':
131 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700132 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700133 config-pod: 'tucson-pod'
Girish Gowdraa05bbd92020-10-15 08:53:21 -0700134 oltDebVersionMaster: 'openolt_asfvolt16-3.0.0-07ac2cb46d74b83b707fa654ee2e8d4d4de2372a.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700135 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700136 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700137
138 # Per-patchset Pod builds on Tucson pod
139 - 'verify_physical_voltha_patchset_manual':
140 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700141 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700142 config-pod: 'tucson-pod'
Girish Gowdraa05bbd92020-10-15 08:53:21 -0700143 oltDebVersionMaster: 'openolt_asfvolt16-3.0.0-07ac2cb46d74b83b707fa654ee2e8d4d4de2372a.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700144 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700145 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700146 trigger-string: 'hardware test'
147 default-test-args: '-i sanityORDeleteOLT -X'
148
149
150 # Per-patchset Pod builds on Tucson pod
151 - 'verify_physical_voltha_patchset_manual':
152 name: 'verify_physical_voltha_patchset_manual_DT'
153 build-node: 'tucson-pod'
154 config-pod: 'tucson-pod-DT'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700155 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700156 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
157 profile: 'Default'
158 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
159 trigger-string: 'DT hardware test'
160 default-test-args: '-i sanityDt -X'
161
162
Andy Bavier19c98a22019-11-11 13:57:11 -0700163
164 # Manual build job for Tucson pod
165 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700166 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700167 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700168 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700169 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700170 manualBranch: 'master'
Girish Gowdraa05bbd92020-10-15 08:53:21 -0700171 oltDebVersionMaster: 'openolt_asfvolt16-3.0.0-07ac2cb46d74b83b707fa654ee2e8d4d4de2372a.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700172 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700173 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700174
Kailash8b8de742019-07-30 08:54:51 -0700175- job-template:
Kailashaad71012019-08-27 10:36:53 -0700176 id: 'voltha-periodic-test'
177 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700178 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700179 test-runs: 1
180 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700181 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700182 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700183 volthaSystemTestsChange: ''
184 kindVolthaChange: ''
Andrea Campanella6d562182020-10-06 18:39:30 +0200185 extraHelmFlags: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700186 sandbox: true
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800187 olts: 1
Andy Bavierb35171c2020-03-06 15:47:29 -0700188
Kailash8b8de742019-07-30 08:54:51 -0700189 description: |
190 <!-- Managed by Jenkins Job Builder -->
191 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
192 E2E Validation for Voltha 2.X
193
194 properties:
195 - cord-infra-properties:
196 build-days-to-keep: '{build-days-to-keep}'
197 artifact-num-to-keep: '{artifact-num-to-keep}'
198
199 wrappers:
200 - lf-infra-wrappers:
201 build-timeout: '{build-timeout}'
202 jenkins-ssh-credential: '{jenkins-ssh-credential}'
203
204 parameters:
205 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700206 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700207 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700208 description: 'Name of the Jenkins node to run the job on'
209
210 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700211 name: extraHelmFlags
Andrea Campanella6d562182020-10-06 18:39:30 +0200212 default: '--set onu={onus},pon={pons},{extraHelmFlags}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700213 description: 'Helm flags to pass to ./voltha up'
214
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800215 - bool:
216 name: withAlarms
217 default: false
218 description: "Run alarm based tests when true"
219
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700220 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700221 name: makeTarget
222 default: '{make-target}'
223 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700224
Andy Bavier4c8b3232019-11-22 16:17:47 -0700225 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800226 name: makeFailtestTarget
227 default: '{make-target-failtest}'
228 description: 'Makefile target to invoke during failure/based test'
229
230 - string:
231 name: makeErrortestTarget
232 default: '{make-target-errortest}'
233 description: 'Makefile target to invoke during error test'
234
235 - string:
236 name: makeAlarmtestTarget
237 default: '{make-target-alarmtest}'
238 description: 'Makefile target to invoke during alarm test'
239
240 - string:
Andy Bavier4c8b3232019-11-22 16:17:47 -0700241 name: manifestUrl
242 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700243 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700244
245 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700246 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700247 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700248 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700249
Andy Bavier3708d072019-12-10 15:22:18 -0700250 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700251 name: gerritProject
252 default: '{gerrit-project}'
253 description: 'Name of the Gerrit project'
254
255 - string:
256 name: gerritChangeNumber
257 default: ''
258 description: 'Changeset number in Gerrit'
259
260 - string:
261 name: gerritPatchsetNumber
262 default: ''
263 description: 'PatchSet number in Gerrit'
264
265 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700266 name: testRuns
267 default: '{test-runs}'
268 description: 'How many times to repeat the tests'
269
270 - string:
271 name: extraRobotArgs
272 default: '{robot-args}'
273 description: 'Arguments to pass to robot'
274
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700275 - string:
276 name: workFlow
277 default: '{work-flow}'
278 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700279
pierventref48ebc12020-07-17 16:01:32 +0200280 - string:
281 name: karafHome
282 default: '{karaf-home}'
283 description: 'Karaf home'
284
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700285 - string:
286 name: volthaSystemTestsChange
287 default: '{volthaSystemTestsChange}'
288 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
289
290 - string:
291 name: kindVolthaChange
292 default: '{kindVolthaChange}'
293 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
294
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800295 - string:
296 name: olts
297 default: '{olts}'
298 description: 'How many BBSim instances to run'
299
Kailash8b8de742019-07-30 08:54:51 -0700300 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700301 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700302
Zack Williamsb3292082019-10-11 17:15:18 -0700303 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700304
305 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700306 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700307 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700308 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700309
310- job-template:
311 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800312 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700313 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700314 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700315 volthaSystemTestsChange: ''
316 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700317
318 description: |
319 <!-- Managed by Jenkins Job Builder -->
320 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
321 E2E Validation for Voltha 2.X
322
323 properties:
324 - cord-infra-properties:
325 build-days-to-keep: '{build-days-to-keep}'
326 artifact-num-to-keep: '{artifact-num-to-keep}'
327
328 wrappers:
329 - lf-infra-wrappers:
330 build-timeout: '{build-timeout}'
331 jenkins-ssh-credential: '{jenkins-ssh-credential}'
332
333 parameters:
334 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700335 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700336 default: 'ubuntu16.04-basebuild-4c-8g'
337 description: 'Name of the Jenkins node to run the job on'
338
339 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700340 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700341 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700342 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700343
344 - string:
hwchiu14f97852019-10-08 10:51:11 -0700345 name: gerritProject
346 default: '$GERRIT_PROJECT'
347 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700348
349 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700350 name: gerritRefspec
351 default: '$GERRIT_REFSPEC'
352 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700353
354 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700355 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700356 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700357 description: 'Helm flags to pass to ./voltha up'
358
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700359 - string:
360 name: volthaSystemTestsChange
361 default: '{volthaSystemTestsChange}'
362 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
363
364 - string:
365 name: kindVolthaChange
366 default: '{kindVolthaChange}'
367 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
368
Kailashaad71012019-08-27 10:36:53 -0700369 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700370 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700371
Zack Williamsb3292082019-10-11 17:15:18 -0700372 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700373
374 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700375 - gerrit:
376 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700377 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700378 silent-start: true
379 trigger-on:
380 - patchset-created-event:
381 exclude-drafts: true
382 exclude-trivial-rebase: false
383 exclude-no-code-change: true
384 - draft-published-event
385 - comment-added-contains-event:
386 comment-contains-value: '(?i)^.*recheck$'
387 projects:
388 - project-compare-type: REG_EXP
389 project-pattern: '^{project}$'
390 branches:
391 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700392 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700393 file-paths:
394 - compare-type: REG_EXP
395 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700396
397# POD Per Patchset Pipeline Jobs
398
399- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700400 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700401 id: verify_physical_voltha_patchset_auto
402 description: |
403 <!-- Managed by Jenkins Job Builder -->
404 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
405 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
406 Created by Andy Bavier, andy@opennetworking.org <br />
407 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700408 sandbox: true
409 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700410 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700411
412 properties:
413 - cord-infra-properties:
414 build-days-to-keep: '{build-days-to-keep}'
415 artifact-num-to-keep: '{artifact-num-to-keep}'
416
417 parameters:
418 - string:
419 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700420 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700421 description: 'Pod management node'
422
423 - string:
424 name: manifestUrl
425 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
426 description: 'URL to the repo manifest'
427
428 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700429 name: branch
430 default: '$GERRIT_BRANCH'
431 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700432
433 - string:
434 name: gerritProject
435 default: '$GERRIT_PROJECT'
436 description: 'Name of the Gerrit project'
437
438 - string:
439 name: gerritChangeNumber
440 default: '$GERRIT_CHANGE_NUMBER'
441 description: 'Changeset number in Gerrit'
442
443 - string:
444 name: gerritPatchsetNumber
445 default: '$GERRIT_PATCHSET_NUMBER'
446 description: 'PatchSet number in Gerrit'
447
448 - string:
449 name: cordRepoUrl
450 default: '{gerrit-server-url}'
451 description: 'The URL of the CORD Project repository'
452
453 - string:
454 name: podName
455 default: '{config-pod}'
456
457 - string:
458 name: deploymentConfigFile
459 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
460 description: 'Path of deployment config file'
461
462 - string:
463 name: kindVolthaValuesFile
464 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
465 description: 'Path of kind-voltha values override file'
466
467 - string:
468 name: sadisConfigFile
469 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
470 description: 'Path of SADIS config to load'
471
472 - string:
473 name: localConfigDir
474 default: null
475 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
476
477 - string:
478 name: configRepo
479 default: 'pod-configs'
480 description: 'A repository containing the config files, will be checked out if specified'
481
482 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700483 name: oltDebVersionMaster
484 default: '{oltDebVersionMaster}'
485 description: 'OLT Software version to install for master branch builds'
486
487 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700488 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700489 default: '{oltDebVersionVoltha23}'
490 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700491
492 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700493 name: profile
494 default: '{profile}'
495 description: 'Technology Profile pushed to the ETCD'
496
497 - string:
498 name: notificationEmail
499 default: 'andy@opennetworking.org'
500 description: ''
501
502 - bool:
503 name: reinstallOlt
504 default: true
505 description: "Re-install OLT software"
506
Zack Williams03ebb272020-03-27 09:42:33 -0700507 - string:
508 name: manualBranch
509 default: '{manualBranch}'
510 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700511
512 - string:
513 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700514 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700515 description: 'Arguments to pass to robot'
516
517 project-type: pipeline
518 concurrent: true
519
520 dsl: !include-raw-escape: pipeline/{pipeline-script}
521
522 triggers:
523 - gerrit:
524 server-name: '{gerrit-server-name}'
525 dependency-jobs: '{dependency-jobs}'
526 silent-start: false
527 successful-message: "PASSED hardware test"
528 failure-message: "FAILED hardware test"
529 unstable-message: "UNSTABLE hardware test"
530 trigger-on:
531 - comment-added-event:
532 approval-category: 'Code-Review'
533 approval-value: '+2'
534 projects:
535 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700536 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700537 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700538 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700539 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700540
541
542- job-template:
543 name: '{name}'
544 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700545 description: |
546 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700547 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700548 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700549 Created by Andy Bavier, andy@opennetworking.org <br />
550 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700551 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700552 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700553 trigger-string: 'hardware test'
554 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700555
556 properties:
557 - cord-infra-properties:
558 build-days-to-keep: '{build-days-to-keep}'
559 artifact-num-to-keep: '{artifact-num-to-keep}'
560
561 parameters:
562 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700563 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700564 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700565 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700566
567 - string:
568 name: manifestUrl
569 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
570 description: 'URL to the repo manifest'
571
572 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700573 name: branch
574 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700575 description: 'Name of the repo branch to use'
576
577 - string:
578 name: gerritProject
579 default: '$GERRIT_PROJECT'
580 description: 'Name of the Gerrit project'
581
582 - string:
583 name: gerritChangeNumber
584 default: '$GERRIT_CHANGE_NUMBER'
585 description: 'Changeset number in Gerrit'
586
587 - string:
588 name: gerritPatchsetNumber
589 default: '$GERRIT_PATCHSET_NUMBER'
590 description: 'PatchSet number in Gerrit'
591
592 - string:
593 name: cordRepoUrl
594 default: '{gerrit-server-url}'
595 description: 'The URL of the CORD Project repository'
596
597 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700598 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700599 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700600
601 - string:
602 name: deploymentConfigFile
603 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
604 description: 'Path of deployment config file'
605
606 - string:
607 name: kindVolthaValuesFile
608 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
609 description: 'Path of kind-voltha values override file'
610
611 - string:
612 name: sadisConfigFile
613 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
614 description: 'Path of SADIS config to load'
615
616 - string:
617 name: localConfigDir
618 default: null
619 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
620
621 - string:
622 name: configRepo
623 default: 'pod-configs'
624 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700625
626 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700627 name: oltDebVersionMaster
628 default: '{oltDebVersionMaster}'
629 description: 'OLT Software version to install for master branch builds'
630
631 - string:
632 name: oltDebVersionVoltha23
633 default: '{oltDebVersionVoltha23}'
634 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700635
636 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700637 name: profile
638 default: '{profile}'
639 description: 'Technology Profile pushed to the ETCD'
640
641 - string:
642 name: notificationEmail
643 default: 'andy@opennetworking.org'
644 description: ''
645
646 - bool:
647 name: reinstallOlt
648 default: true
649 description: "Re-install OLT software"
650
Zack Williams03ebb272020-03-27 09:42:33 -0700651 - string:
652 name: manualBranch
653 default: '{manualBranch}'
654 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700655
Andy Bavier8c11d462019-12-17 08:19:34 -0700656 - string:
657 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700658 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700659 description: 'Arguments to pass to robot'
660
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700661 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700662 concurrent: true
663
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700664 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700665
Andy Bavier1f465592019-11-06 10:03:56 -0700666 triggers:
667 - gerrit:
668 server-name: '{gerrit-server-name}'
669 dependency-jobs: '{dependency-jobs}'
670 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700671 successful-message: "PASSED {trigger-string}"
672 failure-message: "FAILED {trigger-string}"
673 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700674 trigger-on:
675 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700676 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800677 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700678 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700679 projects:
680 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700681 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests|ofagent-py|ofagent-go|voltha-onos|kind-voltha|voltha-helm-charts)$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700682 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700683 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700684 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700685
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700686
687- job-template:
688 name: '{name}'
689 id: build_physical_voltha_manual
690 description: |
691 <!-- Managed by Jenkins Job Builder -->
692 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
693 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
694 Created by Andy Bavier, andy@opennetworking.org <br />
695 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700696 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700697 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700698
699 properties:
700 - cord-infra-properties:
701 build-days-to-keep: '{build-days-to-keep}'
702 artifact-num-to-keep: '{artifact-num-to-keep}'
703
704 parameters:
705 - string:
706 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700707 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700708 description: 'Pod management node'
709
710 - string:
711 name: manifestUrl
712 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
713 description: 'URL to the repo manifest'
714
715 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700716 name: branch
717 default: "$GERRIT_BRANCH"
718 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700719
720 - string:
721 name: gerritProject
722 default: '$GERRIT_PROJECT'
723 description: 'Name of the Gerrit project'
724
725 - string:
726 name: gerritChangeNumber
727 default: '$GERRIT_CHANGE_NUMBER'
728 description: 'Changeset number in Gerrit'
729
730 - string:
731 name: gerritPatchsetNumber
732 default: '$GERRIT_PATCHSET_NUMBER'
733 description: 'PatchSet number in Gerrit'
734
735 - string:
736 name: cordRepoUrl
737 default: '{gerrit-server-url}'
738 description: 'The URL of the CORD Project repository'
739
740 - string:
741 name: podName
742 default: '{config-pod}'
743
744 - string:
745 name: deploymentConfigFile
746 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
747 description: 'Path of deployment config file'
748
749 - string:
750 name: kindVolthaValuesFile
751 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
752 description: 'Path of kind-voltha values override file'
753
754 - string:
755 name: sadisConfigFile
756 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
757 description: 'Path of SADIS config to load'
758
759 - string:
760 name: localConfigDir
761 default: null
762 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
763
764 - string:
765 name: configRepo
766 default: 'pod-configs'
767 description: 'A repository containing the config files, will be checked out if specified'
768
769 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700770 name: oltDebVersionMaster
771 default: '{oltDebVersionMaster}'
772 description: 'OLT Software version to install for master branch builds'
773
774 - string:
775 name: oltDebVersionVoltha23
776 default: '{oltDebVersionVoltha23}'
777 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700778
779 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700780 name: profile
781 default: '{profile}'
782 description: 'Technology Profile pushed to the ETCD'
783
784 - string:
785 name: notificationEmail
786 default: 'andy@opennetworking.org'
787 description: ''
788
789 - bool:
790 name: reinstallOlt
791 default: false
792 description: "Re-install OLT software"
793
Zack Williams03ebb272020-03-27 09:42:33 -0700794 - string:
795 name: manualBranch
796 default: '{manualBranch}'
797 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700798
Andy Bavier8c11d462019-12-17 08:19:34 -0700799 - string:
800 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700801 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700802 description: 'Arguments to pass to robot'
803
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700804 project-type: pipeline
805 concurrent: true
806
807 dsl: !include-raw-escape: pipeline/{pipeline-script}