blob: f534efd783814f9c8023751e11f199803ff91da0 [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'
Suchitra Vemurie50560a2020-11-18 14:14:09 -080035 make-target: functional-multi-olt
36 make-target-failtest: bbsim-multiolt-failurescenarios
37 make-target-errortest: bbsim-multiolt-errorscenarios
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080038 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 Gowdrad163b3d2020-11-16 21:57:54 -0800134 oltDebVersionMaster: 'openolt_asfvolt16-3.1.0-812c1126ece038da5c40d0830a09cb67ca36ea07.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 Gowdrad163b3d2020-11-16 21:57:54 -0800143 oltDebVersionMaster: 'openolt_asfvolt16-3.1.0-812c1126ece038da5c40d0830a09cb67ca36ea07.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 Gowdrad163b3d2020-11-16 21:57:54 -0800171 oltDebVersionMaster: 'openolt_asfvolt16-3.1.0-812c1126ece038da5c40d0830a09cb67ca36ea07.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
Matteo Scandolob36f0892020-11-23 12:19:48 -0800188 withAlarms: false
Andy Bavierb35171c2020-03-06 15:47:29 -0700189
Kailash8b8de742019-07-30 08:54:51 -0700190 description: |
191 <!-- Managed by Jenkins Job Builder -->
192 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
193 E2E Validation for Voltha 2.X
194
195 properties:
196 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800197 build-days-to-keep: '{big-build-days-to-keep}'
198 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Kailash8b8de742019-07-30 08:54:51 -0700199
200 wrappers:
201 - lf-infra-wrappers:
202 build-timeout: '{build-timeout}'
203 jenkins-ssh-credential: '{jenkins-ssh-credential}'
204
205 parameters:
206 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700207 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700208 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700209 description: 'Name of the Jenkins node to run the job on'
210
211 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700212 name: extraHelmFlags
Andrea Campanella6d562182020-10-06 18:39:30 +0200213 default: '--set onu={onus},pon={pons},{extraHelmFlags}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700214 description: 'Helm flags to pass to ./voltha up'
215
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800216 - bool:
217 name: withAlarms
Matteo Scandolob36f0892020-11-23 12:19:48 -0800218 default: '{withAlarms}'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800219 description: "Run alarm based tests when true"
220
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700221 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700222 name: makeTarget
223 default: '{make-target}'
224 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700225
Andy Bavier4c8b3232019-11-22 16:17:47 -0700226 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800227 name: makeFailtestTarget
228 default: '{make-target-failtest}'
229 description: 'Makefile target to invoke during failure/based test'
230
231 - string:
232 name: makeErrortestTarget
233 default: '{make-target-errortest}'
234 description: 'Makefile target to invoke during error test'
235
236 - string:
237 name: makeAlarmtestTarget
238 default: '{make-target-alarmtest}'
239 description: 'Makefile target to invoke during alarm test'
240
241 - string:
Andy Bavier4c8b3232019-11-22 16:17:47 -0700242 name: manifestUrl
243 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700244 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700245
246 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700247 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700248 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700249 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700250
Andy Bavier3708d072019-12-10 15:22:18 -0700251 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700252 name: gerritProject
253 default: '{gerrit-project}'
254 description: 'Name of the Gerrit project'
255
256 - string:
257 name: gerritChangeNumber
258 default: ''
259 description: 'Changeset number in Gerrit'
260
261 - string:
262 name: gerritPatchsetNumber
263 default: ''
264 description: 'PatchSet number in Gerrit'
265
266 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700267 name: testRuns
268 default: '{test-runs}'
269 description: 'How many times to repeat the tests'
270
271 - string:
272 name: extraRobotArgs
273 default: '{robot-args}'
274 description: 'Arguments to pass to robot'
275
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700276 - string:
277 name: workFlow
278 default: '{work-flow}'
279 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700280
pierventref48ebc12020-07-17 16:01:32 +0200281 - string:
282 name: karafHome
283 default: '{karaf-home}'
284 description: 'Karaf home'
285
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700286 - string:
287 name: volthaSystemTestsChange
288 default: '{volthaSystemTestsChange}'
289 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
290
291 - string:
292 name: kindVolthaChange
293 default: '{kindVolthaChange}'
294 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
295
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800296 - string:
297 name: olts
298 default: '{olts}'
299 description: 'How many BBSim instances to run'
300
Kailash8b8de742019-07-30 08:54:51 -0700301 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700302 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700303
Zack Williamsb3292082019-10-11 17:15:18 -0700304 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700305
306 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700307 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700308 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700309 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700310
311- job-template:
312 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800313 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700314 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700315 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700316 volthaSystemTestsChange: ''
317 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700318
319 description: |
320 <!-- Managed by Jenkins Job Builder -->
321 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
322 E2E Validation for Voltha 2.X
323
324 properties:
325 - cord-infra-properties:
326 build-days-to-keep: '{build-days-to-keep}'
327 artifact-num-to-keep: '{artifact-num-to-keep}'
328
329 wrappers:
330 - lf-infra-wrappers:
331 build-timeout: '{build-timeout}'
332 jenkins-ssh-credential: '{jenkins-ssh-credential}'
333
334 parameters:
335 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700336 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700337 default: 'ubuntu16.04-basebuild-4c-8g'
338 description: 'Name of the Jenkins node to run the job on'
339
340 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700341 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700342 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700343 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700344
345 - string:
hwchiu14f97852019-10-08 10:51:11 -0700346 name: gerritProject
347 default: '$GERRIT_PROJECT'
348 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700349
350 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700351 name: gerritRefspec
352 default: '$GERRIT_REFSPEC'
353 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700354
355 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700356 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700357 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700358 description: 'Helm flags to pass to ./voltha up'
359
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700360 - string:
361 name: volthaSystemTestsChange
362 default: '{volthaSystemTestsChange}'
363 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
364
365 - string:
366 name: kindVolthaChange
367 default: '{kindVolthaChange}'
368 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
369
Kailashaad71012019-08-27 10:36:53 -0700370 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700371 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700372
Zack Williamsb3292082019-10-11 17:15:18 -0700373 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700374
375 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700376 - gerrit:
377 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700378 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700379 silent-start: true
380 trigger-on:
381 - patchset-created-event:
382 exclude-drafts: true
383 exclude-trivial-rebase: false
384 exclude-no-code-change: true
385 - draft-published-event
386 - comment-added-contains-event:
387 comment-contains-value: '(?i)^.*recheck$'
388 projects:
389 - project-compare-type: REG_EXP
390 project-pattern: '^{project}$'
391 branches:
392 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700393 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700394 file-paths:
395 - compare-type: REG_EXP
396 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700397
398# POD Per Patchset Pipeline Jobs
399
400- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700401 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700402 id: verify_physical_voltha_patchset_auto
403 description: |
404 <!-- Managed by Jenkins Job Builder -->
405 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
406 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
407 Created by Andy Bavier, andy@opennetworking.org <br />
408 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700409 sandbox: true
410 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700411 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700412
413 properties:
414 - cord-infra-properties:
415 build-days-to-keep: '{build-days-to-keep}'
416 artifact-num-to-keep: '{artifact-num-to-keep}'
417
418 parameters:
419 - string:
420 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700421 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700422 description: 'Pod management node'
423
424 - string:
425 name: manifestUrl
426 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
427 description: 'URL to the repo manifest'
428
429 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700430 name: branch
431 default: '$GERRIT_BRANCH'
432 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700433
434 - string:
435 name: gerritProject
436 default: '$GERRIT_PROJECT'
437 description: 'Name of the Gerrit project'
438
439 - string:
440 name: gerritChangeNumber
441 default: '$GERRIT_CHANGE_NUMBER'
442 description: 'Changeset number in Gerrit'
443
444 - string:
445 name: gerritPatchsetNumber
446 default: '$GERRIT_PATCHSET_NUMBER'
447 description: 'PatchSet number in Gerrit'
448
449 - string:
450 name: cordRepoUrl
451 default: '{gerrit-server-url}'
452 description: 'The URL of the CORD Project repository'
453
454 - string:
455 name: podName
456 default: '{config-pod}'
457
458 - string:
459 name: deploymentConfigFile
460 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
461 description: 'Path of deployment config file'
462
463 - string:
464 name: kindVolthaValuesFile
465 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
466 description: 'Path of kind-voltha values override file'
467
468 - string:
469 name: sadisConfigFile
470 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
471 description: 'Path of SADIS config to load'
472
473 - string:
474 name: localConfigDir
475 default: null
476 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
477
478 - string:
479 name: configRepo
480 default: 'pod-configs'
481 description: 'A repository containing the config files, will be checked out if specified'
482
483 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700484 name: oltDebVersionMaster
485 default: '{oltDebVersionMaster}'
486 description: 'OLT Software version to install for master branch builds'
487
488 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700489 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700490 default: '{oltDebVersionVoltha23}'
491 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700492
493 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700494 name: profile
495 default: '{profile}'
496 description: 'Technology Profile pushed to the ETCD'
497
498 - string:
499 name: notificationEmail
500 default: 'andy@opennetworking.org'
501 description: ''
502
503 - bool:
504 name: reinstallOlt
505 default: true
506 description: "Re-install OLT software"
507
Zack Williams03ebb272020-03-27 09:42:33 -0700508 - string:
509 name: manualBranch
510 default: '{manualBranch}'
511 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700512
513 - string:
514 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700515 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700516 description: 'Arguments to pass to robot'
517
518 project-type: pipeline
519 concurrent: true
520
521 dsl: !include-raw-escape: pipeline/{pipeline-script}
522
523 triggers:
524 - gerrit:
525 server-name: '{gerrit-server-name}'
526 dependency-jobs: '{dependency-jobs}'
527 silent-start: false
528 successful-message: "PASSED hardware test"
529 failure-message: "FAILED hardware test"
530 unstable-message: "UNSTABLE hardware test"
531 trigger-on:
532 - comment-added-event:
533 approval-category: 'Code-Review'
534 approval-value: '+2'
535 projects:
536 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700537 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700538 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700539 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700540 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700541
542
543- job-template:
544 name: '{name}'
545 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700546 description: |
547 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700548 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700549 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700550 Created by Andy Bavier, andy@opennetworking.org <br />
551 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700552 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700553 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700554 trigger-string: 'hardware test'
555 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700556
557 properties:
558 - cord-infra-properties:
559 build-days-to-keep: '{build-days-to-keep}'
560 artifact-num-to-keep: '{artifact-num-to-keep}'
561
562 parameters:
563 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700564 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700565 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700566 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700567
568 - string:
569 name: manifestUrl
570 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
571 description: 'URL to the repo manifest'
572
573 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700574 name: branch
575 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700576 description: 'Name of the repo branch to use'
577
578 - string:
579 name: gerritProject
580 default: '$GERRIT_PROJECT'
581 description: 'Name of the Gerrit project'
582
583 - string:
584 name: gerritChangeNumber
585 default: '$GERRIT_CHANGE_NUMBER'
586 description: 'Changeset number in Gerrit'
587
588 - string:
589 name: gerritPatchsetNumber
590 default: '$GERRIT_PATCHSET_NUMBER'
591 description: 'PatchSet number in Gerrit'
592
593 - string:
594 name: cordRepoUrl
595 default: '{gerrit-server-url}'
596 description: 'The URL of the CORD Project repository'
597
598 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700599 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700600 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700601
602 - string:
603 name: deploymentConfigFile
604 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
605 description: 'Path of deployment config file'
606
607 - string:
608 name: kindVolthaValuesFile
609 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
610 description: 'Path of kind-voltha values override file'
611
612 - string:
613 name: sadisConfigFile
614 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
615 description: 'Path of SADIS config to load'
616
617 - string:
618 name: localConfigDir
619 default: null
620 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
621
622 - string:
623 name: configRepo
624 default: 'pod-configs'
625 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700626
627 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700628 name: oltDebVersionMaster
629 default: '{oltDebVersionMaster}'
630 description: 'OLT Software version to install for master branch builds'
631
632 - string:
633 name: oltDebVersionVoltha23
634 default: '{oltDebVersionVoltha23}'
635 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700636
637 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700638 name: profile
639 default: '{profile}'
640 description: 'Technology Profile pushed to the ETCD'
641
642 - string:
643 name: notificationEmail
644 default: 'andy@opennetworking.org'
645 description: ''
646
647 - bool:
648 name: reinstallOlt
649 default: true
650 description: "Re-install OLT software"
651
Zack Williams03ebb272020-03-27 09:42:33 -0700652 - string:
653 name: manualBranch
654 default: '{manualBranch}'
655 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700656
Andy Bavier8c11d462019-12-17 08:19:34 -0700657 - string:
658 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700659 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700660 description: 'Arguments to pass to robot'
661
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700662 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700663 concurrent: true
664
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700665 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700666
Andy Bavier1f465592019-11-06 10:03:56 -0700667 triggers:
668 - gerrit:
669 server-name: '{gerrit-server-name}'
670 dependency-jobs: '{dependency-jobs}'
671 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700672 successful-message: "PASSED {trigger-string}"
673 failure-message: "FAILED {trigger-string}"
674 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700675 trigger-on:
676 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700677 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800678 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700679 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700680 projects:
681 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700682 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 -0700683 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700684 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700685 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700686
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700687
688- job-template:
689 name: '{name}'
690 id: build_physical_voltha_manual
691 description: |
692 <!-- Managed by Jenkins Job Builder -->
693 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
694 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
695 Created by Andy Bavier, andy@opennetworking.org <br />
696 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700697 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700698 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700699
700 properties:
701 - cord-infra-properties:
702 build-days-to-keep: '{build-days-to-keep}'
703 artifact-num-to-keep: '{artifact-num-to-keep}'
704
705 parameters:
706 - string:
707 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700708 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700709 description: 'Pod management node'
710
711 - string:
712 name: manifestUrl
713 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
714 description: 'URL to the repo manifest'
715
716 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700717 name: branch
718 default: "$GERRIT_BRANCH"
719 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700720
721 - string:
722 name: gerritProject
723 default: '$GERRIT_PROJECT'
724 description: 'Name of the Gerrit project'
725
726 - string:
727 name: gerritChangeNumber
728 default: '$GERRIT_CHANGE_NUMBER'
729 description: 'Changeset number in Gerrit'
730
731 - string:
732 name: gerritPatchsetNumber
733 default: '$GERRIT_PATCHSET_NUMBER'
734 description: 'PatchSet number in Gerrit'
735
736 - string:
737 name: cordRepoUrl
738 default: '{gerrit-server-url}'
739 description: 'The URL of the CORD Project repository'
740
741 - string:
742 name: podName
743 default: '{config-pod}'
744
745 - string:
746 name: deploymentConfigFile
747 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
748 description: 'Path of deployment config file'
749
750 - string:
751 name: kindVolthaValuesFile
752 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
753 description: 'Path of kind-voltha values override file'
754
755 - string:
756 name: sadisConfigFile
757 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
758 description: 'Path of SADIS config to load'
759
760 - string:
761 name: localConfigDir
762 default: null
763 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
764
765 - string:
766 name: configRepo
767 default: 'pod-configs'
768 description: 'A repository containing the config files, will be checked out if specified'
769
770 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700771 name: oltDebVersionMaster
772 default: '{oltDebVersionMaster}'
773 description: 'OLT Software version to install for master branch builds'
774
775 - string:
776 name: oltDebVersionVoltha23
777 default: '{oltDebVersionVoltha23}'
778 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700779
780 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700781 name: profile
782 default: '{profile}'
783 description: 'Technology Profile pushed to the ETCD'
784
785 - string:
786 name: notificationEmail
787 default: 'andy@opennetworking.org'
788 description: ''
789
790 - bool:
791 name: reinstallOlt
792 default: false
793 description: "Re-install OLT software"
794
Zack Williams03ebb272020-03-27 09:42:33 -0700795 - string:
796 name: manualBranch
797 default: '{manualBranch}'
798 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700799
Andy Bavier8c11d462019-12-17 08:19:34 -0700800 - string:
801 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700802 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700803 description: 'Arguments to pass to robot'
804
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700805 project-type: pipeline
806 concurrent: true
807
808 dsl: !include-raw-escape: pipeline/{pipeline-script}