blob: 63649e900583811783a0069eafe1f050b6d06abc [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: ''
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700140 volthaSystemTestsChange: ''
141 kindVolthaChange: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700142 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700143
Kailash8b8de742019-07-30 08:54:51 -0700144 description: |
145 <!-- Managed by Jenkins Job Builder -->
146 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
147 E2E Validation for Voltha 2.X
148
149 properties:
150 - cord-infra-properties:
151 build-days-to-keep: '{build-days-to-keep}'
152 artifact-num-to-keep: '{artifact-num-to-keep}'
153
154 wrappers:
155 - lf-infra-wrappers:
156 build-timeout: '{build-timeout}'
157 jenkins-ssh-credential: '{jenkins-ssh-credential}'
158
159 parameters:
160 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700161 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700162 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700163 description: 'Name of the Jenkins node to run the job on'
164
165 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700166 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700167 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700168 description: 'Helm flags to pass to ./voltha up'
169
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700170 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700171 name: makeTarget
172 default: '{make-target}'
173 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700174
Andy Bavier4c8b3232019-11-22 16:17:47 -0700175 - string:
176 name: manifestUrl
177 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700178 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700179
180 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700181 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700182 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700183 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700184
Andy Bavier3708d072019-12-10 15:22:18 -0700185 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700186 name: gerritProject
187 default: '{gerrit-project}'
188 description: 'Name of the Gerrit project'
189
190 - string:
191 name: gerritChangeNumber
192 default: ''
193 description: 'Changeset number in Gerrit'
194
195 - string:
196 name: gerritPatchsetNumber
197 default: ''
198 description: 'PatchSet number in Gerrit'
199
200 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700201 name: testRuns
202 default: '{test-runs}'
203 description: 'How many times to repeat the tests'
204
205 - string:
206 name: extraRobotArgs
207 default: '{robot-args}'
208 description: 'Arguments to pass to robot'
209
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700210 - string:
211 name: workFlow
212 default: '{work-flow}'
213 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700214
pierventref48ebc12020-07-17 16:01:32 +0200215 - string:
216 name: karafHome
217 default: '{karaf-home}'
218 description: 'Karaf home'
219
Matteo Scandolo861a53a2020-09-16 11:39:42 -0700220 - string:
221 name: volthaSystemTestsChange
222 default: '{volthaSystemTestsChange}'
223 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
224
225 - string:
226 name: kindVolthaChange
227 default: '{kindVolthaChange}'
228 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
229
Kailash8b8de742019-07-30 08:54:51 -0700230 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700231 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700232
Zack Williamsb3292082019-10-11 17:15:18 -0700233 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700234
235 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700236 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700237 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700238 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700239
240- job-template:
241 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800242 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700243 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700244 sandbox: true
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700245 volthaSystemTestsChange: ''
246 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700247
248 description: |
249 <!-- Managed by Jenkins Job Builder -->
250 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
251 E2E Validation for Voltha 2.X
252
253 properties:
254 - cord-infra-properties:
255 build-days-to-keep: '{build-days-to-keep}'
256 artifact-num-to-keep: '{artifact-num-to-keep}'
257
258 wrappers:
259 - lf-infra-wrappers:
260 build-timeout: '{build-timeout}'
261 jenkins-ssh-credential: '{jenkins-ssh-credential}'
262
263 parameters:
264 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700265 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700266 default: 'ubuntu16.04-basebuild-4c-8g'
267 description: 'Name of the Jenkins node to run the job on'
268
269 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700270 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700271 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700272 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700273
274 - string:
hwchiu14f97852019-10-08 10:51:11 -0700275 name: gerritProject
276 default: '$GERRIT_PROJECT'
277 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700278
279 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700280 name: gerritRefspec
281 default: '$GERRIT_REFSPEC'
282 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700283
284 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700285 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700286 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700287 description: 'Helm flags to pass to ./voltha up'
288
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700289 - string:
290 name: volthaSystemTestsChange
291 default: '{volthaSystemTestsChange}'
292 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
293
294 - string:
295 name: kindVolthaChange
296 default: '{kindVolthaChange}'
297 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
298
Kailashaad71012019-08-27 10:36:53 -0700299 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700300 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700301
Zack Williamsb3292082019-10-11 17:15:18 -0700302 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700303
304 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700305 - gerrit:
306 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700307 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700308 silent-start: true
309 trigger-on:
310 - patchset-created-event:
311 exclude-drafts: true
312 exclude-trivial-rebase: false
313 exclude-no-code-change: true
314 - draft-published-event
315 - comment-added-contains-event:
316 comment-contains-value: '(?i)^.*recheck$'
317 projects:
318 - project-compare-type: REG_EXP
319 project-pattern: '^{project}$'
320 branches:
321 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700322 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700323 file-paths:
324 - compare-type: REG_EXP
325 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700326
327# POD Per Patchset Pipeline Jobs
328
329- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700330 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700331 id: verify_physical_voltha_patchset_auto
332 description: |
333 <!-- Managed by Jenkins Job Builder -->
334 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
335 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
336 Created by Andy Bavier, andy@opennetworking.org <br />
337 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700338 sandbox: true
339 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700340 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700341
342 properties:
343 - cord-infra-properties:
344 build-days-to-keep: '{build-days-to-keep}'
345 artifact-num-to-keep: '{artifact-num-to-keep}'
346
347 parameters:
348 - string:
349 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700350 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700351 description: 'Pod management node'
352
353 - string:
354 name: manifestUrl
355 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
356 description: 'URL to the repo manifest'
357
358 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700359 name: branch
360 default: '$GERRIT_BRANCH'
361 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700362
363 - string:
364 name: gerritProject
365 default: '$GERRIT_PROJECT'
366 description: 'Name of the Gerrit project'
367
368 - string:
369 name: gerritChangeNumber
370 default: '$GERRIT_CHANGE_NUMBER'
371 description: 'Changeset number in Gerrit'
372
373 - string:
374 name: gerritPatchsetNumber
375 default: '$GERRIT_PATCHSET_NUMBER'
376 description: 'PatchSet number in Gerrit'
377
378 - string:
379 name: cordRepoUrl
380 default: '{gerrit-server-url}'
381 description: 'The URL of the CORD Project repository'
382
383 - string:
384 name: podName
385 default: '{config-pod}'
386
387 - string:
388 name: deploymentConfigFile
389 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
390 description: 'Path of deployment config file'
391
392 - string:
393 name: kindVolthaValuesFile
394 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
395 description: 'Path of kind-voltha values override file'
396
397 - string:
398 name: sadisConfigFile
399 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
400 description: 'Path of SADIS config to load'
401
402 - string:
403 name: localConfigDir
404 default: null
405 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
406
407 - string:
408 name: configRepo
409 default: 'pod-configs'
410 description: 'A repository containing the config files, will be checked out if specified'
411
412 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700413 name: oltDebVersionMaster
414 default: '{oltDebVersionMaster}'
415 description: 'OLT Software version to install for master branch builds'
416
417 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700418 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700419 default: '{oltDebVersionVoltha23}'
420 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700421
422 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700423 name: profile
424 default: '{profile}'
425 description: 'Technology Profile pushed to the ETCD'
426
427 - string:
428 name: notificationEmail
429 default: 'andy@opennetworking.org'
430 description: ''
431
432 - bool:
433 name: reinstallOlt
434 default: true
435 description: "Re-install OLT software"
436
Zack Williams03ebb272020-03-27 09:42:33 -0700437 - string:
438 name: manualBranch
439 default: '{manualBranch}'
440 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700441
442 - string:
443 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700444 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700445 description: 'Arguments to pass to robot'
446
447 project-type: pipeline
448 concurrent: true
449
450 dsl: !include-raw-escape: pipeline/{pipeline-script}
451
452 triggers:
453 - gerrit:
454 server-name: '{gerrit-server-name}'
455 dependency-jobs: '{dependency-jobs}'
456 silent-start: false
457 successful-message: "PASSED hardware test"
458 failure-message: "FAILED hardware test"
459 unstable-message: "UNSTABLE hardware test"
460 trigger-on:
461 - comment-added-event:
462 approval-category: 'Code-Review'
463 approval-value: '+2'
464 projects:
465 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700466 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700467 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700468 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700469 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700470
471
472- job-template:
473 name: '{name}'
474 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700475 description: |
476 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700477 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700478 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700479 Created by Andy Bavier, andy@opennetworking.org <br />
480 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700481 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700482 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700483 trigger-string: 'hardware test'
484 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700485
486 properties:
487 - cord-infra-properties:
488 build-days-to-keep: '{build-days-to-keep}'
489 artifact-num-to-keep: '{artifact-num-to-keep}'
490
491 parameters:
492 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700493 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700494 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700495 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700496
497 - string:
498 name: manifestUrl
499 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
500 description: 'URL to the repo manifest'
501
502 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700503 name: branch
504 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700505 description: 'Name of the repo branch to use'
506
507 - string:
508 name: gerritProject
509 default: '$GERRIT_PROJECT'
510 description: 'Name of the Gerrit project'
511
512 - string:
513 name: gerritChangeNumber
514 default: '$GERRIT_CHANGE_NUMBER'
515 description: 'Changeset number in Gerrit'
516
517 - string:
518 name: gerritPatchsetNumber
519 default: '$GERRIT_PATCHSET_NUMBER'
520 description: 'PatchSet number in Gerrit'
521
522 - string:
523 name: cordRepoUrl
524 default: '{gerrit-server-url}'
525 description: 'The URL of the CORD Project repository'
526
527 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700528 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700529 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700530
531 - string:
532 name: deploymentConfigFile
533 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
534 description: 'Path of deployment config file'
535
536 - string:
537 name: kindVolthaValuesFile
538 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
539 description: 'Path of kind-voltha values override file'
540
541 - string:
542 name: sadisConfigFile
543 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
544 description: 'Path of SADIS config to load'
545
546 - string:
547 name: localConfigDir
548 default: null
549 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
550
551 - string:
552 name: configRepo
553 default: 'pod-configs'
554 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700555
556 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700557 name: oltDebVersionMaster
558 default: '{oltDebVersionMaster}'
559 description: 'OLT Software version to install for master branch builds'
560
561 - string:
562 name: oltDebVersionVoltha23
563 default: '{oltDebVersionVoltha23}'
564 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700565
566 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700567 name: profile
568 default: '{profile}'
569 description: 'Technology Profile pushed to the ETCD'
570
571 - string:
572 name: notificationEmail
573 default: 'andy@opennetworking.org'
574 description: ''
575
576 - bool:
577 name: reinstallOlt
578 default: true
579 description: "Re-install OLT software"
580
Zack Williams03ebb272020-03-27 09:42:33 -0700581 - string:
582 name: manualBranch
583 default: '{manualBranch}'
584 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700585
Andy Bavier8c11d462019-12-17 08:19:34 -0700586 - string:
587 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700588 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700589 description: 'Arguments to pass to robot'
590
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700591 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700592 concurrent: true
593
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700594 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700595
Andy Bavier1f465592019-11-06 10:03:56 -0700596 triggers:
597 - gerrit:
598 server-name: '{gerrit-server-name}'
599 dependency-jobs: '{dependency-jobs}'
600 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700601 successful-message: "PASSED {trigger-string}"
602 failure-message: "FAILED {trigger-string}"
603 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700604 trigger-on:
605 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700606 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800607 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700608 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700609 projects:
610 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700611 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 -0700612 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700613 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700614 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700615
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700616
617- job-template:
618 name: '{name}'
619 id: build_physical_voltha_manual
620 description: |
621 <!-- Managed by Jenkins Job Builder -->
622 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
623 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
624 Created by Andy Bavier, andy@opennetworking.org <br />
625 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700626 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700627 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700628
629 properties:
630 - cord-infra-properties:
631 build-days-to-keep: '{build-days-to-keep}'
632 artifact-num-to-keep: '{artifact-num-to-keep}'
633
634 parameters:
635 - string:
636 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700637 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700638 description: 'Pod management node'
639
640 - string:
641 name: manifestUrl
642 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
643 description: 'URL to the repo manifest'
644
645 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700646 name: branch
647 default: "$GERRIT_BRANCH"
648 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700649
650 - string:
651 name: gerritProject
652 default: '$GERRIT_PROJECT'
653 description: 'Name of the Gerrit project'
654
655 - string:
656 name: gerritChangeNumber
657 default: '$GERRIT_CHANGE_NUMBER'
658 description: 'Changeset number in Gerrit'
659
660 - string:
661 name: gerritPatchsetNumber
662 default: '$GERRIT_PATCHSET_NUMBER'
663 description: 'PatchSet number in Gerrit'
664
665 - string:
666 name: cordRepoUrl
667 default: '{gerrit-server-url}'
668 description: 'The URL of the CORD Project repository'
669
670 - string:
671 name: podName
672 default: '{config-pod}'
673
674 - string:
675 name: deploymentConfigFile
676 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
677 description: 'Path of deployment config file'
678
679 - string:
680 name: kindVolthaValuesFile
681 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
682 description: 'Path of kind-voltha values override file'
683
684 - string:
685 name: sadisConfigFile
686 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
687 description: 'Path of SADIS config to load'
688
689 - string:
690 name: localConfigDir
691 default: null
692 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
693
694 - string:
695 name: configRepo
696 default: 'pod-configs'
697 description: 'A repository containing the config files, will be checked out if specified'
698
699 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700700 name: oltDebVersionMaster
701 default: '{oltDebVersionMaster}'
702 description: 'OLT Software version to install for master branch builds'
703
704 - string:
705 name: oltDebVersionVoltha23
706 default: '{oltDebVersionVoltha23}'
707 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700708
709 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700710 name: profile
711 default: '{profile}'
712 description: 'Technology Profile pushed to the ETCD'
713
714 - string:
715 name: notificationEmail
716 default: 'andy@opennetworking.org'
717 description: ''
718
719 - bool:
720 name: reinstallOlt
721 default: false
722 description: "Re-install OLT software"
723
Zack Williams03ebb272020-03-27 09:42:33 -0700724 - string:
725 name: manualBranch
726 default: '{manualBranch}'
727 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700728
Andy Bavier8c11d462019-12-17 08:19:34 -0700729 - string:
730 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700731 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700732 description: 'Arguments to pass to robot'
733
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700734 project-type: pipeline
735 concurrent: true
736
737 dsl: !include-raw-escape: pipeline/{pipeline-script}