blob: af399e0176f778b1775dd6907cfbf368d29499b0 [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: ''
Kailash8b8de742019-07-30 08:54:51 -07009
10 jobs:
hwchiu14f97852019-10-08 10:51:11 -070011 - 'voltha-periodic-test':
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070012 name: 'periodic-voltha-test-bbsim'
13 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavierf93f3142020-01-09 16:08:51 -070014 build-node: 'qct-pod4-node2'
Andy Bavierd4ba3372020-01-21 17:01:53 -070015 make-target: functional-single-kind
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070016 code-branch: 'master'
Andy Bavier4be37062020-06-29 15:17:26 -070017 onus: 2
18 pons: 2
Andy Bavierd4ba3372020-01-21 17:01:53 -070019 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070020
21 - 'voltha-periodic-test':
Andrea Campanella1aa547e2020-10-05 10:32:28 +020022 name: 'periodic-voltha-test-bbsim-openonugo'
23 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
24 build-node: 'qct-pod4-node2'
25 make-target: functional-single-kind
26 code-branch: 'master'
27 extraHelmFlags: '--set use_openonu_adapter_go=true,images.adapter_open_onu.repository=voltha/voltha-openonu-adapter-go,images.adapter_open_onu.tag=master'
28 onus: 2
29 pons: 2
30 time-trigger: "H H/12 * * *"
31
32 - 'voltha-periodic-test':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070033 name: 'periodic-voltha-test-bbsim-2.5'
Andy Bavier4be37062020-06-29 15:17:26 -070034 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavier10926f12020-03-27 16:53:43 -070035 build-node: 'qct-pod4-node2'
Andy Bavier10926f12020-03-27 16:53:43 -070036 make-target: functional-single-kind
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070037 code-branch: 'voltha-2.5'
Andy Bavier4be37062020-06-29 15:17:26 -070038 onus: 2
39 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -070040 time-trigger: "H H/12 * * *"
41
42 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -070043 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -080044 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080045 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080046 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080047 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080048 onus: 2
49 pons: 2
50 time-trigger: "H H/12 * * *"
51
52 - 'voltha-periodic-test':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070053 name: 'periodic-voltha-etcd-test-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070054 pipeline-script: 'voltha-system-test-bbsim.groovy'
55 build-node: 'ubuntu16.04-basebuild-4c-8g'
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070056 code-branch: 'voltha-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070057 make-target: sanity-multi-kind
58 onus: 2
59 pons: 2
60 time-trigger: "H H/12 * * *"
61
62
63 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070064 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070065 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070066 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -070067 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070068 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070069 onus: 1
70 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070071 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -070072 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -070073
74 - 'voltha-periodic-test':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070075 name: 'periodic-voltha-sanity-test-multi-runs-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070076 pipeline-script: 'voltha-go-multi-tests.groovy'
77 build-node: 'qct-pod4-node2'
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070078 code-branch: 'voltha-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070079 make-target: sanity-kind
80 onus: 1
81 pons: 1
82 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -070083 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -070084
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -070085 - 'voltha-periodic-test':
86 name: 'nightly-voltha-DTflow-sanity-test'
87 build-node: 'ubuntu16.04-basebuild-4c-8g'
88 code-branch: 'master'
89 make-target: sanity-kind-dt
90 onus: 1
91 pons: 1
92 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -070093 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -070094
Andy Bavierbf68c5e2019-10-25 15:05:28 -070095 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -070096 - 'verify_physical_voltha_patchset_auto':
97 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -070098 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -070099 config-pod: 'tucson-pod'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700100 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700101 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700102 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700103
104 # Per-patchset Pod builds on Tucson pod
105 - 'verify_physical_voltha_patchset_manual':
106 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700107 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700108 config-pod: 'tucson-pod'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700109 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700110 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700111 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700112 trigger-string: 'hardware test'
113 default-test-args: '-i sanityORDeleteOLT -X'
114
115
116 # Per-patchset Pod builds on Tucson pod
117 - 'verify_physical_voltha_patchset_manual':
118 name: 'verify_physical_voltha_patchset_manual_DT'
119 build-node: 'tucson-pod'
120 config-pod: 'tucson-pod-DT'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700121 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700122 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
123 profile: 'Default'
124 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
125 trigger-string: 'DT hardware test'
126 default-test-args: '-i sanityDt -X'
127
128
Andy Bavier19c98a22019-11-11 13:57:11 -0700129
130 # Manual build job for Tucson pod
131 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700132 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700133 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700134 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700135 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700136 manualBranch: 'master'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700137 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700138 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700139 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700140
Kailash8b8de742019-07-30 08:54:51 -0700141- job-template:
Kailashaad71012019-08-27 10:36:53 -0700142 id: 'voltha-periodic-test'
143 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700144 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700145 test-runs: 1
146 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700147 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700148 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700149 volthaSystemTestsChange: ''
150 kindVolthaChange: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700151 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700152
Kailash8b8de742019-07-30 08:54:51 -0700153 description: |
154 <!-- Managed by Jenkins Job Builder -->
155 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
156 E2E Validation for Voltha 2.X
157
158 properties:
159 - cord-infra-properties:
160 build-days-to-keep: '{build-days-to-keep}'
161 artifact-num-to-keep: '{artifact-num-to-keep}'
162
163 wrappers:
164 - lf-infra-wrappers:
165 build-timeout: '{build-timeout}'
166 jenkins-ssh-credential: '{jenkins-ssh-credential}'
167
168 parameters:
169 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700170 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700171 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700172 description: 'Name of the Jenkins node to run the job on'
173
174 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700175 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700176 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700177 description: 'Helm flags to pass to ./voltha up'
178
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700179 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700180 name: makeTarget
181 default: '{make-target}'
182 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700183
Andy Bavier4c8b3232019-11-22 16:17:47 -0700184 - string:
185 name: manifestUrl
186 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700187 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700188
189 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700190 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700191 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700192 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700193
Andy Bavier3708d072019-12-10 15:22:18 -0700194 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700195 name: gerritProject
196 default: '{gerrit-project}'
197 description: 'Name of the Gerrit project'
198
199 - string:
200 name: gerritChangeNumber
201 default: ''
202 description: 'Changeset number in Gerrit'
203
204 - string:
205 name: gerritPatchsetNumber
206 default: ''
207 description: 'PatchSet number in Gerrit'
208
209 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700210 name: testRuns
211 default: '{test-runs}'
212 description: 'How many times to repeat the tests'
213
214 - string:
215 name: extraRobotArgs
216 default: '{robot-args}'
217 description: 'Arguments to pass to robot'
218
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700219 - string:
220 name: workFlow
221 default: '{work-flow}'
222 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700223
pierventref48ebc12020-07-17 16:01:32 +0200224 - string:
225 name: karafHome
226 default: '{karaf-home}'
227 description: 'Karaf home'
228
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700229 - string:
230 name: volthaSystemTestsChange
231 default: '{volthaSystemTestsChange}'
232 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
233
234 - string:
235 name: kindVolthaChange
236 default: '{kindVolthaChange}'
237 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
238
Kailash8b8de742019-07-30 08:54:51 -0700239 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700240 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700241
Zack Williamsb3292082019-10-11 17:15:18 -0700242 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700243
244 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700245 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700246 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700247 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700248
249- job-template:
250 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800251 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700252 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700253 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700254 volthaSystemTestsChange: ''
255 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700256
257 description: |
258 <!-- Managed by Jenkins Job Builder -->
259 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
260 E2E Validation for Voltha 2.X
261
262 properties:
263 - cord-infra-properties:
264 build-days-to-keep: '{build-days-to-keep}'
265 artifact-num-to-keep: '{artifact-num-to-keep}'
266
267 wrappers:
268 - lf-infra-wrappers:
269 build-timeout: '{build-timeout}'
270 jenkins-ssh-credential: '{jenkins-ssh-credential}'
271
272 parameters:
273 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700274 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700275 default: 'ubuntu16.04-basebuild-4c-8g'
276 description: 'Name of the Jenkins node to run the job on'
277
278 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700279 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700280 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700281 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700282
283 - string:
hwchiu14f97852019-10-08 10:51:11 -0700284 name: gerritProject
285 default: '$GERRIT_PROJECT'
286 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700287
288 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700289 name: gerritRefspec
290 default: '$GERRIT_REFSPEC'
291 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700292
293 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700294 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700295 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700296 description: 'Helm flags to pass to ./voltha up'
297
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700298 - string:
299 name: volthaSystemTestsChange
300 default: '{volthaSystemTestsChange}'
301 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
302
303 - string:
304 name: kindVolthaChange
305 default: '{kindVolthaChange}'
306 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
307
Kailashaad71012019-08-27 10:36:53 -0700308 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700309 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700310
Zack Williamsb3292082019-10-11 17:15:18 -0700311 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700312
313 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700314 - gerrit:
315 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700316 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700317 silent-start: true
318 trigger-on:
319 - patchset-created-event:
320 exclude-drafts: true
321 exclude-trivial-rebase: false
322 exclude-no-code-change: true
323 - draft-published-event
324 - comment-added-contains-event:
325 comment-contains-value: '(?i)^.*recheck$'
326 projects:
327 - project-compare-type: REG_EXP
328 project-pattern: '^{project}$'
329 branches:
330 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700331 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700332 file-paths:
333 - compare-type: REG_EXP
334 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700335
336# POD Per Patchset Pipeline Jobs
337
338- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700339 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700340 id: verify_physical_voltha_patchset_auto
341 description: |
342 <!-- Managed by Jenkins Job Builder -->
343 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
344 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
345 Created by Andy Bavier, andy@opennetworking.org <br />
346 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700347 sandbox: true
348 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700349 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700350
351 properties:
352 - cord-infra-properties:
353 build-days-to-keep: '{build-days-to-keep}'
354 artifact-num-to-keep: '{artifact-num-to-keep}'
355
356 parameters:
357 - string:
358 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700359 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700360 description: 'Pod management node'
361
362 - string:
363 name: manifestUrl
364 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
365 description: 'URL to the repo manifest'
366
367 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700368 name: branch
369 default: '$GERRIT_BRANCH'
370 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700371
372 - string:
373 name: gerritProject
374 default: '$GERRIT_PROJECT'
375 description: 'Name of the Gerrit project'
376
377 - string:
378 name: gerritChangeNumber
379 default: '$GERRIT_CHANGE_NUMBER'
380 description: 'Changeset number in Gerrit'
381
382 - string:
383 name: gerritPatchsetNumber
384 default: '$GERRIT_PATCHSET_NUMBER'
385 description: 'PatchSet number in Gerrit'
386
387 - string:
388 name: cordRepoUrl
389 default: '{gerrit-server-url}'
390 description: 'The URL of the CORD Project repository'
391
392 - string:
393 name: podName
394 default: '{config-pod}'
395
396 - string:
397 name: deploymentConfigFile
398 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
399 description: 'Path of deployment config file'
400
401 - string:
402 name: kindVolthaValuesFile
403 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
404 description: 'Path of kind-voltha values override file'
405
406 - string:
407 name: sadisConfigFile
408 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
409 description: 'Path of SADIS config to load'
410
411 - string:
412 name: localConfigDir
413 default: null
414 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
415
416 - string:
417 name: configRepo
418 default: 'pod-configs'
419 description: 'A repository containing the config files, will be checked out if specified'
420
421 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700422 name: oltDebVersionMaster
423 default: '{oltDebVersionMaster}'
424 description: 'OLT Software version to install for master branch builds'
425
426 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700427 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700428 default: '{oltDebVersionVoltha23}'
429 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700430
431 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700432 name: profile
433 default: '{profile}'
434 description: 'Technology Profile pushed to the ETCD'
435
436 - string:
437 name: notificationEmail
438 default: 'andy@opennetworking.org'
439 description: ''
440
441 - bool:
442 name: reinstallOlt
443 default: true
444 description: "Re-install OLT software"
445
Zack Williams03ebb272020-03-27 09:42:33 -0700446 - string:
447 name: manualBranch
448 default: '{manualBranch}'
449 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700450
451 - string:
452 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700453 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700454 description: 'Arguments to pass to robot'
455
456 project-type: pipeline
457 concurrent: true
458
459 dsl: !include-raw-escape: pipeline/{pipeline-script}
460
461 triggers:
462 - gerrit:
463 server-name: '{gerrit-server-name}'
464 dependency-jobs: '{dependency-jobs}'
465 silent-start: false
466 successful-message: "PASSED hardware test"
467 failure-message: "FAILED hardware test"
468 unstable-message: "UNSTABLE hardware test"
469 trigger-on:
470 - comment-added-event:
471 approval-category: 'Code-Review'
472 approval-value: '+2'
473 projects:
474 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700475 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700476 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700477 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700478 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700479
480
481- job-template:
482 name: '{name}'
483 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700484 description: |
485 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700486 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700487 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700488 Created by Andy Bavier, andy@opennetworking.org <br />
489 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700490 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700491 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700492 trigger-string: 'hardware test'
493 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700494
495 properties:
496 - cord-infra-properties:
497 build-days-to-keep: '{build-days-to-keep}'
498 artifact-num-to-keep: '{artifact-num-to-keep}'
499
500 parameters:
501 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700502 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700503 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700504 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700505
506 - string:
507 name: manifestUrl
508 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
509 description: 'URL to the repo manifest'
510
511 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700512 name: branch
513 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700514 description: 'Name of the repo branch to use'
515
516 - string:
517 name: gerritProject
518 default: '$GERRIT_PROJECT'
519 description: 'Name of the Gerrit project'
520
521 - string:
522 name: gerritChangeNumber
523 default: '$GERRIT_CHANGE_NUMBER'
524 description: 'Changeset number in Gerrit'
525
526 - string:
527 name: gerritPatchsetNumber
528 default: '$GERRIT_PATCHSET_NUMBER'
529 description: 'PatchSet number in Gerrit'
530
531 - string:
532 name: cordRepoUrl
533 default: '{gerrit-server-url}'
534 description: 'The URL of the CORD Project repository'
535
536 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700537 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700538 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700539
540 - string:
541 name: deploymentConfigFile
542 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
543 description: 'Path of deployment config file'
544
545 - string:
546 name: kindVolthaValuesFile
547 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
548 description: 'Path of kind-voltha values override file'
549
550 - string:
551 name: sadisConfigFile
552 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
553 description: 'Path of SADIS config to load'
554
555 - string:
556 name: localConfigDir
557 default: null
558 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
559
560 - string:
561 name: configRepo
562 default: 'pod-configs'
563 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700564
565 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700566 name: oltDebVersionMaster
567 default: '{oltDebVersionMaster}'
568 description: 'OLT Software version to install for master branch builds'
569
570 - string:
571 name: oltDebVersionVoltha23
572 default: '{oltDebVersionVoltha23}'
573 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700574
575 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700576 name: profile
577 default: '{profile}'
578 description: 'Technology Profile pushed to the ETCD'
579
580 - string:
581 name: notificationEmail
582 default: 'andy@opennetworking.org'
583 description: ''
584
585 - bool:
586 name: reinstallOlt
587 default: true
588 description: "Re-install OLT software"
589
Zack Williams03ebb272020-03-27 09:42:33 -0700590 - string:
591 name: manualBranch
592 default: '{manualBranch}'
593 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700594
Andy Bavier8c11d462019-12-17 08:19:34 -0700595 - string:
596 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700597 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700598 description: 'Arguments to pass to robot'
599
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700600 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700601 concurrent: true
602
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700603 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700604
Andy Bavier1f465592019-11-06 10:03:56 -0700605 triggers:
606 - gerrit:
607 server-name: '{gerrit-server-name}'
608 dependency-jobs: '{dependency-jobs}'
609 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700610 successful-message: "PASSED {trigger-string}"
611 failure-message: "FAILED {trigger-string}"
612 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700613 trigger-on:
614 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700615 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800616 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700617 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700618 projects:
619 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700620 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 -0700621 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700622 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700623 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700624
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700625
626- job-template:
627 name: '{name}'
628 id: build_physical_voltha_manual
629 description: |
630 <!-- Managed by Jenkins Job Builder -->
631 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
632 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
633 Created by Andy Bavier, andy@opennetworking.org <br />
634 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700635 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700636 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700637
638 properties:
639 - cord-infra-properties:
640 build-days-to-keep: '{build-days-to-keep}'
641 artifact-num-to-keep: '{artifact-num-to-keep}'
642
643 parameters:
644 - string:
645 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700646 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700647 description: 'Pod management node'
648
649 - string:
650 name: manifestUrl
651 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
652 description: 'URL to the repo manifest'
653
654 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700655 name: branch
656 default: "$GERRIT_BRANCH"
657 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700658
659 - string:
660 name: gerritProject
661 default: '$GERRIT_PROJECT'
662 description: 'Name of the Gerrit project'
663
664 - string:
665 name: gerritChangeNumber
666 default: '$GERRIT_CHANGE_NUMBER'
667 description: 'Changeset number in Gerrit'
668
669 - string:
670 name: gerritPatchsetNumber
671 default: '$GERRIT_PATCHSET_NUMBER'
672 description: 'PatchSet number in Gerrit'
673
674 - string:
675 name: cordRepoUrl
676 default: '{gerrit-server-url}'
677 description: 'The URL of the CORD Project repository'
678
679 - string:
680 name: podName
681 default: '{config-pod}'
682
683 - string:
684 name: deploymentConfigFile
685 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
686 description: 'Path of deployment config file'
687
688 - string:
689 name: kindVolthaValuesFile
690 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
691 description: 'Path of kind-voltha values override file'
692
693 - string:
694 name: sadisConfigFile
695 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
696 description: 'Path of SADIS config to load'
697
698 - string:
699 name: localConfigDir
700 default: null
701 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
702
703 - string:
704 name: configRepo
705 default: 'pod-configs'
706 description: 'A repository containing the config files, will be checked out if specified'
707
708 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700709 name: oltDebVersionMaster
710 default: '{oltDebVersionMaster}'
711 description: 'OLT Software version to install for master branch builds'
712
713 - string:
714 name: oltDebVersionVoltha23
715 default: '{oltDebVersionVoltha23}'
716 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700717
718 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700719 name: profile
720 default: '{profile}'
721 description: 'Technology Profile pushed to the ETCD'
722
723 - string:
724 name: notificationEmail
725 default: 'andy@opennetworking.org'
726 description: ''
727
728 - bool:
729 name: reinstallOlt
730 default: false
731 description: "Re-install OLT software"
732
Zack Williams03ebb272020-03-27 09:42:33 -0700733 - string:
734 name: manualBranch
735 default: '{manualBranch}'
736 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700737
Andy Bavier8c11d462019-12-17 08:19:34 -0700738 - string:
739 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700740 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700741 description: 'Arguments to pass to robot'
742
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700743 project-type: pipeline
744 concurrent: true
745
746 dsl: !include-raw-escape: pipeline/{pipeline-script}