blob: 8ab138c45f16db3600657eb6f06d8b006029f332 [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':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070022 name: 'periodic-voltha-test-bbsim-2.5'
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
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070026 code-branch: 'voltha-2.5'
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':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070042 name: 'periodic-voltha-etcd-test-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070043 pipeline-script: 'voltha-system-test-bbsim.groovy'
44 build-node: 'ubuntu16.04-basebuild-4c-8g'
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070045 code-branch: 'voltha-2.5'
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':
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070064 name: 'periodic-voltha-sanity-test-multi-runs-2.5'
Andy Bavier10926f12020-03-27 16:53:43 -070065 pipeline-script: 'voltha-go-multi-tests.groovy'
66 build-node: 'qct-pod4-node2'
Matteo Scandolo6fb577f2020-09-29 09:51:56 -070067 code-branch: 'voltha-2.5'
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 Bavierf5b15d82020-08-20 17:03:17 -070089 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -070090 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 Bavierf5b15d82020-08-20 17:03:17 -070098 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -070099 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700100 profile: 'Default'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700101 trigger-string: 'hardware test'
102 default-test-args: '-i sanityORDeleteOLT -X'
103
104
105 # Per-patchset Pod builds on Tucson pod
106 - 'verify_physical_voltha_patchset_manual':
107 name: 'verify_physical_voltha_patchset_manual_DT'
108 build-node: 'tucson-pod'
109 config-pod: 'tucson-pod-DT'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700110 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700111 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
112 profile: 'Default'
113 pipeline-script: 'voltha-dt-physical-build-and-tests.groovy'
114 trigger-string: 'DT hardware test'
115 default-test-args: '-i sanityDt -X'
116
117
Andy Bavier19c98a22019-11-11 13:57:11 -0700118
119 # Manual build job for Tucson pod
120 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700121 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700122 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700123 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700124 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700125 manualBranch: 'master'
Andy Bavierf5b15d82020-08-20 17:03:17 -0700126 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-bal-3.4.7.5-fixed.deb'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700127 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700128 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700129
Kailash8b8de742019-07-30 08:54:51 -0700130- job-template:
Kailashaad71012019-08-27 10:36:53 -0700131 id: 'voltha-periodic-test'
132 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700133 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700134 test-runs: 1
135 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700136 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700137 work-flow: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700138 volthaSystemTestsChange: ''
139 kindVolthaChange: ''
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
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700218 - string:
219 name: volthaSystemTestsChange
220 default: '{volthaSystemTestsChange}'
221 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
222
223 - string:
224 name: kindVolthaChange
225 default: '{kindVolthaChange}'
226 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
227
Kailash8b8de742019-07-30 08:54:51 -0700228 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700229 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700230
Zack Williamsb3292082019-10-11 17:15:18 -0700231 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700232
233 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700234 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700235 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700236 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700237
238- job-template:
239 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800240 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700241 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700242 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700243 volthaSystemTestsChange: ''
244 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700245
246 description: |
247 <!-- Managed by Jenkins Job Builder -->
248 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
249 E2E Validation for Voltha 2.X
250
251 properties:
252 - cord-infra-properties:
253 build-days-to-keep: '{build-days-to-keep}'
254 artifact-num-to-keep: '{artifact-num-to-keep}'
255
256 wrappers:
257 - lf-infra-wrappers:
258 build-timeout: '{build-timeout}'
259 jenkins-ssh-credential: '{jenkins-ssh-credential}'
260
261 parameters:
262 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700263 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700264 default: 'ubuntu16.04-basebuild-4c-8g'
265 description: 'Name of the Jenkins node to run the job on'
266
267 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700268 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700269 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700270 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700271
272 - string:
hwchiu14f97852019-10-08 10:51:11 -0700273 name: gerritProject
274 default: '$GERRIT_PROJECT'
275 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700276
277 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700278 name: gerritRefspec
279 default: '$GERRIT_REFSPEC'
280 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700281
282 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700283 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700284 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700285 description: 'Helm flags to pass to ./voltha up'
286
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700287 - string:
288 name: volthaSystemTestsChange
289 default: '{volthaSystemTestsChange}'
290 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
291
292 - string:
293 name: kindVolthaChange
294 default: '{kindVolthaChange}'
295 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
296
Kailashaad71012019-08-27 10:36:53 -0700297 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700298 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700299
Zack Williamsb3292082019-10-11 17:15:18 -0700300 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700301
302 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700303 - gerrit:
304 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700305 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700306 silent-start: true
307 trigger-on:
308 - patchset-created-event:
309 exclude-drafts: true
310 exclude-trivial-rebase: false
311 exclude-no-code-change: true
312 - draft-published-event
313 - comment-added-contains-event:
314 comment-contains-value: '(?i)^.*recheck$'
315 projects:
316 - project-compare-type: REG_EXP
317 project-pattern: '^{project}$'
318 branches:
319 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700320 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700321 file-paths:
322 - compare-type: REG_EXP
323 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700324
325# POD Per Patchset Pipeline Jobs
326
327- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700328 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700329 id: verify_physical_voltha_patchset_auto
330 description: |
331 <!-- Managed by Jenkins Job Builder -->
332 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
333 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
334 Created by Andy Bavier, andy@opennetworking.org <br />
335 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700336 sandbox: true
337 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700338 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700339
340 properties:
341 - cord-infra-properties:
342 build-days-to-keep: '{build-days-to-keep}'
343 artifact-num-to-keep: '{artifact-num-to-keep}'
344
345 parameters:
346 - string:
347 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700348 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700349 description: 'Pod management node'
350
351 - string:
352 name: manifestUrl
353 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
354 description: 'URL to the repo manifest'
355
356 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700357 name: branch
358 default: '$GERRIT_BRANCH'
359 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700360
361 - string:
362 name: gerritProject
363 default: '$GERRIT_PROJECT'
364 description: 'Name of the Gerrit project'
365
366 - string:
367 name: gerritChangeNumber
368 default: '$GERRIT_CHANGE_NUMBER'
369 description: 'Changeset number in Gerrit'
370
371 - string:
372 name: gerritPatchsetNumber
373 default: '$GERRIT_PATCHSET_NUMBER'
374 description: 'PatchSet number in Gerrit'
375
376 - string:
377 name: cordRepoUrl
378 default: '{gerrit-server-url}'
379 description: 'The URL of the CORD Project repository'
380
381 - string:
382 name: podName
383 default: '{config-pod}'
384
385 - string:
386 name: deploymentConfigFile
387 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
388 description: 'Path of deployment config file'
389
390 - string:
391 name: kindVolthaValuesFile
392 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
393 description: 'Path of kind-voltha values override file'
394
395 - string:
396 name: sadisConfigFile
397 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
398 description: 'Path of SADIS config to load'
399
400 - string:
401 name: localConfigDir
402 default: null
403 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
404
405 - string:
406 name: configRepo
407 default: 'pod-configs'
408 description: 'A repository containing the config files, will be checked out if specified'
409
410 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700411 name: oltDebVersionMaster
412 default: '{oltDebVersionMaster}'
413 description: 'OLT Software version to install for master branch builds'
414
415 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700416 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700417 default: '{oltDebVersionVoltha23}'
418 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700419
420 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700421 name: profile
422 default: '{profile}'
423 description: 'Technology Profile pushed to the ETCD'
424
425 - string:
426 name: notificationEmail
427 default: 'andy@opennetworking.org'
428 description: ''
429
430 - bool:
431 name: reinstallOlt
432 default: true
433 description: "Re-install OLT software"
434
Zack Williams03ebb272020-03-27 09:42:33 -0700435 - string:
436 name: manualBranch
437 default: '{manualBranch}'
438 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700439
440 - string:
441 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700442 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700443 description: 'Arguments to pass to robot'
444
445 project-type: pipeline
446 concurrent: true
447
448 dsl: !include-raw-escape: pipeline/{pipeline-script}
449
450 triggers:
451 - gerrit:
452 server-name: '{gerrit-server-name}'
453 dependency-jobs: '{dependency-jobs}'
454 silent-start: false
455 successful-message: "PASSED hardware test"
456 failure-message: "FAILED hardware test"
457 unstable-message: "UNSTABLE hardware test"
458 trigger-on:
459 - comment-added-event:
460 approval-category: 'Code-Review'
461 approval-value: '+2'
462 projects:
463 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700464 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700465 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700466 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700467 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700468
469
470- job-template:
471 name: '{name}'
472 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700473 description: |
474 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700475 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700476 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700477 Created by Andy Bavier, andy@opennetworking.org <br />
478 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700479 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700480 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700481 trigger-string: 'hardware test'
482 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700483
484 properties:
485 - cord-infra-properties:
486 build-days-to-keep: '{build-days-to-keep}'
487 artifact-num-to-keep: '{artifact-num-to-keep}'
488
489 parameters:
490 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700491 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700492 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700493 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700494
495 - string:
496 name: manifestUrl
497 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
498 description: 'URL to the repo manifest'
499
500 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700501 name: branch
502 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700503 description: 'Name of the repo branch to use'
504
505 - string:
506 name: gerritProject
507 default: '$GERRIT_PROJECT'
508 description: 'Name of the Gerrit project'
509
510 - string:
511 name: gerritChangeNumber
512 default: '$GERRIT_CHANGE_NUMBER'
513 description: 'Changeset number in Gerrit'
514
515 - string:
516 name: gerritPatchsetNumber
517 default: '$GERRIT_PATCHSET_NUMBER'
518 description: 'PatchSet number in Gerrit'
519
520 - string:
521 name: cordRepoUrl
522 default: '{gerrit-server-url}'
523 description: 'The URL of the CORD Project repository'
524
525 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700526 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700527 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700528
529 - string:
530 name: deploymentConfigFile
531 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
532 description: 'Path of deployment config file'
533
534 - string:
535 name: kindVolthaValuesFile
536 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
537 description: 'Path of kind-voltha values override file'
538
539 - string:
540 name: sadisConfigFile
541 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
542 description: 'Path of SADIS config to load'
543
544 - string:
545 name: localConfigDir
546 default: null
547 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
548
549 - string:
550 name: configRepo
551 default: 'pod-configs'
552 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700553
554 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700555 name: oltDebVersionMaster
556 default: '{oltDebVersionMaster}'
557 description: 'OLT Software version to install for master branch builds'
558
559 - string:
560 name: oltDebVersionVoltha23
561 default: '{oltDebVersionVoltha23}'
562 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700563
564 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700565 name: profile
566 default: '{profile}'
567 description: 'Technology Profile pushed to the ETCD'
568
569 - string:
570 name: notificationEmail
571 default: 'andy@opennetworking.org'
572 description: ''
573
574 - bool:
575 name: reinstallOlt
576 default: true
577 description: "Re-install OLT software"
578
Zack Williams03ebb272020-03-27 09:42:33 -0700579 - string:
580 name: manualBranch
581 default: '{manualBranch}'
582 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700583
Andy Bavier8c11d462019-12-17 08:19:34 -0700584 - string:
585 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700586 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700587 description: 'Arguments to pass to robot'
588
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700589 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700590 concurrent: true
591
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700592 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700593
Andy Bavier1f465592019-11-06 10:03:56 -0700594 triggers:
595 - gerrit:
596 server-name: '{gerrit-server-name}'
597 dependency-jobs: '{dependency-jobs}'
598 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700599 successful-message: "PASSED {trigger-string}"
600 failure-message: "FAILED {trigger-string}"
601 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700602 trigger-on:
603 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700604 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800605 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700606 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700607 projects:
608 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700609 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 -0700610 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700611 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700612 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700613
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700614
615- job-template:
616 name: '{name}'
617 id: build_physical_voltha_manual
618 description: |
619 <!-- Managed by Jenkins Job Builder -->
620 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
621 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
622 Created by Andy Bavier, andy@opennetworking.org <br />
623 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700624 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700625 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700626
627 properties:
628 - cord-infra-properties:
629 build-days-to-keep: '{build-days-to-keep}'
630 artifact-num-to-keep: '{artifact-num-to-keep}'
631
632 parameters:
633 - string:
634 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700635 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700636 description: 'Pod management node'
637
638 - string:
639 name: manifestUrl
640 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
641 description: 'URL to the repo manifest'
642
643 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700644 name: branch
645 default: "$GERRIT_BRANCH"
646 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700647
648 - string:
649 name: gerritProject
650 default: '$GERRIT_PROJECT'
651 description: 'Name of the Gerrit project'
652
653 - string:
654 name: gerritChangeNumber
655 default: '$GERRIT_CHANGE_NUMBER'
656 description: 'Changeset number in Gerrit'
657
658 - string:
659 name: gerritPatchsetNumber
660 default: '$GERRIT_PATCHSET_NUMBER'
661 description: 'PatchSet number in Gerrit'
662
663 - string:
664 name: cordRepoUrl
665 default: '{gerrit-server-url}'
666 description: 'The URL of the CORD Project repository'
667
668 - string:
669 name: podName
670 default: '{config-pod}'
671
672 - string:
673 name: deploymentConfigFile
674 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
675 description: 'Path of deployment config file'
676
677 - string:
678 name: kindVolthaValuesFile
679 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
680 description: 'Path of kind-voltha values override file'
681
682 - string:
683 name: sadisConfigFile
684 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
685 description: 'Path of SADIS config to load'
686
687 - string:
688 name: localConfigDir
689 default: null
690 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
691
692 - string:
693 name: configRepo
694 default: 'pod-configs'
695 description: 'A repository containing the config files, will be checked out if specified'
696
697 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700698 name: oltDebVersionMaster
699 default: '{oltDebVersionMaster}'
700 description: 'OLT Software version to install for master branch builds'
701
702 - string:
703 name: oltDebVersionVoltha23
704 default: '{oltDebVersionVoltha23}'
705 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700706
707 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700708 name: profile
709 default: '{profile}'
710 description: 'Technology Profile pushed to the ETCD'
711
712 - string:
713 name: notificationEmail
714 default: 'andy@opennetworking.org'
715 description: ''
716
717 - bool:
718 name: reinstallOlt
719 default: false
720 description: "Re-install OLT software"
721
Zack Williams03ebb272020-03-27 09:42:33 -0700722 - string:
723 name: manualBranch
724 default: '{manualBranch}'
725 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700726
Andy Bavier8c11d462019-12-17 08:19:34 -0700727 - string:
728 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700729 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700730 description: 'Arguments to pass to robot'
731
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700732 project-type: pipeline
733 concurrent: true
734
735 dsl: !include-raw-escape: pipeline/{pipeline-script}