blob: 71989d07cedc133553260cf0f4abde420296e5c1 [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
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080014 make-target-multipleolt: bbsim-multiolt-kind
Kailash8b8de742019-07-30 08:54:51 -070015
16 jobs:
hwchiu14f97852019-10-08 10:51:11 -070017 - 'voltha-periodic-test':
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070018 name: 'periodic-voltha-test-bbsim'
19 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavierf93f3142020-01-09 16:08:51 -070020 build-node: 'qct-pod4-node2'
Andy Bavierd4ba3372020-01-21 17:01:53 -070021 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080022 make-target-failtest: bbsim-failurescenarios
23 make-target-errortest: bbsim-errorscenarios
24 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080025 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080026 withAlarms: true
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070027 code-branch: 'master'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080028 olts: 1
29 onus: 2
30 pons: 2
31 time-trigger: "H H/12 * * *"
32
33 - 'voltha-periodic-test':
34 name: 'periodic-voltha-multiple-olts-test-bbsim'
35 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
36 build-node: 'qct-pod4-node2'
Suchitra Vemurie50560a2020-11-18 14:14:09 -080037 make-target: functional-multi-olt
38 make-target-failtest: bbsim-multiolt-failurescenarios
39 make-target-errortest: bbsim-multiolt-errorscenarios
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080040 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080041 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080042 withAlarms: false
43 code-branch: 'master'
44 olts: 2
Andy Bavier4be37062020-06-29 15:17:26 -070045 onus: 2
46 pons: 2
Andy Bavierd4ba3372020-01-21 17:01:53 -070047 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070048
49 - 'voltha-periodic-test':
Andrea Campanella1aa547e2020-10-05 10:32:28 +020050 name: 'periodic-voltha-test-bbsim-openonugo'
51 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
52 build-node: 'qct-pod4-node2'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080053 make-target-failtest: bbsim-failurescenarios
54 make-target-errortest: bbsim-errorscenarios
55 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080056 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080057 withAlarms: true
Andrea Campanella1aa547e2020-10-05 10:32:28 +020058 make-target: functional-single-kind
59 code-branch: 'master'
Andrea Campanella92011402020-10-07 00:20:19 +020060 work-flow: 'DT'
Andrea Campanella51b1c0b2020-10-13 12:12:01 +020061 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 +020062 onus: 2
63 pons: 2
64 time-trigger: "H H/12 * * *"
65
66 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -080067 name: 'periodic-voltha-test-bbsim-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -070068 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavier10926f12020-03-27 16:53:43 -070069 build-node: 'qct-pod4-node2'
Andy Bavier10926f12020-03-27 16:53:43 -070070 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080071 make-target-failtest: bbsim-failurescenarios
72 make-target-errortest: bbsim-errorscenarios
73 make-target-alarmtest: bbsim-alarms-kind
74 withAlarms: true
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -080075 code-branch: 'voltha-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -070076 onus: 2
77 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -070078 time-trigger: "H H/12 * * *"
79
80 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -070081 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -080082 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080083 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080084 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080085 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080086 onus: 2
87 pons: 2
88 time-trigger: "H H/12 * * *"
89
90 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -080091 name: 'periodic-voltha-etcd-test-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -070092 pipeline-script: 'voltha-system-test-bbsim.groovy'
93 build-node: 'ubuntu16.04-basebuild-4c-8g'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -080094 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -070095 make-target: sanity-multi-kind
96 onus: 2
97 pons: 2
98 time-trigger: "H H/12 * * *"
99
100
101 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -0700102 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -0700103 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700104 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -0700105 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -0700106 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -0700107 onus: 1
108 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -0700109 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700110 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700111
112 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800113 name: 'periodic-voltha-sanity-test-multi-runs-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700114 pipeline-script: 'voltha-go-multi-tests.groovy'
115 build-node: 'qct-pod4-node2'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800116 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700117 make-target: sanity-kind
118 onus: 1
119 pons: 1
120 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700121 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700122
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700123 - 'voltha-periodic-test':
124 name: 'nightly-voltha-DTflow-sanity-test'
125 build-node: 'ubuntu16.04-basebuild-4c-8g'
126 code-branch: 'master'
127 make-target: sanity-kind-dt
128 onus: 1
129 pons: 1
130 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700131 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700132
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700133 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700134 - 'verify_physical_voltha_patchset_auto':
135 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700136 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700137 config-pod: 'tucson-pod'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800138 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700139 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700140 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700141
142 # Per-patchset Pod builds on Tucson pod
143 - 'verify_physical_voltha_patchset_manual':
144 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700145 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700146 config-pod: 'tucson-pod'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800147 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700148 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700149 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700150 trigger-string: 'hardware test'
151 default-test-args: '-i sanityORDeleteOLT -X'
152
153
154 # Per-patchset Pod builds on Tucson pod
155 - 'verify_physical_voltha_patchset_manual':
156 name: 'verify_physical_voltha_patchset_manual_DT'
157 build-node: 'tucson-pod'
158 config-pod: 'tucson-pod-DT'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800159 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700160 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
161 profile: 'Default'
162 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
163 trigger-string: 'DT hardware test'
164 default-test-args: '-i sanityDt -X'
165
166
Andy Bavier19c98a22019-11-11 13:57:11 -0700167
168 # Manual build job for Tucson pod
169 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700170 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700171 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700172 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700173 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700174 manualBranch: 'master'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800175 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700176 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700177 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700178
Kailash8b8de742019-07-30 08:54:51 -0700179- job-template:
Kailashaad71012019-08-27 10:36:53 -0700180 id: 'voltha-periodic-test'
181 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700182 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700183 test-runs: 1
184 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700185 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700186 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700187 volthaSystemTestsChange: ''
188 kindVolthaChange: ''
Andrea Campanella6d562182020-10-06 18:39:30 +0200189 extraHelmFlags: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700190 sandbox: true
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800191 olts: 1
Matteo Scandolob36f0892020-11-23 12:19:48 -0800192 withAlarms: false
Andy Bavierb35171c2020-03-06 15:47:29 -0700193
Kailash8b8de742019-07-30 08:54:51 -0700194 description: |
195 <!-- Managed by Jenkins Job Builder -->
196 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
197 E2E Validation for Voltha 2.X
198
199 properties:
200 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800201 build-days-to-keep: '{big-build-days-to-keep}'
202 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Kailash8b8de742019-07-30 08:54:51 -0700203
204 wrappers:
205 - lf-infra-wrappers:
206 build-timeout: '{build-timeout}'
207 jenkins-ssh-credential: '{jenkins-ssh-credential}'
208
209 parameters:
210 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700211 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700212 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700213 description: 'Name of the Jenkins node to run the job on'
214
215 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700216 name: extraHelmFlags
Andrea Campanella6d562182020-10-06 18:39:30 +0200217 default: '--set onu={onus},pon={pons},{extraHelmFlags}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700218 description: 'Helm flags to pass to ./voltha up'
219
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800220 - bool:
221 name: withAlarms
Matteo Scandolob36f0892020-11-23 12:19:48 -0800222 default: '{withAlarms}'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800223 description: "Run alarm based tests when true"
224
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700225 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700226 name: makeTarget
227 default: '{make-target}'
228 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700229
Andy Bavier4c8b3232019-11-22 16:17:47 -0700230 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800231 name: makeFailtestTarget
232 default: '{make-target-failtest}'
233 description: 'Makefile target to invoke during failure/based test'
234
235 - string:
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800236 name: makeMultiOltTarget
237 default: '{make-target-multipleolt}'
238 description: 'Makefile target to invoke during multiple olt test'
239
240 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800241 name: makeErrortestTarget
242 default: '{make-target-errortest}'
243 description: 'Makefile target to invoke during error test'
244
245 - string:
246 name: makeAlarmtestTarget
247 default: '{make-target-alarmtest}'
248 description: 'Makefile target to invoke during alarm test'
249
250 - string:
Andy Bavier4c8b3232019-11-22 16:17:47 -0700251 name: manifestUrl
252 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700253 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700254
255 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700256 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700257 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700258 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700259
Andy Bavier3708d072019-12-10 15:22:18 -0700260 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700261 name: gerritProject
262 default: '{gerrit-project}'
263 description: 'Name of the Gerrit project'
264
265 - string:
266 name: gerritChangeNumber
267 default: ''
268 description: 'Changeset number in Gerrit'
269
270 - string:
271 name: gerritPatchsetNumber
272 default: ''
273 description: 'PatchSet number in Gerrit'
274
275 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700276 name: testRuns
277 default: '{test-runs}'
278 description: 'How many times to repeat the tests'
279
280 - string:
281 name: extraRobotArgs
282 default: '{robot-args}'
283 description: 'Arguments to pass to robot'
284
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700285 - string:
286 name: workFlow
287 default: '{work-flow}'
288 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700289
pierventref48ebc12020-07-17 16:01:32 +0200290 - string:
291 name: karafHome
292 default: '{karaf-home}'
293 description: 'Karaf home'
294
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700295 - string:
296 name: volthaSystemTestsChange
297 default: '{volthaSystemTestsChange}'
298 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
299
300 - string:
301 name: kindVolthaChange
302 default: '{kindVolthaChange}'
303 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
304
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800305 - string:
306 name: olts
307 default: '{olts}'
308 description: 'How many BBSim instances to run'
309
Kailash8b8de742019-07-30 08:54:51 -0700310 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700311 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700312
Zack Williamsb3292082019-10-11 17:15:18 -0700313 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700314
315 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700316 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700317 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700318 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700319
320- job-template:
321 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800322 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700323 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700324 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700325 volthaSystemTestsChange: ''
326 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700327
328 description: |
329 <!-- Managed by Jenkins Job Builder -->
330 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
331 E2E Validation for Voltha 2.X
332
333 properties:
334 - cord-infra-properties:
335 build-days-to-keep: '{build-days-to-keep}'
336 artifact-num-to-keep: '{artifact-num-to-keep}'
337
338 wrappers:
339 - lf-infra-wrappers:
340 build-timeout: '{build-timeout}'
341 jenkins-ssh-credential: '{jenkins-ssh-credential}'
342
343 parameters:
344 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700345 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700346 default: 'ubuntu16.04-basebuild-4c-8g'
347 description: 'Name of the Jenkins node to run the job on'
348
349 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700350 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700351 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700352 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700353
354 - string:
hwchiu14f97852019-10-08 10:51:11 -0700355 name: gerritProject
356 default: '$GERRIT_PROJECT'
357 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700358
359 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700360 name: gerritRefspec
361 default: '$GERRIT_REFSPEC'
362 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700363
364 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700365 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700366 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700367 description: 'Helm flags to pass to ./voltha up'
368
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700369 - string:
370 name: volthaSystemTestsChange
371 default: '{volthaSystemTestsChange}'
372 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
373
374 - string:
375 name: kindVolthaChange
376 default: '{kindVolthaChange}'
377 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
378
Kailashaad71012019-08-27 10:36:53 -0700379 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700380 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700381
Zack Williamsb3292082019-10-11 17:15:18 -0700382 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700383
384 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700385 - gerrit:
386 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700387 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700388 silent-start: true
389 trigger-on:
390 - patchset-created-event:
391 exclude-drafts: true
392 exclude-trivial-rebase: false
393 exclude-no-code-change: true
394 - draft-published-event
395 - comment-added-contains-event:
396 comment-contains-value: '(?i)^.*recheck$'
397 projects:
398 - project-compare-type: REG_EXP
399 project-pattern: '^{project}$'
400 branches:
401 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700402 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700403 file-paths:
404 - compare-type: REG_EXP
405 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700406
407# POD Per Patchset Pipeline Jobs
408
409- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700410 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700411 id: verify_physical_voltha_patchset_auto
412 description: |
413 <!-- Managed by Jenkins Job Builder -->
414 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
415 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
416 Created by Andy Bavier, andy@opennetworking.org <br />
417 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700418 sandbox: true
419 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700420 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700421
422 properties:
423 - cord-infra-properties:
424 build-days-to-keep: '{build-days-to-keep}'
425 artifact-num-to-keep: '{artifact-num-to-keep}'
426
427 parameters:
428 - string:
429 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700430 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700431 description: 'Pod management node'
432
433 - string:
434 name: manifestUrl
435 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
436 description: 'URL to the repo manifest'
437
438 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700439 name: branch
440 default: '$GERRIT_BRANCH'
441 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700442
443 - string:
444 name: gerritProject
445 default: '$GERRIT_PROJECT'
446 description: 'Name of the Gerrit project'
447
448 - string:
449 name: gerritChangeNumber
450 default: '$GERRIT_CHANGE_NUMBER'
451 description: 'Changeset number in Gerrit'
452
453 - string:
454 name: gerritPatchsetNumber
455 default: '$GERRIT_PATCHSET_NUMBER'
456 description: 'PatchSet number in Gerrit'
457
458 - string:
459 name: cordRepoUrl
460 default: '{gerrit-server-url}'
461 description: 'The URL of the CORD Project repository'
462
463 - string:
464 name: podName
465 default: '{config-pod}'
466
467 - string:
468 name: deploymentConfigFile
469 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
470 description: 'Path of deployment config file'
471
472 - string:
473 name: kindVolthaValuesFile
474 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
475 description: 'Path of kind-voltha values override file'
476
477 - string:
478 name: sadisConfigFile
479 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
480 description: 'Path of SADIS config to load'
481
482 - string:
483 name: localConfigDir
484 default: null
485 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
486
487 - string:
488 name: configRepo
489 default: 'pod-configs'
490 description: 'A repository containing the config files, will be checked out if specified'
491
492 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700493 name: oltDebVersionMaster
494 default: '{oltDebVersionMaster}'
495 description: 'OLT Software version to install for master branch builds'
496
497 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700498 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700499 default: '{oltDebVersionVoltha23}'
500 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700501
502 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700503 name: profile
504 default: '{profile}'
505 description: 'Technology Profile pushed to the ETCD'
506
507 - string:
508 name: notificationEmail
509 default: 'andy@opennetworking.org'
510 description: ''
511
512 - bool:
513 name: reinstallOlt
514 default: true
515 description: "Re-install OLT software"
516
Zack Williams03ebb272020-03-27 09:42:33 -0700517 - string:
518 name: manualBranch
519 default: '{manualBranch}'
520 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700521
522 - string:
523 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700524 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700525 description: 'Arguments to pass to robot'
526
527 project-type: pipeline
528 concurrent: true
529
530 dsl: !include-raw-escape: pipeline/{pipeline-script}
531
532 triggers:
533 - gerrit:
534 server-name: '{gerrit-server-name}'
535 dependency-jobs: '{dependency-jobs}'
536 silent-start: false
537 successful-message: "PASSED hardware test"
538 failure-message: "FAILED hardware test"
539 unstable-message: "UNSTABLE hardware test"
540 trigger-on:
541 - comment-added-event:
542 approval-category: 'Code-Review'
543 approval-value: '+2'
544 projects:
545 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700546 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700547 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700548 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700549 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700550
551
552- job-template:
553 name: '{name}'
554 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700555 description: |
556 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700557 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700558 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700559 Created by Andy Bavier, andy@opennetworking.org <br />
560 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700561 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700562 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700563 trigger-string: 'hardware test'
564 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700565
566 properties:
567 - cord-infra-properties:
568 build-days-to-keep: '{build-days-to-keep}'
569 artifact-num-to-keep: '{artifact-num-to-keep}'
570
571 parameters:
572 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700573 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700574 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700575 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700576
577 - string:
578 name: manifestUrl
579 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
580 description: 'URL to the repo manifest'
581
582 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700583 name: branch
584 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700585 description: 'Name of the repo branch to use'
586
587 - string:
588 name: gerritProject
589 default: '$GERRIT_PROJECT'
590 description: 'Name of the Gerrit project'
591
592 - string:
593 name: gerritChangeNumber
594 default: '$GERRIT_CHANGE_NUMBER'
595 description: 'Changeset number in Gerrit'
596
597 - string:
598 name: gerritPatchsetNumber
599 default: '$GERRIT_PATCHSET_NUMBER'
600 description: 'PatchSet number in Gerrit'
601
602 - string:
603 name: cordRepoUrl
604 default: '{gerrit-server-url}'
605 description: 'The URL of the CORD Project repository'
606
607 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700608 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700609 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700610
611 - string:
612 name: deploymentConfigFile
613 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
614 description: 'Path of deployment config file'
615
616 - string:
617 name: kindVolthaValuesFile
618 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
619 description: 'Path of kind-voltha values override file'
620
621 - string:
622 name: sadisConfigFile
623 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
624 description: 'Path of SADIS config to load'
625
626 - string:
627 name: localConfigDir
628 default: null
629 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
630
631 - string:
632 name: configRepo
633 default: 'pod-configs'
634 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700635
636 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700637 name: oltDebVersionMaster
638 default: '{oltDebVersionMaster}'
639 description: 'OLT Software version to install for master branch builds'
640
641 - string:
642 name: oltDebVersionVoltha23
643 default: '{oltDebVersionVoltha23}'
644 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700645
646 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700647 name: profile
648 default: '{profile}'
649 description: 'Technology Profile pushed to the ETCD'
650
651 - string:
652 name: notificationEmail
653 default: 'andy@opennetworking.org'
654 description: ''
655
656 - bool:
657 name: reinstallOlt
658 default: true
659 description: "Re-install OLT software"
660
Zack Williams03ebb272020-03-27 09:42:33 -0700661 - string:
662 name: manualBranch
663 default: '{manualBranch}'
664 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700665
Andy Bavier8c11d462019-12-17 08:19:34 -0700666 - string:
667 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700668 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700669 description: 'Arguments to pass to robot'
670
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700671 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700672 concurrent: true
673
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700674 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700675
Andy Bavier1f465592019-11-06 10:03:56 -0700676 triggers:
677 - gerrit:
678 server-name: '{gerrit-server-name}'
679 dependency-jobs: '{dependency-jobs}'
680 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700681 successful-message: "PASSED {trigger-string}"
682 failure-message: "FAILED {trigger-string}"
683 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700684 trigger-on:
685 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700686 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800687 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700688 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700689 projects:
690 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700691 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 -0700692 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700693 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700694 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700695
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700696
697- job-template:
698 name: '{name}'
699 id: build_physical_voltha_manual
700 description: |
701 <!-- Managed by Jenkins Job Builder -->
702 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
703 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
704 Created by Andy Bavier, andy@opennetworking.org <br />
705 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700706 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700707 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700708
709 properties:
710 - cord-infra-properties:
711 build-days-to-keep: '{build-days-to-keep}'
712 artifact-num-to-keep: '{artifact-num-to-keep}'
713
714 parameters:
715 - string:
716 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700717 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700718 description: 'Pod management node'
719
720 - string:
721 name: manifestUrl
722 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
723 description: 'URL to the repo manifest'
724
725 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700726 name: branch
727 default: "$GERRIT_BRANCH"
728 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700729
730 - string:
731 name: gerritProject
732 default: '$GERRIT_PROJECT'
733 description: 'Name of the Gerrit project'
734
735 - string:
736 name: gerritChangeNumber
737 default: '$GERRIT_CHANGE_NUMBER'
738 description: 'Changeset number in Gerrit'
739
740 - string:
741 name: gerritPatchsetNumber
742 default: '$GERRIT_PATCHSET_NUMBER'
743 description: 'PatchSet number in Gerrit'
744
745 - string:
746 name: cordRepoUrl
747 default: '{gerrit-server-url}'
748 description: 'The URL of the CORD Project repository'
749
750 - string:
751 name: podName
752 default: '{config-pod}'
753
754 - string:
755 name: deploymentConfigFile
756 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
757 description: 'Path of deployment config file'
758
759 - string:
760 name: kindVolthaValuesFile
761 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
762 description: 'Path of kind-voltha values override file'
763
764 - string:
765 name: sadisConfigFile
766 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
767 description: 'Path of SADIS config to load'
768
769 - string:
770 name: localConfigDir
771 default: null
772 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
773
774 - string:
775 name: configRepo
776 default: 'pod-configs'
777 description: 'A repository containing the config files, will be checked out if specified'
778
779 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700780 name: oltDebVersionMaster
781 default: '{oltDebVersionMaster}'
782 description: 'OLT Software version to install for master branch builds'
783
784 - string:
785 name: oltDebVersionVoltha23
786 default: '{oltDebVersionVoltha23}'
787 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700788
789 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700790 name: profile
791 default: '{profile}'
792 description: 'Technology Profile pushed to the ETCD'
793
794 - string:
795 name: notificationEmail
796 default: 'andy@opennetworking.org'
797 description: ''
798
799 - bool:
800 name: reinstallOlt
801 default: false
802 description: "Re-install OLT software"
803
Zack Williams03ebb272020-03-27 09:42:33 -0700804 - string:
805 name: manualBranch
806 default: '{manualBranch}'
807 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700808
Andy Bavier8c11d462019-12-17 08:19:34 -0700809 - string:
810 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700811 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700812 description: 'Arguments to pass to robot'
813
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700814 project-type: pipeline
815 concurrent: true
816
817 dsl: !include-raw-escape: pipeline/{pipeline-script}