blob: db74ad792b7656e77c7b51dc18defb22a98d4f9e [file] [log] [blame]
Kailash8b8de742019-07-30 08:54:51 -07001---
2# voltha 2.0 tests
3
4- project:
5 name: voltha-e2e
6
7 project-name: '{name}'
Zack Williams03ebb272020-03-27 09:42:33 -07008 manualBranch: ''
Suchitra Vemuri456b6b42020-11-10 19:06:22 -08009 olts: 1
Andrea Campanellaf3c32af2020-12-10 12:21:57 +010010 onus: 1
11 pons: 1
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080012 withAlarms: true
13 make-target-failtest: bbsim-failurescenarios
14 make-target-errortest: bbsim-errorscenarios
15 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080016 make-target-multipleolt: bbsim-multiolt-kind
Kailash8b8de742019-07-30 08:54:51 -070017
18 jobs:
hwchiu14f97852019-10-08 10:51:11 -070019 - 'voltha-periodic-test':
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070020 name: 'periodic-voltha-test-bbsim'
21 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavierf93f3142020-01-09 16:08:51 -070022 build-node: 'qct-pod4-node2'
Andy Bavierd4ba3372020-01-21 17:01:53 -070023 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080024 make-target-failtest: bbsim-failurescenarios
25 make-target-errortest: bbsim-errorscenarios
26 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080027 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080028 withAlarms: true
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070029 code-branch: 'master'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080030 olts: 1
31 onus: 2
32 pons: 2
33 time-trigger: "H H/12 * * *"
34
35 - 'voltha-periodic-test':
36 name: 'periodic-voltha-multiple-olts-test-bbsim'
37 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
38 build-node: 'qct-pod4-node2'
Suchitra Vemurie50560a2020-11-18 14:14:09 -080039 make-target: functional-multi-olt
40 make-target-failtest: bbsim-multiolt-failurescenarios
41 make-target-errortest: bbsim-multiolt-errorscenarios
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080042 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080043 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080044 withAlarms: false
45 code-branch: 'master'
46 olts: 2
Andy Bavier4be37062020-06-29 15:17:26 -070047 onus: 2
48 pons: 2
Andy Bavierd4ba3372020-01-21 17:01:53 -070049 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070050
51 - 'voltha-periodic-test':
Andrea Campanella1aa547e2020-10-05 10:32:28 +020052 name: 'periodic-voltha-test-bbsim-openonugo'
53 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
54 build-node: 'qct-pod4-node2'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080055 make-target-failtest: bbsim-failurescenarios
56 make-target-errortest: bbsim-errorscenarios
57 make-target-alarmtest: bbsim-alarms-kind
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -080058 make-target-multipleolt: bbsim-multiolt-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080059 withAlarms: true
Andrea Campanella1aa547e2020-10-05 10:32:28 +020060 make-target: functional-single-kind
61 code-branch: 'master'
Andrea Campanella92011402020-10-07 00:20:19 +020062 work-flow: 'DT'
Andrea Campanella51b1c0b2020-10-13 12:12:01 +020063 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 +020064 onus: 2
65 pons: 2
66 time-trigger: "H H/12 * * *"
67
68 - 'voltha-periodic-test':
Andrea Campanellaf3c32af2020-12-10 12:21:57 +010069 name: 'periodic-voltha-test-DMI'
70 pipeline-script: 'voltha-DMI-bbsim-tests.groovy'
71 build-node: 'qct-pod4-node2'
72 make-target: voltha-dmi-hw-management-test
73 withAlarms: false
74 code-branch: 'master'
75 time-trigger: "H H/12 * * *"
76
77 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -080078 name: 'periodic-voltha-test-bbsim-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -070079 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavier10926f12020-03-27 16:53:43 -070080 build-node: 'qct-pod4-node2'
Andy Bavier10926f12020-03-27 16:53:43 -070081 make-target: functional-single-kind
Suchitra Vemuri456b6b42020-11-10 19:06:22 -080082 make-target-failtest: bbsim-failurescenarios
83 make-target-errortest: bbsim-errorscenarios
84 make-target-alarmtest: bbsim-alarms-kind
85 withAlarms: true
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -080086 code-branch: 'voltha-2.6'
Andy Bavier4be37062020-06-29 15:17:26 -070087 onus: 2
88 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -070089 time-trigger: "H H/12 * * *"
90
91 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -070092 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -080093 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080094 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080095 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080096 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080097 onus: 2
98 pons: 2
99 time-trigger: "H H/12 * * *"
100
101 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800102 name: 'periodic-voltha-etcd-test-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700103 pipeline-script: 'voltha-system-test-bbsim.groovy'
104 build-node: 'ubuntu16.04-basebuild-4c-8g'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800105 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700106 make-target: sanity-multi-kind
107 onus: 2
108 pons: 2
109 time-trigger: "H H/12 * * *"
110
111
112 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -0700113 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -0700114 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700115 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -0700116 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -0700117 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -0700118 onus: 1
119 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -0700120 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700121 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700122
123 - 'voltha-periodic-test':
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800124 name: 'periodic-voltha-sanity-test-multi-runs-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700125 pipeline-script: 'voltha-go-multi-tests.groovy'
126 build-node: 'qct-pod4-node2'
Suchitra Vemuri1d3e0212020-12-10 16:36:00 -0800127 code-branch: 'voltha-2.6'
Andy Bavier10926f12020-03-27 16:53:43 -0700128 make-target: sanity-kind
129 onus: 1
130 pons: 1
131 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -0700132 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -0700133
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700134 - 'voltha-periodic-test':
135 name: 'nightly-voltha-DTflow-sanity-test'
136 build-node: 'ubuntu16.04-basebuild-4c-8g'
137 code-branch: 'master'
138 make-target: sanity-kind-dt
139 onus: 1
140 pons: 1
141 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700142 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700143
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700144 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700145 - 'verify_physical_voltha_patchset_auto':
146 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700147 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700148 config-pod: 'tucson-pod'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800149 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800150 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700151 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700152
153 # Per-patchset Pod builds on Tucson pod
154 - 'verify_physical_voltha_patchset_manual':
155 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700156 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700157 config-pod: 'tucson-pod'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800158 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800159 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700160 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700161 trigger-string: 'hardware test'
162 default-test-args: '-i sanityORDeleteOLT -X'
163
164
165 # Per-patchset Pod builds on Tucson pod
166 - 'verify_physical_voltha_patchset_manual':
167 name: 'verify_physical_voltha_patchset_manual_DT'
168 build-node: 'tucson-pod'
169 config-pod: 'tucson-pod-DT'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800170 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800171 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700172 profile: 'Default'
173 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
174 trigger-string: 'DT hardware test'
175 default-test-args: '-i sanityDt -X'
176
177
Andy Bavier19c98a22019-11-11 13:57:11 -0700178
179 # Manual build job for Tucson pod
180 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700181 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700182 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700183 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700184 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700185 manualBranch: 'master'
Girish Gowdra3a3d5f82020-12-01 16:18:43 -0800186 oltDebVersionMaster: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Girish Gowdra5b112da2020-12-14 11:17:34 -0800187 oltDebVersionVoltha23: 'openolt_asfvolt16-3.2.0-fc10f0d035181d3125ffc6e7a60bf5328fcf5bfa-40G-NNI.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700188 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700189
Kailash8b8de742019-07-30 08:54:51 -0700190- job-template:
Kailashaad71012019-08-27 10:36:53 -0700191 id: 'voltha-periodic-test'
192 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700193 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700194 test-runs: 1
195 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700196 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700197 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700198 volthaSystemTestsChange: ''
199 kindVolthaChange: ''
Andrea Campanella6d562182020-10-06 18:39:30 +0200200 extraHelmFlags: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700201 sandbox: true
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800202 olts: 1
Matteo Scandolob36f0892020-11-23 12:19:48 -0800203 withAlarms: false
Andy Bavierb35171c2020-03-06 15:47:29 -0700204
Kailash8b8de742019-07-30 08:54:51 -0700205 description: |
206 <!-- Managed by Jenkins Job Builder -->
207 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
208 E2E Validation for Voltha 2.X
209
210 properties:
211 - cord-infra-properties:
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -0800212 build-days-to-keep: '{big-build-days-to-keep}'
213 artifact-num-to-keep: '{big-artifact-num-to-keep}'
Kailash8b8de742019-07-30 08:54:51 -0700214
215 wrappers:
216 - lf-infra-wrappers:
217 build-timeout: '{build-timeout}'
218 jenkins-ssh-credential: '{jenkins-ssh-credential}'
219
220 parameters:
221 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700222 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700223 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700224 description: 'Name of the Jenkins node to run the job on'
225
226 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700227 name: extraHelmFlags
Andrea Campanella6d562182020-10-06 18:39:30 +0200228 default: '--set onu={onus},pon={pons},{extraHelmFlags}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700229 description: 'Helm flags to pass to ./voltha up'
230
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800231 - bool:
232 name: withAlarms
Matteo Scandolob36f0892020-11-23 12:19:48 -0800233 default: '{withAlarms}'
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800234 description: "Run alarm based tests when true"
235
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700236 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700237 name: makeTarget
238 default: '{make-target}'
239 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700240
Andy Bavier4c8b3232019-11-22 16:17:47 -0700241 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800242 name: makeFailtestTarget
243 default: '{make-target-failtest}'
244 description: 'Makefile target to invoke during failure/based test'
245
246 - string:
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800247 name: makeMultiOltTarget
248 default: '{make-target-multipleolt}'
249 description: 'Makefile target to invoke during multiple olt test'
250
251 - string:
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800252 name: makeErrortestTarget
253 default: '{make-target-errortest}'
254 description: 'Makefile target to invoke during error test'
255
256 - string:
257 name: makeAlarmtestTarget
258 default: '{make-target-alarmtest}'
259 description: 'Makefile target to invoke during alarm test'
260
261 - string:
Andy Bavier4c8b3232019-11-22 16:17:47 -0700262 name: manifestUrl
263 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700264 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700265
266 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700267 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700268 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700269 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700270
Andy Bavier3708d072019-12-10 15:22:18 -0700271 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700272 name: gerritProject
273 default: '{gerrit-project}'
274 description: 'Name of the Gerrit project'
275
276 - string:
277 name: gerritChangeNumber
278 default: ''
279 description: 'Changeset number in Gerrit'
280
281 - string:
282 name: gerritPatchsetNumber
283 default: ''
284 description: 'PatchSet number in Gerrit'
285
286 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700287 name: testRuns
288 default: '{test-runs}'
289 description: 'How many times to repeat the tests'
290
291 - string:
292 name: extraRobotArgs
293 default: '{robot-args}'
294 description: 'Arguments to pass to robot'
295
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700296 - string:
297 name: workFlow
298 default: '{work-flow}'
299 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700300
pierventref48ebc12020-07-17 16:01:32 +0200301 - string:
302 name: karafHome
303 default: '{karaf-home}'
304 description: 'Karaf home'
305
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700306 - string:
307 name: volthaSystemTestsChange
308 default: '{volthaSystemTestsChange}'
309 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
310
311 - string:
312 name: kindVolthaChange
313 default: '{kindVolthaChange}'
314 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
315
Suchitra Vemuri456b6b42020-11-10 19:06:22 -0800316 - string:
317 name: olts
318 default: '{olts}'
319 description: 'How many BBSim instances to run'
320
Kailash8b8de742019-07-30 08:54:51 -0700321 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700322 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700323
Zack Williamsb3292082019-10-11 17:15:18 -0700324 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700325
326 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700327 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700328 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700329 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700330
331- job-template:
332 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800333 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700334 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700335 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700336 volthaSystemTestsChange: ''
337 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700338
339 description: |
340 <!-- Managed by Jenkins Job Builder -->
341 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
342 E2E Validation for Voltha 2.X
343
344 properties:
345 - cord-infra-properties:
346 build-days-to-keep: '{build-days-to-keep}'
347 artifact-num-to-keep: '{artifact-num-to-keep}'
348
349 wrappers:
350 - lf-infra-wrappers:
351 build-timeout: '{build-timeout}'
352 jenkins-ssh-credential: '{jenkins-ssh-credential}'
353
354 parameters:
355 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700356 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700357 default: 'ubuntu16.04-basebuild-4c-8g'
358 description: 'Name of the Jenkins node to run the job on'
359
360 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700361 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700362 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700363 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700364
365 - string:
hwchiu14f97852019-10-08 10:51:11 -0700366 name: gerritProject
367 default: '$GERRIT_PROJECT'
368 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700369
370 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700371 name: gerritRefspec
372 default: '$GERRIT_REFSPEC'
373 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700374
375 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700376 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700377 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700378 description: 'Helm flags to pass to ./voltha up'
379
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700380 - string:
381 name: volthaSystemTestsChange
382 default: '{volthaSystemTestsChange}'
383 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
384
385 - string:
386 name: kindVolthaChange
387 default: '{kindVolthaChange}'
388 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
389
Kailashaad71012019-08-27 10:36:53 -0700390 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700391 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700392
Zack Williamsb3292082019-10-11 17:15:18 -0700393 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700394
395 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700396 - gerrit:
397 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700398 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700399 silent-start: true
400 trigger-on:
401 - patchset-created-event:
402 exclude-drafts: true
403 exclude-trivial-rebase: false
404 exclude-no-code-change: true
405 - draft-published-event
406 - comment-added-contains-event:
407 comment-contains-value: '(?i)^.*recheck$'
408 projects:
409 - project-compare-type: REG_EXP
410 project-pattern: '^{project}$'
411 branches:
412 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700413 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700414 file-paths:
415 - compare-type: REG_EXP
416 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700417
418# POD Per Patchset Pipeline Jobs
419
420- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700421 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700422 id: verify_physical_voltha_patchset_auto
423 description: |
424 <!-- Managed by Jenkins Job Builder -->
425 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
426 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
427 Created by Andy Bavier, andy@opennetworking.org <br />
428 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700429 sandbox: true
430 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700431 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700432
433 properties:
434 - cord-infra-properties:
435 build-days-to-keep: '{build-days-to-keep}'
436 artifact-num-to-keep: '{artifact-num-to-keep}'
437
438 parameters:
439 - string:
440 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700441 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700442 description: 'Pod management node'
443
444 - string:
445 name: manifestUrl
446 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
447 description: 'URL to the repo manifest'
448
449 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700450 name: branch
451 default: '$GERRIT_BRANCH'
452 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700453
454 - string:
455 name: gerritProject
456 default: '$GERRIT_PROJECT'
457 description: 'Name of the Gerrit project'
458
459 - string:
460 name: gerritChangeNumber
461 default: '$GERRIT_CHANGE_NUMBER'
462 description: 'Changeset number in Gerrit'
463
464 - string:
465 name: gerritPatchsetNumber
466 default: '$GERRIT_PATCHSET_NUMBER'
467 description: 'PatchSet number in Gerrit'
468
469 - string:
470 name: cordRepoUrl
471 default: '{gerrit-server-url}'
472 description: 'The URL of the CORD Project repository'
473
474 - string:
475 name: podName
476 default: '{config-pod}'
477
478 - string:
479 name: deploymentConfigFile
480 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
481 description: 'Path of deployment config file'
482
483 - string:
484 name: kindVolthaValuesFile
485 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
486 description: 'Path of kind-voltha values override file'
487
488 - string:
489 name: sadisConfigFile
490 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
491 description: 'Path of SADIS config to load'
492
493 - string:
494 name: localConfigDir
495 default: null
496 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
497
498 - string:
499 name: configRepo
500 default: 'pod-configs'
501 description: 'A repository containing the config files, will be checked out if specified'
502
503 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700504 name: oltDebVersionMaster
505 default: '{oltDebVersionMaster}'
506 description: 'OLT Software version to install for master branch builds'
507
508 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700509 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700510 default: '{oltDebVersionVoltha23}'
511 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700512
513 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700514 name: profile
515 default: '{profile}'
516 description: 'Technology Profile pushed to the ETCD'
517
518 - string:
519 name: notificationEmail
520 default: 'andy@opennetworking.org'
521 description: ''
522
523 - bool:
524 name: reinstallOlt
525 default: true
526 description: "Re-install OLT software"
527
Zack Williams03ebb272020-03-27 09:42:33 -0700528 - string:
529 name: manualBranch
530 default: '{manualBranch}'
531 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700532
533 - string:
534 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700535 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700536 description: 'Arguments to pass to robot'
537
538 project-type: pipeline
539 concurrent: true
540
541 dsl: !include-raw-escape: pipeline/{pipeline-script}
542
543 triggers:
544 - gerrit:
545 server-name: '{gerrit-server-name}'
546 dependency-jobs: '{dependency-jobs}'
547 silent-start: false
548 successful-message: "PASSED hardware test"
549 failure-message: "FAILED hardware test"
550 unstable-message: "UNSTABLE hardware test"
551 trigger-on:
552 - comment-added-event:
553 approval-category: 'Code-Review'
554 approval-value: '+2'
555 projects:
556 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700557 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700558 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700559 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700560 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700561
562
563- job-template:
564 name: '{name}'
565 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700566 description: |
567 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700568 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700569 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700570 Created by Andy Bavier, andy@opennetworking.org <br />
571 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700572 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700573 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700574 trigger-string: 'hardware test'
575 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700576
577 properties:
578 - cord-infra-properties:
579 build-days-to-keep: '{build-days-to-keep}'
580 artifact-num-to-keep: '{artifact-num-to-keep}'
581
582 parameters:
583 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700584 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700585 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700586 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700587
588 - string:
589 name: manifestUrl
590 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
591 description: 'URL to the repo manifest'
592
593 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700594 name: branch
595 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700596 description: 'Name of the repo branch to use'
597
598 - string:
599 name: gerritProject
600 default: '$GERRIT_PROJECT'
601 description: 'Name of the Gerrit project'
602
603 - string:
604 name: gerritChangeNumber
605 default: '$GERRIT_CHANGE_NUMBER'
606 description: 'Changeset number in Gerrit'
607
608 - string:
609 name: gerritPatchsetNumber
610 default: '$GERRIT_PATCHSET_NUMBER'
611 description: 'PatchSet number in Gerrit'
612
613 - string:
614 name: cordRepoUrl
615 default: '{gerrit-server-url}'
616 description: 'The URL of the CORD Project repository'
617
618 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700619 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700620 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700621
622 - string:
623 name: deploymentConfigFile
624 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
625 description: 'Path of deployment config file'
626
627 - string:
628 name: kindVolthaValuesFile
629 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
630 description: 'Path of kind-voltha values override file'
631
632 - string:
633 name: sadisConfigFile
634 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
635 description: 'Path of SADIS config to load'
636
637 - string:
638 name: localConfigDir
639 default: null
640 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
641
642 - string:
643 name: configRepo
644 default: 'pod-configs'
645 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700646
647 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700648 name: oltDebVersionMaster
649 default: '{oltDebVersionMaster}'
650 description: 'OLT Software version to install for master branch builds'
651
652 - string:
653 name: oltDebVersionVoltha23
654 default: '{oltDebVersionVoltha23}'
655 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700656
657 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700658 name: profile
659 default: '{profile}'
660 description: 'Technology Profile pushed to the ETCD'
661
662 - string:
663 name: notificationEmail
664 default: 'andy@opennetworking.org'
665 description: ''
666
667 - bool:
668 name: reinstallOlt
669 default: true
670 description: "Re-install OLT software"
671
Zack Williams03ebb272020-03-27 09:42:33 -0700672 - string:
673 name: manualBranch
674 default: '{manualBranch}'
675 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700676
Andy Bavier8c11d462019-12-17 08:19:34 -0700677 - string:
678 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700679 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700680 description: 'Arguments to pass to robot'
681
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700682 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700683 concurrent: true
684
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700685 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700686
Andy Bavier1f465592019-11-06 10:03:56 -0700687 triggers:
688 - gerrit:
689 server-name: '{gerrit-server-name}'
690 dependency-jobs: '{dependency-jobs}'
691 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700692 successful-message: "PASSED {trigger-string}"
693 failure-message: "FAILED {trigger-string}"
694 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700695 trigger-on:
696 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700697 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800698 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700699 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700700 projects:
701 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700702 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 -0700703 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700704 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700705 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700706
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700707
708- job-template:
709 name: '{name}'
710 id: build_physical_voltha_manual
711 description: |
712 <!-- Managed by Jenkins Job Builder -->
713 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
714 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
715 Created by Andy Bavier, andy@opennetworking.org <br />
716 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700717 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700718 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700719
720 properties:
721 - cord-infra-properties:
722 build-days-to-keep: '{build-days-to-keep}'
723 artifact-num-to-keep: '{artifact-num-to-keep}'
724
725 parameters:
726 - string:
727 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700728 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700729 description: 'Pod management node'
730
731 - string:
732 name: manifestUrl
733 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
734 description: 'URL to the repo manifest'
735
736 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700737 name: branch
738 default: "$GERRIT_BRANCH"
739 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700740
741 - string:
742 name: gerritProject
743 default: '$GERRIT_PROJECT'
744 description: 'Name of the Gerrit project'
745
746 - string:
747 name: gerritChangeNumber
748 default: '$GERRIT_CHANGE_NUMBER'
749 description: 'Changeset number in Gerrit'
750
751 - string:
752 name: gerritPatchsetNumber
753 default: '$GERRIT_PATCHSET_NUMBER'
754 description: 'PatchSet number in Gerrit'
755
756 - string:
757 name: cordRepoUrl
758 default: '{gerrit-server-url}'
759 description: 'The URL of the CORD Project repository'
760
761 - string:
762 name: podName
763 default: '{config-pod}'
764
765 - string:
766 name: deploymentConfigFile
767 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
768 description: 'Path of deployment config file'
769
770 - string:
771 name: kindVolthaValuesFile
772 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
773 description: 'Path of kind-voltha values override file'
774
775 - string:
776 name: sadisConfigFile
777 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
778 description: 'Path of SADIS config to load'
779
780 - string:
781 name: localConfigDir
782 default: null
783 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
784
785 - string:
786 name: configRepo
787 default: 'pod-configs'
788 description: 'A repository containing the config files, will be checked out if specified'
789
790 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700791 name: oltDebVersionMaster
792 default: '{oltDebVersionMaster}'
793 description: 'OLT Software version to install for master branch builds'
794
795 - string:
796 name: oltDebVersionVoltha23
797 default: '{oltDebVersionVoltha23}'
798 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700799
800 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700801 name: profile
802 default: '{profile}'
803 description: 'Technology Profile pushed to the ETCD'
804
805 - string:
806 name: notificationEmail
807 default: 'andy@opennetworking.org'
808 description: ''
809
810 - bool:
811 name: reinstallOlt
812 default: false
813 description: "Re-install OLT software"
814
Zack Williams03ebb272020-03-27 09:42:33 -0700815 - string:
816 name: manualBranch
817 default: '{manualBranch}'
818 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700819
Andy Bavier8c11d462019-12-17 08:19:34 -0700820 - string:
821 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700822 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700823 description: 'Arguments to pass to robot'
824
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700825 project-type: pipeline
826 concurrent: true
827
828 dsl: !include-raw-escape: pipeline/{pipeline-script}