blob: 23e3a7d294d4a925c3ead56145a06e2177e868f9 [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':
Andy Bavierc3a3d892020-07-09 09:56:08 -070022 name: 'periodic-voltha-test-bbsim-2.4'
Andy Bavier4be37062020-06-29 15:17:26 -070023 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavier10926f12020-03-27 16:53:43 -070024 build-node: 'qct-pod4-node2'
Andy Bavier10926f12020-03-27 16:53:43 -070025 make-target: functional-single-kind
Andy Bavierc3a3d892020-07-09 09:56:08 -070026 code-branch: 'voltha-2.4'
Andy Bavier4be37062020-06-29 15:17:26 -070027 onus: 2
28 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -070029 time-trigger: "H H/12 * * *"
30
31 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -070032 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -080033 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080034 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080035 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080036 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080037 onus: 2
38 pons: 2
39 time-trigger: "H H/12 * * *"
40
41 - 'voltha-periodic-test':
Andy Bavierc3a3d892020-07-09 09:56:08 -070042 name: 'periodic-voltha-etcd-test-2.4'
Andy Bavier10926f12020-03-27 16:53:43 -070043 pipeline-script: 'voltha-system-test-bbsim.groovy'
44 build-node: 'ubuntu16.04-basebuild-4c-8g'
Andy Bavierc3a3d892020-07-09 09:56:08 -070045 code-branch: 'voltha-2.4'
Andy Bavier10926f12020-03-27 16:53:43 -070046 make-target: sanity-multi-kind
47 onus: 2
48 pons: 2
49 time-trigger: "H H/12 * * *"
50
51
52 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070053 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070054 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070055 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -070056 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070057 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070058 onus: 1
59 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070060 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -070061 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -070062
63 - 'voltha-periodic-test':
Andy Bavierc3a3d892020-07-09 09:56:08 -070064 name: 'periodic-voltha-sanity-test-multi-runs-2.4'
Andy Bavier10926f12020-03-27 16:53:43 -070065 pipeline-script: 'voltha-go-multi-tests.groovy'
66 build-node: 'qct-pod4-node2'
Andy Bavierc3a3d892020-07-09 09:56:08 -070067 code-branch: 'voltha-2.4'
Andy Bavier10926f12020-03-27 16:53:43 -070068 make-target: sanity-kind
69 onus: 1
70 pons: 1
71 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -070072 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -070073
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -070074 - 'voltha-periodic-test':
75 name: 'nightly-voltha-DTflow-sanity-test'
76 build-node: 'ubuntu16.04-basebuild-4c-8g'
77 code-branch: 'master'
78 make-target: sanity-kind-dt
79 onus: 1
80 pons: 1
81 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -070082 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -070083
Andy Bavierbf68c5e2019-10-25 15:05:28 -070084 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -070085 - 'verify_physical_voltha_patchset_auto':
86 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -070087 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -070088 config-pod: 'tucson-pod'
Andy Bavierabe6fb22020-06-25 09:10:58 -070089 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
90 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -070091 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -070092
93 # Per-patchset Pod builds on Tucson pod
94 - 'verify_physical_voltha_patchset_manual':
95 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -070096 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070097 config-pod: 'tucson-pod'
Andy Bavierabe6fb22020-06-25 09:10:58 -070098 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
99 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700100 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700101
102 # Manual build job for Tucson pod
103 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700104 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700105 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700106 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700107 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700108 manualBranch: 'master'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700109 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
110 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700111 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700112
Kailash8b8de742019-07-30 08:54:51 -0700113- job-template:
Kailashaad71012019-08-27 10:36:53 -0700114 id: 'voltha-periodic-test'
115 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700116 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700117 test-runs: 1
118 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700119 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700120 work-flow: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700121 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700122
Kailash8b8de742019-07-30 08:54:51 -0700123 description: |
124 <!-- Managed by Jenkins Job Builder -->
125 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
126 E2E Validation for Voltha 2.X
127
128 properties:
129 - cord-infra-properties:
130 build-days-to-keep: '{build-days-to-keep}'
131 artifact-num-to-keep: '{artifact-num-to-keep}'
132
133 wrappers:
134 - lf-infra-wrappers:
135 build-timeout: '{build-timeout}'
136 jenkins-ssh-credential: '{jenkins-ssh-credential}'
137
138 parameters:
139 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700140 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700141 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700142 description: 'Name of the Jenkins node to run the job on'
143
144 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700145 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700146 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700147 description: 'Helm flags to pass to ./voltha up'
148
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700149 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700150 name: makeTarget
151 default: '{make-target}'
152 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700153
Andy Bavier4c8b3232019-11-22 16:17:47 -0700154 - string:
155 name: manifestUrl
156 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700157 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700158
159 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700160 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700161 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700162 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700163
Andy Bavier3708d072019-12-10 15:22:18 -0700164 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700165 name: gerritProject
166 default: '{gerrit-project}'
167 description: 'Name of the Gerrit project'
168
169 - string:
170 name: gerritChangeNumber
171 default: ''
172 description: 'Changeset number in Gerrit'
173
174 - string:
175 name: gerritPatchsetNumber
176 default: ''
177 description: 'PatchSet number in Gerrit'
178
179 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700180 name: testRuns
181 default: '{test-runs}'
182 description: 'How many times to repeat the tests'
183
184 - string:
185 name: extraRobotArgs
186 default: '{robot-args}'
187 description: 'Arguments to pass to robot'
188
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700189 - string:
190 name: workFlow
191 default: '{work-flow}'
192 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700193
Kailash8b8de742019-07-30 08:54:51 -0700194 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700195 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700196
Zack Williamsb3292082019-10-11 17:15:18 -0700197 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700198
199 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700200 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700201 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700202 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700203
204- job-template:
205 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800206 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700207 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700208 sandbox: true
Kailashaad71012019-08-27 10:36:53 -0700209
210 description: |
211 <!-- Managed by Jenkins Job Builder -->
212 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
213 E2E Validation for Voltha 2.X
214
215 properties:
216 - cord-infra-properties:
217 build-days-to-keep: '{build-days-to-keep}'
218 artifact-num-to-keep: '{artifact-num-to-keep}'
219
220 wrappers:
221 - lf-infra-wrappers:
222 build-timeout: '{build-timeout}'
223 jenkins-ssh-credential: '{jenkins-ssh-credential}'
224
225 parameters:
226 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700227 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700228 default: 'ubuntu16.04-basebuild-4c-8g'
229 description: 'Name of the Jenkins node to run the job on'
230
231 - string:
232 name: manifestUrl
233 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
234 description: 'URL to the repo manifest'
235
236 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700237 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700238 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700239 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700240
241 - string:
hwchiu14f97852019-10-08 10:51:11 -0700242 name: gerritProject
243 default: '$GERRIT_PROJECT'
244 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700245
246 - string:
hwchiu14f97852019-10-08 10:51:11 -0700247 name: gerritChangeNumber
248 default: '$GERRIT_CHANGE_NUMBER'
249 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700250
251 - string:
hwchiu14f97852019-10-08 10:51:11 -0700252 name: gerritPatchsetNumber
253 default: '$GERRIT_PATCHSET_NUMBER'
254 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700255
256 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700257 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700258 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700259 description: 'Helm flags to pass to ./voltha up'
260
Kailashaad71012019-08-27 10:36:53 -0700261 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700262 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700263
Zack Williamsb3292082019-10-11 17:15:18 -0700264 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700265
266 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700267 - gerrit:
268 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700269 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700270 silent-start: true
271 trigger-on:
272 - patchset-created-event:
273 exclude-drafts: true
274 exclude-trivial-rebase: false
275 exclude-no-code-change: true
276 - draft-published-event
277 - comment-added-contains-event:
278 comment-contains-value: '(?i)^.*recheck$'
279 projects:
280 - project-compare-type: REG_EXP
281 project-pattern: '^{project}$'
282 branches:
283 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700284 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700285 file-paths:
286 - compare-type: REG_EXP
287 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700288
289# POD Per Patchset Pipeline Jobs
290
291- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700292 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700293 id: verify_physical_voltha_patchset_auto
294 description: |
295 <!-- Managed by Jenkins Job Builder -->
296 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
297 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
298 Created by Andy Bavier, andy@opennetworking.org <br />
299 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700300 sandbox: true
301 pipeline-script: 'voltha-physical-build-and-tests.groovy'
302
303 properties:
304 - cord-infra-properties:
305 build-days-to-keep: '{build-days-to-keep}'
306 artifact-num-to-keep: '{artifact-num-to-keep}'
307
308 parameters:
309 - string:
310 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700311 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700312 description: 'Pod management node'
313
314 - string:
315 name: manifestUrl
316 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
317 description: 'URL to the repo manifest'
318
319 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700320 name: branch
321 default: '$GERRIT_BRANCH'
322 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700323
324 - string:
325 name: gerritProject
326 default: '$GERRIT_PROJECT'
327 description: 'Name of the Gerrit project'
328
329 - string:
330 name: gerritChangeNumber
331 default: '$GERRIT_CHANGE_NUMBER'
332 description: 'Changeset number in Gerrit'
333
334 - string:
335 name: gerritPatchsetNumber
336 default: '$GERRIT_PATCHSET_NUMBER'
337 description: 'PatchSet number in Gerrit'
338
339 - string:
340 name: cordRepoUrl
341 default: '{gerrit-server-url}'
342 description: 'The URL of the CORD Project repository'
343
344 - string:
345 name: podName
346 default: '{config-pod}'
347
348 - string:
349 name: deploymentConfigFile
350 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
351 description: 'Path of deployment config file'
352
353 - string:
354 name: kindVolthaValuesFile
355 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
356 description: 'Path of kind-voltha values override file'
357
358 - string:
359 name: sadisConfigFile
360 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
361 description: 'Path of SADIS config to load'
362
363 - string:
364 name: localConfigDir
365 default: null
366 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
367
368 - string:
369 name: configRepo
370 default: 'pod-configs'
371 description: 'A repository containing the config files, will be checked out if specified'
372
373 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700374 name: oltDebVersionMaster
375 default: '{oltDebVersionMaster}'
376 description: 'OLT Software version to install for master branch builds'
377
378 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700379 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700380 default: '{oltDebVersionVoltha23}'
381 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700382
383 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700384 name: profile
385 default: '{profile}'
386 description: 'Technology Profile pushed to the ETCD'
387
388 - string:
389 name: notificationEmail
390 default: 'andy@opennetworking.org'
391 description: ''
392
393 - bool:
394 name: reinstallOlt
395 default: true
396 description: "Re-install OLT software"
397
Zack Williams03ebb272020-03-27 09:42:33 -0700398 - string:
399 name: manualBranch
400 default: '{manualBranch}'
401 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700402
403 - string:
404 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700405 default: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700406 description: 'Arguments to pass to robot'
407
408 project-type: pipeline
409 concurrent: true
410
411 dsl: !include-raw-escape: pipeline/{pipeline-script}
412
413 triggers:
414 - gerrit:
415 server-name: '{gerrit-server-name}'
416 dependency-jobs: '{dependency-jobs}'
417 silent-start: false
418 successful-message: "PASSED hardware test"
419 failure-message: "FAILED hardware test"
420 unstable-message: "UNSTABLE hardware test"
421 trigger-on:
422 - comment-added-event:
423 approval-category: 'Code-Review'
424 approval-value: '+2'
425 projects:
426 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700427 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700428 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700429 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700430 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700431
432
433- job-template:
434 name: '{name}'
435 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700436 description: |
437 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700438 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700439 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700440 Created by Andy Bavier, andy@opennetworking.org <br />
441 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700442 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700443 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700444
445 properties:
446 - cord-infra-properties:
447 build-days-to-keep: '{build-days-to-keep}'
448 artifact-num-to-keep: '{artifact-num-to-keep}'
449
450 parameters:
451 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700452 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700453 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700454 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700455
456 - string:
457 name: manifestUrl
458 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
459 description: 'URL to the repo manifest'
460
461 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700462 name: branch
463 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700464 description: 'Name of the repo branch to use'
465
466 - string:
467 name: gerritProject
468 default: '$GERRIT_PROJECT'
469 description: 'Name of the Gerrit project'
470
471 - string:
472 name: gerritChangeNumber
473 default: '$GERRIT_CHANGE_NUMBER'
474 description: 'Changeset number in Gerrit'
475
476 - string:
477 name: gerritPatchsetNumber
478 default: '$GERRIT_PATCHSET_NUMBER'
479 description: 'PatchSet number in Gerrit'
480
481 - string:
482 name: cordRepoUrl
483 default: '{gerrit-server-url}'
484 description: 'The URL of the CORD Project repository'
485
486 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700487 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700488 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700489
490 - string:
491 name: deploymentConfigFile
492 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
493 description: 'Path of deployment config file'
494
495 - string:
496 name: kindVolthaValuesFile
497 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
498 description: 'Path of kind-voltha values override file'
499
500 - string:
501 name: sadisConfigFile
502 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
503 description: 'Path of SADIS config to load'
504
505 - string:
506 name: localConfigDir
507 default: null
508 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
509
510 - string:
511 name: configRepo
512 default: 'pod-configs'
513 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700514
515 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700516 name: oltDebVersionMaster
517 default: '{oltDebVersionMaster}'
518 description: 'OLT Software version to install for master branch builds'
519
520 - string:
521 name: oltDebVersionVoltha23
522 default: '{oltDebVersionVoltha23}'
523 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700524
525 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700526 name: profile
527 default: '{profile}'
528 description: 'Technology Profile pushed to the ETCD'
529
530 - string:
531 name: notificationEmail
532 default: 'andy@opennetworking.org'
533 description: ''
534
535 - bool:
536 name: reinstallOlt
537 default: true
538 description: "Re-install OLT software"
539
Zack Williams03ebb272020-03-27 09:42:33 -0700540 - string:
541 name: manualBranch
542 default: '{manualBranch}'
543 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700544
Andy Bavier8c11d462019-12-17 08:19:34 -0700545 - string:
546 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700547 default: '-i sanityORDeleteOLT -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700548 description: 'Arguments to pass to robot'
549
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700550 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700551 concurrent: true
552
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700553 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700554
Andy Bavier1f465592019-11-06 10:03:56 -0700555 triggers:
556 - gerrit:
557 server-name: '{gerrit-server-name}'
558 dependency-jobs: '{dependency-jobs}'
559 silent-start: false
560 successful-message: "PASSED hardware test"
561 failure-message: "FAILED hardware test"
562 unstable-message: "UNSTABLE hardware test"
563 trigger-on:
564 - comment-added-contains-event:
565 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800566 - comment-added-contains-event:
567 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700568 projects:
569 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700570 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 -0700571 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700572 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700573 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700574
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700575
576- job-template:
577 name: '{name}'
578 id: build_physical_voltha_manual
579 description: |
580 <!-- Managed by Jenkins Job Builder -->
581 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
582 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
583 Created by Andy Bavier, andy@opennetworking.org <br />
584 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700585 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700586 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700587
588 properties:
589 - cord-infra-properties:
590 build-days-to-keep: '{build-days-to-keep}'
591 artifact-num-to-keep: '{artifact-num-to-keep}'
592
593 parameters:
594 - string:
595 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700596 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700597 description: 'Pod management node'
598
599 - string:
600 name: manifestUrl
601 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
602 description: 'URL to the repo manifest'
603
604 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700605 name: branch
606 default: "$GERRIT_BRANCH"
607 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700608
609 - string:
610 name: gerritProject
611 default: '$GERRIT_PROJECT'
612 description: 'Name of the Gerrit project'
613
614 - string:
615 name: gerritChangeNumber
616 default: '$GERRIT_CHANGE_NUMBER'
617 description: 'Changeset number in Gerrit'
618
619 - string:
620 name: gerritPatchsetNumber
621 default: '$GERRIT_PATCHSET_NUMBER'
622 description: 'PatchSet number in Gerrit'
623
624 - string:
625 name: cordRepoUrl
626 default: '{gerrit-server-url}'
627 description: 'The URL of the CORD Project repository'
628
629 - string:
630 name: podName
631 default: '{config-pod}'
632
633 - string:
634 name: deploymentConfigFile
635 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
636 description: 'Path of deployment config file'
637
638 - string:
639 name: kindVolthaValuesFile
640 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
641 description: 'Path of kind-voltha values override file'
642
643 - string:
644 name: sadisConfigFile
645 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
646 description: 'Path of SADIS config to load'
647
648 - string:
649 name: localConfigDir
650 default: null
651 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
652
653 - string:
654 name: configRepo
655 default: 'pod-configs'
656 description: 'A repository containing the config files, will be checked out if specified'
657
658 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700659 name: oltDebVersionMaster
660 default: '{oltDebVersionMaster}'
661 description: 'OLT Software version to install for master branch builds'
662
663 - string:
664 name: oltDebVersionVoltha23
665 default: '{oltDebVersionVoltha23}'
666 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700667
668 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700669 name: profile
670 default: '{profile}'
671 description: 'Technology Profile pushed to the ETCD'
672
673 - string:
674 name: notificationEmail
675 default: 'andy@opennetworking.org'
676 description: ''
677
678 - bool:
679 name: reinstallOlt
680 default: false
681 description: "Re-install OLT software"
682
Zack Williams03ebb272020-03-27 09:42:33 -0700683 - string:
684 name: manualBranch
685 default: '{manualBranch}'
686 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700687
Andy Bavier8c11d462019-12-17 08:19:34 -0700688 - string:
689 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700690 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700691 description: 'Arguments to pass to robot'
692
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700693 project-type: pipeline
694 concurrent: true
695
696 dsl: !include-raw-escape: pipeline/{pipeline-script}