blob: 524c8c8e674ded3dd83fc2e8a2224db3d531f2b9 [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'
Andrea Campanella92011402020-10-07 00:20:19 +020027 work-flow: 'DT'
Andrea Campanella51b1c0b2020-10-13 12:12:01 +020028 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 +020029 onus: 2
30 pons: 2
31 time-trigger: "H H/12 * * *"
32
33 - 'voltha-periodic-test':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070034 name: 'periodic-voltha-test-bbsim-2.5'
Andy Bavier4be37062020-06-29 15:17:26 -070035 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavier10926f12020-03-27 16:53:43 -070036 build-node: 'qct-pod4-node2'
Andy Bavier10926f12020-03-27 16:53:43 -070037 make-target: functional-single-kind
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070038 code-branch: 'voltha-2.5'
Andy Bavier4be37062020-06-29 15:17:26 -070039 onus: 2
40 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -070041 time-trigger: "H H/12 * * *"
42
43 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -070044 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -080045 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080046 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080047 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080048 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080049 onus: 2
50 pons: 2
51 time-trigger: "H H/12 * * *"
52
53 - 'voltha-periodic-test':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070054 name: 'periodic-voltha-etcd-test-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070055 pipeline-script: 'voltha-system-test-bbsim.groovy'
56 build-node: 'ubuntu16.04-basebuild-4c-8g'
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070057 code-branch: 'voltha-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070058 make-target: sanity-multi-kind
59 onus: 2
60 pons: 2
61 time-trigger: "H H/12 * * *"
62
63
64 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070065 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070066 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070067 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -070068 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070069 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070070 onus: 1
71 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070072 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -070073 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -070074
75 - 'voltha-periodic-test':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070076 name: 'periodic-voltha-sanity-test-multi-runs-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070077 pipeline-script: 'voltha-go-multi-tests.groovy'
78 build-node: 'qct-pod4-node2'
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070079 code-branch: 'voltha-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070080 make-target: sanity-kind
81 onus: 1
82 pons: 1
83 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -070084 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -070085
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -070086 - 'voltha-periodic-test':
87 name: 'nightly-voltha-DTflow-sanity-test'
88 build-node: 'ubuntu16.04-basebuild-4c-8g'
89 code-branch: 'master'
90 make-target: sanity-kind-dt
91 onus: 1
92 pons: 1
93 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -070094 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -070095
Andy Bavierbf68c5e2019-10-25 15:05:28 -070096 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -070097 - 'verify_physical_voltha_patchset_auto':
98 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -070099 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700100 config-pod: 'tucson-pod'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700101 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700102 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700103 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700104
105 # Per-patchset Pod builds on Tucson pod
106 - 'verify_physical_voltha_patchset_manual':
107 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700108 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700109 config-pod: 'tucson-pod'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700110 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700111 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700112 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700113 trigger-string: 'hardware test'
114 default-test-args: '-i sanityORDeleteOLT -X'
115
116
117 # Per-patchset Pod builds on Tucson pod
118 - 'verify_physical_voltha_patchset_manual':
119 name: 'verify_physical_voltha_patchset_manual_DT'
120 build-node: 'tucson-pod'
121 config-pod: 'tucson-pod-DT'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700122 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700123 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
124 profile: 'Default'
125 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
126 trigger-string: 'DT hardware test'
127 default-test-args: '-i sanityDt -X'
128
129
Andy Bavier19c98a22019-11-11 13:57:11 -0700130
131 # Manual build job for Tucson pod
132 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700133 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700134 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700135 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700136 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700137 manualBranch: 'master'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700138 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700139 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700140 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700141
Kailash8b8de742019-07-30 08:54:51 -0700142- job-template:
Kailashaad71012019-08-27 10:36:53 -0700143 id: 'voltha-periodic-test'
144 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700145 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700146 test-runs: 1
147 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700148 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700149 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700150 volthaSystemTestsChange: ''
151 kindVolthaChange: ''
Andrea Campanella6d562182020-10-06 18:39:30 +0200152 extraHelmFlags: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700153 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700154
Kailash8b8de742019-07-30 08:54:51 -0700155 description: |
156 <!-- Managed by Jenkins Job Builder -->
157 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
158 E2E Validation for Voltha 2.X
159
160 properties:
161 - cord-infra-properties:
162 build-days-to-keep: '{build-days-to-keep}'
163 artifact-num-to-keep: '{artifact-num-to-keep}'
164
165 wrappers:
166 - lf-infra-wrappers:
167 build-timeout: '{build-timeout}'
168 jenkins-ssh-credential: '{jenkins-ssh-credential}'
169
170 parameters:
171 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700172 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700173 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700174 description: 'Name of the Jenkins node to run the job on'
175
176 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700177 name: extraHelmFlags
Andrea Campanella6d562182020-10-06 18:39:30 +0200178 default: '--set onu={onus},pon={pons},{extraHelmFlags}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700179 description: 'Helm flags to pass to ./voltha up'
180
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700181 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700182 name: makeTarget
183 default: '{make-target}'
184 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700185
Andy Bavier4c8b3232019-11-22 16:17:47 -0700186 - string:
187 name: manifestUrl
188 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700189 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700190
191 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700192 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700193 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700194 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700195
Andy Bavier3708d072019-12-10 15:22:18 -0700196 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700197 name: gerritProject
198 default: '{gerrit-project}'
199 description: 'Name of the Gerrit project'
200
201 - string:
202 name: gerritChangeNumber
203 default: ''
204 description: 'Changeset number in Gerrit'
205
206 - string:
207 name: gerritPatchsetNumber
208 default: ''
209 description: 'PatchSet number in Gerrit'
210
211 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700212 name: testRuns
213 default: '{test-runs}'
214 description: 'How many times to repeat the tests'
215
216 - string:
217 name: extraRobotArgs
218 default: '{robot-args}'
219 description: 'Arguments to pass to robot'
220
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700221 - string:
222 name: workFlow
223 default: '{work-flow}'
224 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700225
pierventref48ebc12020-07-17 16:01:32 +0200226 - string:
227 name: karafHome
228 default: '{karaf-home}'
229 description: 'Karaf home'
230
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700231 - string:
232 name: volthaSystemTestsChange
233 default: '{volthaSystemTestsChange}'
234 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
235
236 - string:
237 name: kindVolthaChange
238 default: '{kindVolthaChange}'
239 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
240
Kailash8b8de742019-07-30 08:54:51 -0700241 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700242 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700243
Zack Williamsb3292082019-10-11 17:15:18 -0700244 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700245
246 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700247 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700248 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700249 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700250
251- job-template:
252 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800253 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700254 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700255 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700256 volthaSystemTestsChange: ''
257 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700258
259 description: |
260 <!-- Managed by Jenkins Job Builder -->
261 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
262 E2E Validation for Voltha 2.X
263
264 properties:
265 - cord-infra-properties:
266 build-days-to-keep: '{build-days-to-keep}'
267 artifact-num-to-keep: '{artifact-num-to-keep}'
268
269 wrappers:
270 - lf-infra-wrappers:
271 build-timeout: '{build-timeout}'
272 jenkins-ssh-credential: '{jenkins-ssh-credential}'
273
274 parameters:
275 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700276 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700277 default: 'ubuntu16.04-basebuild-4c-8g'
278 description: 'Name of the Jenkins node to run the job on'
279
280 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700281 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700282 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700283 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700284
285 - string:
hwchiu14f97852019-10-08 10:51:11 -0700286 name: gerritProject
287 default: '$GERRIT_PROJECT'
288 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700289
290 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700291 name: gerritRefspec
292 default: '$GERRIT_REFSPEC'
293 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700294
295 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700296 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700297 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700298 description: 'Helm flags to pass to ./voltha up'
299
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700300 - string:
301 name: volthaSystemTestsChange
302 default: '{volthaSystemTestsChange}'
303 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
304
305 - string:
306 name: kindVolthaChange
307 default: '{kindVolthaChange}'
308 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
309
Kailashaad71012019-08-27 10:36:53 -0700310 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700311 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700312
Zack Williamsb3292082019-10-11 17:15:18 -0700313 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700314
315 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700316 - gerrit:
317 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700318 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700319 silent-start: true
320 trigger-on:
321 - patchset-created-event:
322 exclude-drafts: true
323 exclude-trivial-rebase: false
324 exclude-no-code-change: true
325 - draft-published-event
326 - comment-added-contains-event:
327 comment-contains-value: '(?i)^.*recheck$'
328 projects:
329 - project-compare-type: REG_EXP
330 project-pattern: '^{project}$'
331 branches:
332 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700333 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700334 file-paths:
335 - compare-type: REG_EXP
336 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700337
338# POD Per Patchset Pipeline Jobs
339
340- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700341 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700342 id: verify_physical_voltha_patchset_auto
343 description: |
344 <!-- Managed by Jenkins Job Builder -->
345 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
346 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
347 Created by Andy Bavier, andy@opennetworking.org <br />
348 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700349 sandbox: true
350 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700351 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700352
353 properties:
354 - cord-infra-properties:
355 build-days-to-keep: '{build-days-to-keep}'
356 artifact-num-to-keep: '{artifact-num-to-keep}'
357
358 parameters:
359 - string:
360 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700361 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700362 description: 'Pod management node'
363
364 - string:
365 name: manifestUrl
366 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
367 description: 'URL to the repo manifest'
368
369 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700370 name: branch
371 default: '$GERRIT_BRANCH'
372 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700373
374 - string:
375 name: gerritProject
376 default: '$GERRIT_PROJECT'
377 description: 'Name of the Gerrit project'
378
379 - string:
380 name: gerritChangeNumber
381 default: '$GERRIT_CHANGE_NUMBER'
382 description: 'Changeset number in Gerrit'
383
384 - string:
385 name: gerritPatchsetNumber
386 default: '$GERRIT_PATCHSET_NUMBER'
387 description: 'PatchSet number in Gerrit'
388
389 - string:
390 name: cordRepoUrl
391 default: '{gerrit-server-url}'
392 description: 'The URL of the CORD Project repository'
393
394 - string:
395 name: podName
396 default: '{config-pod}'
397
398 - string:
399 name: deploymentConfigFile
400 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
401 description: 'Path of deployment config file'
402
403 - string:
404 name: kindVolthaValuesFile
405 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
406 description: 'Path of kind-voltha values override file'
407
408 - string:
409 name: sadisConfigFile
410 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
411 description: 'Path of SADIS config to load'
412
413 - string:
414 name: localConfigDir
415 default: null
416 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
417
418 - string:
419 name: configRepo
420 default: 'pod-configs'
421 description: 'A repository containing the config files, will be checked out if specified'
422
423 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700424 name: oltDebVersionMaster
425 default: '{oltDebVersionMaster}'
426 description: 'OLT Software version to install for master branch builds'
427
428 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700429 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700430 default: '{oltDebVersionVoltha23}'
431 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700432
433 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700434 name: profile
435 default: '{profile}'
436 description: 'Technology Profile pushed to the ETCD'
437
438 - string:
439 name: notificationEmail
440 default: 'andy@opennetworking.org'
441 description: ''
442
443 - bool:
444 name: reinstallOlt
445 default: true
446 description: "Re-install OLT software"
447
Zack Williams03ebb272020-03-27 09:42:33 -0700448 - string:
449 name: manualBranch
450 default: '{manualBranch}'
451 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700452
453 - string:
454 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700455 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700456 description: 'Arguments to pass to robot'
457
458 project-type: pipeline
459 concurrent: true
460
461 dsl: !include-raw-escape: pipeline/{pipeline-script}
462
463 triggers:
464 - gerrit:
465 server-name: '{gerrit-server-name}'
466 dependency-jobs: '{dependency-jobs}'
467 silent-start: false
468 successful-message: "PASSED hardware test"
469 failure-message: "FAILED hardware test"
470 unstable-message: "UNSTABLE hardware test"
471 trigger-on:
472 - comment-added-event:
473 approval-category: 'Code-Review'
474 approval-value: '+2'
475 projects:
476 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700477 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700478 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700479 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700480 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700481
482
483- job-template:
484 name: '{name}'
485 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700486 description: |
487 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700488 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700489 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700490 Created by Andy Bavier, andy@opennetworking.org <br />
491 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700492 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700493 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700494 trigger-string: 'hardware test'
495 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700496
497 properties:
498 - cord-infra-properties:
499 build-days-to-keep: '{build-days-to-keep}'
500 artifact-num-to-keep: '{artifact-num-to-keep}'
501
502 parameters:
503 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700504 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700505 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700506 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700507
508 - string:
509 name: manifestUrl
510 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
511 description: 'URL to the repo manifest'
512
513 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700514 name: branch
515 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700516 description: 'Name of the repo branch to use'
517
518 - string:
519 name: gerritProject
520 default: '$GERRIT_PROJECT'
521 description: 'Name of the Gerrit project'
522
523 - string:
524 name: gerritChangeNumber
525 default: '$GERRIT_CHANGE_NUMBER'
526 description: 'Changeset number in Gerrit'
527
528 - string:
529 name: gerritPatchsetNumber
530 default: '$GERRIT_PATCHSET_NUMBER'
531 description: 'PatchSet number in Gerrit'
532
533 - string:
534 name: cordRepoUrl
535 default: '{gerrit-server-url}'
536 description: 'The URL of the CORD Project repository'
537
538 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700539 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700540 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700541
542 - string:
543 name: deploymentConfigFile
544 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
545 description: 'Path of deployment config file'
546
547 - string:
548 name: kindVolthaValuesFile
549 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
550 description: 'Path of kind-voltha values override file'
551
552 - string:
553 name: sadisConfigFile
554 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
555 description: 'Path of SADIS config to load'
556
557 - string:
558 name: localConfigDir
559 default: null
560 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
561
562 - string:
563 name: configRepo
564 default: 'pod-configs'
565 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700566
567 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700568 name: oltDebVersionMaster
569 default: '{oltDebVersionMaster}'
570 description: 'OLT Software version to install for master branch builds'
571
572 - string:
573 name: oltDebVersionVoltha23
574 default: '{oltDebVersionVoltha23}'
575 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700576
577 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700578 name: profile
579 default: '{profile}'
580 description: 'Technology Profile pushed to the ETCD'
581
582 - string:
583 name: notificationEmail
584 default: 'andy@opennetworking.org'
585 description: ''
586
587 - bool:
588 name: reinstallOlt
589 default: true
590 description: "Re-install OLT software"
591
Zack Williams03ebb272020-03-27 09:42:33 -0700592 - string:
593 name: manualBranch
594 default: '{manualBranch}'
595 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700596
Andy Bavier8c11d462019-12-17 08:19:34 -0700597 - string:
598 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700599 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700600 description: 'Arguments to pass to robot'
601
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700602 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700603 concurrent: true
604
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700605 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700606
Andy Bavier1f465592019-11-06 10:03:56 -0700607 triggers:
608 - gerrit:
609 server-name: '{gerrit-server-name}'
610 dependency-jobs: '{dependency-jobs}'
611 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700612 successful-message: "PASSED {trigger-string}"
613 failure-message: "FAILED {trigger-string}"
614 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700615 trigger-on:
616 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700617 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800618 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700619 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700620 projects:
621 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700622 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 -0700623 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700624 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700625 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700626
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700627
628- job-template:
629 name: '{name}'
630 id: build_physical_voltha_manual
631 description: |
632 <!-- Managed by Jenkins Job Builder -->
633 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
634 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
635 Created by Andy Bavier, andy@opennetworking.org <br />
636 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700637 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700638 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700639
640 properties:
641 - cord-infra-properties:
642 build-days-to-keep: '{build-days-to-keep}'
643 artifact-num-to-keep: '{artifact-num-to-keep}'
644
645 parameters:
646 - string:
647 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700648 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700649 description: 'Pod management node'
650
651 - string:
652 name: manifestUrl
653 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
654 description: 'URL to the repo manifest'
655
656 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700657 name: branch
658 default: "$GERRIT_BRANCH"
659 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700660
661 - string:
662 name: gerritProject
663 default: '$GERRIT_PROJECT'
664 description: 'Name of the Gerrit project'
665
666 - string:
667 name: gerritChangeNumber
668 default: '$GERRIT_CHANGE_NUMBER'
669 description: 'Changeset number in Gerrit'
670
671 - string:
672 name: gerritPatchsetNumber
673 default: '$GERRIT_PATCHSET_NUMBER'
674 description: 'PatchSet number in Gerrit'
675
676 - string:
677 name: cordRepoUrl
678 default: '{gerrit-server-url}'
679 description: 'The URL of the CORD Project repository'
680
681 - string:
682 name: podName
683 default: '{config-pod}'
684
685 - string:
686 name: deploymentConfigFile
687 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
688 description: 'Path of deployment config file'
689
690 - string:
691 name: kindVolthaValuesFile
692 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
693 description: 'Path of kind-voltha values override file'
694
695 - string:
696 name: sadisConfigFile
697 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
698 description: 'Path of SADIS config to load'
699
700 - string:
701 name: localConfigDir
702 default: null
703 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
704
705 - string:
706 name: configRepo
707 default: 'pod-configs'
708 description: 'A repository containing the config files, will be checked out if specified'
709
710 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700711 name: oltDebVersionMaster
712 default: '{oltDebVersionMaster}'
713 description: 'OLT Software version to install for master branch builds'
714
715 - string:
716 name: oltDebVersionVoltha23
717 default: '{oltDebVersionVoltha23}'
718 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700719
720 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700721 name: profile
722 default: '{profile}'
723 description: 'Technology Profile pushed to the ETCD'
724
725 - string:
726 name: notificationEmail
727 default: 'andy@opennetworking.org'
728 description: ''
729
730 - bool:
731 name: reinstallOlt
732 default: false
733 description: "Re-install OLT software"
734
Zack Williams03ebb272020-03-27 09:42:33 -0700735 - string:
736 name: manualBranch
737 default: '{manualBranch}'
738 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700739
Andy Bavier8c11d462019-12-17 08:19:34 -0700740 - string:
741 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700742 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700743 description: 'Arguments to pass to robot'
744
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700745 project-type: pipeline
746 concurrent: true
747
748 dsl: !include-raw-escape: pipeline/{pipeline-script}