blob: bf2ed71e806f0f3d2e2eb56be17ef2ddbfce5442 [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 * * *"
pierventref48ebc12020-07-17 16:01:32 +020030 karaf-home: 'apache-karaf-4.2.8'
Andy Bavier10926f12020-03-27 16:53:43 -070031
32 - 'voltha-periodic-test':
Andy Bavier4be37062020-06-29 15:17:26 -070033 name: 'periodic-voltha-etcd-test'
hwchiufdc49242019-11-18 16:37:22 -080034 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080035 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080036 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080037 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080038 onus: 2
39 pons: 2
40 time-trigger: "H H/12 * * *"
41
42 - 'voltha-periodic-test':
Andy Bavierc3a3d892020-07-09 09:56:08 -070043 name: 'periodic-voltha-etcd-test-2.4'
Andy Bavier10926f12020-03-27 16:53:43 -070044 pipeline-script: 'voltha-system-test-bbsim.groovy'
45 build-node: 'ubuntu16.04-basebuild-4c-8g'
Andy Bavierc3a3d892020-07-09 09:56:08 -070046 code-branch: 'voltha-2.4'
Andy Bavier10926f12020-03-27 16:53:43 -070047 make-target: sanity-multi-kind
48 onus: 2
49 pons: 2
50 time-trigger: "H H/12 * * *"
51
52
53 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070054 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070055 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070056 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -070057 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070058 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070059 onus: 1
60 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070061 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -070062 time-trigger: "H H/12 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -070063
64 - 'voltha-periodic-test':
Andy Bavierc3a3d892020-07-09 09:56:08 -070065 name: 'periodic-voltha-sanity-test-multi-runs-2.4'
Andy Bavier10926f12020-03-27 16:53:43 -070066 pipeline-script: 'voltha-go-multi-tests.groovy'
67 build-node: 'qct-pod4-node2'
Andy Bavierc3a3d892020-07-09 09:56:08 -070068 code-branch: 'voltha-2.4'
Andy Bavier10926f12020-03-27 16:53:43 -070069 make-target: sanity-kind
70 onus: 1
71 pons: 1
72 test-runs: 5
Andy Bavier4be37062020-06-29 15:17:26 -070073 time-trigger: "H H/12 * * *"
Andrea Campanellaf6430a22020-07-31 15:24:33 +020074 karaf-home: 'apache-karaf-4.2.8'
Andy Bavier10926f12020-03-27 16:53:43 -070075
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -070076 - 'voltha-periodic-test':
77 name: 'nightly-voltha-DTflow-sanity-test'
78 build-node: 'ubuntu16.04-basebuild-4c-8g'
79 code-branch: 'master'
80 make-target: sanity-kind-dt
81 onus: 1
82 pons: 1
83 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -070084 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -070085
Andy Bavierbf68c5e2019-10-25 15:05:28 -070086 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -070087 - 'verify_physical_voltha_patchset_auto':
88 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -070089 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -070090 config-pod: 'tucson-pod'
Andy Bavierf5b15d82020-08-20 17:03:17 -070091 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -070092 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -070093 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -070094
95 # Per-patchset Pod builds on Tucson pod
96 - 'verify_physical_voltha_patchset_manual':
97 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -070098 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -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 Bavierbf68c5e2019-10-25 15:05:28 -0700102 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700103 trigger-string: 'hardware test'
104 default-test-args: '-i sanityORDeleteOLT -X'
105
106
107 # Per-patchset Pod builds on Tucson pod
108 - 'verify_physical_voltha_patchset_manual':
109 name: 'verify_physical_voltha_patchset_manual_DT'
110 build-node: 'tucson-pod'
111 config-pod: 'tucson-pod-DT'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700112 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700113 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
114 profile: 'Default'
115 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
116 trigger-string: 'DT hardware test'
117 default-test-args: '-i sanityDt -X'
118
119
Andy Bavier19c98a22019-11-11 13:57:11 -0700120
121 # Manual build job for Tucson pod
122 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700123 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700124 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700125 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700126 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700127 manualBranch: 'master'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700128 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700129 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700130 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700131
Kailash8b8de742019-07-30 08:54:51 -0700132- job-template:
Kailashaad71012019-08-27 10:36:53 -0700133 id: 'voltha-periodic-test'
134 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700135 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700136 test-runs: 1
137 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700138 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700139 work-flow: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700140 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700141
Kailash8b8de742019-07-30 08:54:51 -0700142 description: |
143 <!-- Managed by Jenkins Job Builder -->
144 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
145 E2E Validation for Voltha 2.X
146
147 properties:
148 - cord-infra-properties:
149 build-days-to-keep: '{build-days-to-keep}'
150 artifact-num-to-keep: '{artifact-num-to-keep}'
151
152 wrappers:
153 - lf-infra-wrappers:
154 build-timeout: '{build-timeout}'
155 jenkins-ssh-credential: '{jenkins-ssh-credential}'
156
157 parameters:
158 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700159 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700160 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700161 description: 'Name of the Jenkins node to run the job on'
162
163 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700164 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700165 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700166 description: 'Helm flags to pass to ./voltha up'
167
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700168 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700169 name: makeTarget
170 default: '{make-target}'
171 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700172
Andy Bavier4c8b3232019-11-22 16:17:47 -0700173 - string:
174 name: manifestUrl
175 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700176 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700177
178 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700179 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700180 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700181 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700182
Andy Bavier3708d072019-12-10 15:22:18 -0700183 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700184 name: gerritProject
185 default: '{gerrit-project}'
186 description: 'Name of the Gerrit project'
187
188 - string:
189 name: gerritChangeNumber
190 default: ''
191 description: 'Changeset number in Gerrit'
192
193 - string:
194 name: gerritPatchsetNumber
195 default: ''
196 description: 'PatchSet number in Gerrit'
197
198 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700199 name: testRuns
200 default: '{test-runs}'
201 description: 'How many times to repeat the tests'
202
203 - string:
204 name: extraRobotArgs
205 default: '{robot-args}'
206 description: 'Arguments to pass to robot'
207
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700208 - string:
209 name: workFlow
210 default: '{work-flow}'
211 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700212
pierventref48ebc12020-07-17 16:01:32 +0200213 - string:
214 name: karafHome
215 default: '{karaf-home}'
216 description: 'Karaf home'
217
Kailash8b8de742019-07-30 08:54:51 -0700218 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700219 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700220
Zack Williamsb3292082019-10-11 17:15:18 -0700221 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700222
223 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700224 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700225 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700226 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700227
228- job-template:
229 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800230 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700231 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700232 sandbox: true
Kailashaad71012019-08-27 10:36:53 -0700233
234 description: |
235 <!-- Managed by Jenkins Job Builder -->
236 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
237 E2E Validation for Voltha 2.X
238
239 properties:
240 - cord-infra-properties:
241 build-days-to-keep: '{build-days-to-keep}'
242 artifact-num-to-keep: '{artifact-num-to-keep}'
243
244 wrappers:
245 - lf-infra-wrappers:
246 build-timeout: '{build-timeout}'
247 jenkins-ssh-credential: '{jenkins-ssh-credential}'
248
249 parameters:
250 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700251 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700252 default: 'ubuntu16.04-basebuild-4c-8g'
253 description: 'Name of the Jenkins node to run the job on'
254
255 - string:
256 name: manifestUrl
257 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
258 description: 'URL to the repo manifest'
259
260 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700261 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700262 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700263 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700264
265 - string:
hwchiu14f97852019-10-08 10:51:11 -0700266 name: gerritProject
267 default: '$GERRIT_PROJECT'
268 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700269
270 - string:
hwchiu14f97852019-10-08 10:51:11 -0700271 name: gerritChangeNumber
272 default: '$GERRIT_CHANGE_NUMBER'
273 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700274
275 - string:
hwchiu14f97852019-10-08 10:51:11 -0700276 name: gerritPatchsetNumber
277 default: '$GERRIT_PATCHSET_NUMBER'
278 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700279
280 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700281 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700282 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700283 description: 'Helm flags to pass to ./voltha up'
284
Kailashaad71012019-08-27 10:36:53 -0700285 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700286 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700287
Zack Williamsb3292082019-10-11 17:15:18 -0700288 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700289
290 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700291 - gerrit:
292 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700293 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700294 silent-start: true
295 trigger-on:
296 - patchset-created-event:
297 exclude-drafts: true
298 exclude-trivial-rebase: false
299 exclude-no-code-change: true
300 - draft-published-event
301 - comment-added-contains-event:
302 comment-contains-value: '(?i)^.*recheck$'
303 projects:
304 - project-compare-type: REG_EXP
305 project-pattern: '^{project}$'
306 branches:
307 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700308 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700309 file-paths:
310 - compare-type: REG_EXP
311 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700312
313# POD Per Patchset Pipeline Jobs
314
315- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700316 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700317 id: verify_physical_voltha_patchset_auto
318 description: |
319 <!-- Managed by Jenkins Job Builder -->
320 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
321 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
322 Created by Andy Bavier, andy@opennetworking.org <br />
323 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700324 sandbox: true
325 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700326 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700327
328 properties:
329 - cord-infra-properties:
330 build-days-to-keep: '{build-days-to-keep}'
331 artifact-num-to-keep: '{artifact-num-to-keep}'
332
333 parameters:
334 - string:
335 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700336 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700337 description: 'Pod management node'
338
339 - string:
340 name: manifestUrl
341 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
342 description: 'URL to the repo manifest'
343
344 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700345 name: branch
346 default: '$GERRIT_BRANCH'
347 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700348
349 - string:
350 name: gerritProject
351 default: '$GERRIT_PROJECT'
352 description: 'Name of the Gerrit project'
353
354 - string:
355 name: gerritChangeNumber
356 default: '$GERRIT_CHANGE_NUMBER'
357 description: 'Changeset number in Gerrit'
358
359 - string:
360 name: gerritPatchsetNumber
361 default: '$GERRIT_PATCHSET_NUMBER'
362 description: 'PatchSet number in Gerrit'
363
364 - string:
365 name: cordRepoUrl
366 default: '{gerrit-server-url}'
367 description: 'The URL of the CORD Project repository'
368
369 - string:
370 name: podName
371 default: '{config-pod}'
372
373 - string:
374 name: deploymentConfigFile
375 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
376 description: 'Path of deployment config file'
377
378 - string:
379 name: kindVolthaValuesFile
380 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
381 description: 'Path of kind-voltha values override file'
382
383 - string:
384 name: sadisConfigFile
385 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
386 description: 'Path of SADIS config to load'
387
388 - string:
389 name: localConfigDir
390 default: null
391 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
392
393 - string:
394 name: configRepo
395 default: 'pod-configs'
396 description: 'A repository containing the config files, will be checked out if specified'
397
398 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700399 name: oltDebVersionMaster
400 default: '{oltDebVersionMaster}'
401 description: 'OLT Software version to install for master branch builds'
402
403 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700404 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700405 default: '{oltDebVersionVoltha23}'
406 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700407
408 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700409 name: profile
410 default: '{profile}'
411 description: 'Technology Profile pushed to the ETCD'
412
413 - string:
414 name: notificationEmail
415 default: 'andy@opennetworking.org'
416 description: ''
417
418 - bool:
419 name: reinstallOlt
420 default: true
421 description: "Re-install OLT software"
422
Zack Williams03ebb272020-03-27 09:42:33 -0700423 - string:
424 name: manualBranch
425 default: '{manualBranch}'
426 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700427
428 - string:
429 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700430 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700431 description: 'Arguments to pass to robot'
432
433 project-type: pipeline
434 concurrent: true
435
436 dsl: !include-raw-escape: pipeline/{pipeline-script}
437
438 triggers:
439 - gerrit:
440 server-name: '{gerrit-server-name}'
441 dependency-jobs: '{dependency-jobs}'
442 silent-start: false
443 successful-message: "PASSED hardware test"
444 failure-message: "FAILED hardware test"
445 unstable-message: "UNSTABLE hardware test"
446 trigger-on:
447 - comment-added-event:
448 approval-category: 'Code-Review'
449 approval-value: '+2'
450 projects:
451 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700452 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700453 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700454 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700455 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700456
457
458- job-template:
459 name: '{name}'
460 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700461 description: |
462 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700463 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700464 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700465 Created by Andy Bavier, andy@opennetworking.org <br />
466 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700467 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700468 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700469 trigger-string: 'hardware test'
470 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700471
472 properties:
473 - cord-infra-properties:
474 build-days-to-keep: '{build-days-to-keep}'
475 artifact-num-to-keep: '{artifact-num-to-keep}'
476
477 parameters:
478 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700479 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700480 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700481 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700482
483 - string:
484 name: manifestUrl
485 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
486 description: 'URL to the repo manifest'
487
488 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700489 name: branch
490 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700491 description: 'Name of the repo branch to use'
492
493 - string:
494 name: gerritProject
495 default: '$GERRIT_PROJECT'
496 description: 'Name of the Gerrit project'
497
498 - string:
499 name: gerritChangeNumber
500 default: '$GERRIT_CHANGE_NUMBER'
501 description: 'Changeset number in Gerrit'
502
503 - string:
504 name: gerritPatchsetNumber
505 default: '$GERRIT_PATCHSET_NUMBER'
506 description: 'PatchSet number in Gerrit'
507
508 - string:
509 name: cordRepoUrl
510 default: '{gerrit-server-url}'
511 description: 'The URL of the CORD Project repository'
512
513 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700514 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700515 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700516
517 - string:
518 name: deploymentConfigFile
519 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
520 description: 'Path of deployment config file'
521
522 - string:
523 name: kindVolthaValuesFile
524 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
525 description: 'Path of kind-voltha values override file'
526
527 - string:
528 name: sadisConfigFile
529 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
530 description: 'Path of SADIS config to load'
531
532 - string:
533 name: localConfigDir
534 default: null
535 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
536
537 - string:
538 name: configRepo
539 default: 'pod-configs'
540 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700541
542 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700543 name: oltDebVersionMaster
544 default: '{oltDebVersionMaster}'
545 description: 'OLT Software version to install for master branch builds'
546
547 - string:
548 name: oltDebVersionVoltha23
549 default: '{oltDebVersionVoltha23}'
550 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700551
552 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700553 name: profile
554 default: '{profile}'
555 description: 'Technology Profile pushed to the ETCD'
556
557 - string:
558 name: notificationEmail
559 default: 'andy@opennetworking.org'
560 description: ''
561
562 - bool:
563 name: reinstallOlt
564 default: true
565 description: "Re-install OLT software"
566
Zack Williams03ebb272020-03-27 09:42:33 -0700567 - string:
568 name: manualBranch
569 default: '{manualBranch}'
570 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700571
Andy Bavier8c11d462019-12-17 08:19:34 -0700572 - string:
573 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700574 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700575 description: 'Arguments to pass to robot'
576
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700577 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700578 concurrent: true
579
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700580 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700581
Andy Bavier1f465592019-11-06 10:03:56 -0700582 triggers:
583 - gerrit:
584 server-name: '{gerrit-server-name}'
585 dependency-jobs: '{dependency-jobs}'
586 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700587 successful-message: "PASSED {trigger-string}"
588 failure-message: "FAILED {trigger-string}"
589 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700590 trigger-on:
591 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700592 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800593 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700594 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700595 projects:
596 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700597 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 -0700598 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700599 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700600 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700601
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700602
603- job-template:
604 name: '{name}'
605 id: build_physical_voltha_manual
606 description: |
607 <!-- Managed by Jenkins Job Builder -->
608 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
609 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
610 Created by Andy Bavier, andy@opennetworking.org <br />
611 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700612 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700613 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700614
615 properties:
616 - cord-infra-properties:
617 build-days-to-keep: '{build-days-to-keep}'
618 artifact-num-to-keep: '{artifact-num-to-keep}'
619
620 parameters:
621 - string:
622 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700623 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700624 description: 'Pod management node'
625
626 - string:
627 name: manifestUrl
628 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
629 description: 'URL to the repo manifest'
630
631 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700632 name: branch
633 default: "$GERRIT_BRANCH"
634 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700635
636 - string:
637 name: gerritProject
638 default: '$GERRIT_PROJECT'
639 description: 'Name of the Gerrit project'
640
641 - string:
642 name: gerritChangeNumber
643 default: '$GERRIT_CHANGE_NUMBER'
644 description: 'Changeset number in Gerrit'
645
646 - string:
647 name: gerritPatchsetNumber
648 default: '$GERRIT_PATCHSET_NUMBER'
649 description: 'PatchSet number in Gerrit'
650
651 - string:
652 name: cordRepoUrl
653 default: '{gerrit-server-url}'
654 description: 'The URL of the CORD Project repository'
655
656 - string:
657 name: podName
658 default: '{config-pod}'
659
660 - string:
661 name: deploymentConfigFile
662 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
663 description: 'Path of deployment config file'
664
665 - string:
666 name: kindVolthaValuesFile
667 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
668 description: 'Path of kind-voltha values override file'
669
670 - string:
671 name: sadisConfigFile
672 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
673 description: 'Path of SADIS config to load'
674
675 - string:
676 name: localConfigDir
677 default: null
678 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
679
680 - string:
681 name: configRepo
682 default: 'pod-configs'
683 description: 'A repository containing the config files, will be checked out if specified'
684
685 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700686 name: oltDebVersionMaster
687 default: '{oltDebVersionMaster}'
688 description: 'OLT Software version to install for master branch builds'
689
690 - string:
691 name: oltDebVersionVoltha23
692 default: '{oltDebVersionVoltha23}'
693 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700694
695 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700696 name: profile
697 default: '{profile}'
698 description: 'Technology Profile pushed to the ETCD'
699
700 - string:
701 name: notificationEmail
702 default: 'andy@opennetworking.org'
703 description: ''
704
705 - bool:
706 name: reinstallOlt
707 default: false
708 description: "Re-install OLT software"
709
Zack Williams03ebb272020-03-27 09:42:33 -0700710 - string:
711 name: manualBranch
712 default: '{manualBranch}'
713 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700714
Andy Bavier8c11d462019-12-17 08:19:34 -0700715 - string:
716 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700717 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700718 description: 'Arguments to pass to robot'
719
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700720 project-type: pipeline
721 concurrent: true
722
723 dsl: !include-raw-escape: pipeline/{pipeline-script}