blob: 26690cb2d49ac8ab17067530ef1301076ea09d11 [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
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700233 volthaSystemTestsChange: ''
234 kindVolthaChange: ''
Kailashaad71012019-08-27 10:36:53 -0700235
236 description: |
237 <!-- Managed by Jenkins Job Builder -->
238 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
239 E2E Validation for Voltha 2.X
240
241 properties:
242 - cord-infra-properties:
243 build-days-to-keep: '{build-days-to-keep}'
244 artifact-num-to-keep: '{artifact-num-to-keep}'
245
246 wrappers:
247 - lf-infra-wrappers:
248 build-timeout: '{build-timeout}'
249 jenkins-ssh-credential: '{jenkins-ssh-credential}'
250
251 parameters:
252 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700253 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700254 default: 'ubuntu16.04-basebuild-4c-8g'
255 description: 'Name of the Jenkins node to run the job on'
256
257 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700258 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700259 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700260 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700261
262 - string:
hwchiu14f97852019-10-08 10:51:11 -0700263 name: gerritProject
264 default: '$GERRIT_PROJECT'
265 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700266
267 - string:
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700268 name: gerritRefspec
269 default: '$GERRIT_REFSPEC'
270 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Kailashaad71012019-08-27 10:36:53 -0700271
272 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700273 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700274 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700275 description: 'Helm flags to pass to ./voltha up'
276
Matteo Scandolo9aae4952020-09-14 13:05:53 -0700277 - string:
278 name: volthaSystemTestsChange
279 default: '{volthaSystemTestsChange}'
280 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
281
282 - string:
283 name: kindVolthaChange
284 default: '{kindVolthaChange}'
285 description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"'
286
Kailashaad71012019-08-27 10:36:53 -0700287 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700288 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700289
Zack Williamsb3292082019-10-11 17:15:18 -0700290 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700291
292 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700293 - gerrit:
294 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700295 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700296 silent-start: true
297 trigger-on:
298 - patchset-created-event:
299 exclude-drafts: true
300 exclude-trivial-rebase: false
301 exclude-no-code-change: true
302 - draft-published-event
303 - comment-added-contains-event:
304 comment-contains-value: '(?i)^.*recheck$'
305 projects:
306 - project-compare-type: REG_EXP
307 project-pattern: '^{project}$'
308 branches:
309 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700310 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700311 file-paths:
312 - compare-type: REG_EXP
313 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700314
315# POD Per Patchset Pipeline Jobs
316
317- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700318 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700319 id: verify_physical_voltha_patchset_auto
320 description: |
321 <!-- Managed by Jenkins Job Builder -->
322 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
323 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
324 Created by Andy Bavier, andy@opennetworking.org <br />
325 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700326 sandbox: true
327 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700328 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700329
330 properties:
331 - cord-infra-properties:
332 build-days-to-keep: '{build-days-to-keep}'
333 artifact-num-to-keep: '{artifact-num-to-keep}'
334
335 parameters:
336 - string:
337 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700338 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700339 description: 'Pod management node'
340
341 - string:
342 name: manifestUrl
343 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
344 description: 'URL to the repo manifest'
345
346 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700347 name: branch
348 default: '$GERRIT_BRANCH'
349 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700350
351 - string:
352 name: gerritProject
353 default: '$GERRIT_PROJECT'
354 description: 'Name of the Gerrit project'
355
356 - string:
357 name: gerritChangeNumber
358 default: '$GERRIT_CHANGE_NUMBER'
359 description: 'Changeset number in Gerrit'
360
361 - string:
362 name: gerritPatchsetNumber
363 default: '$GERRIT_PATCHSET_NUMBER'
364 description: 'PatchSet number in Gerrit'
365
366 - string:
367 name: cordRepoUrl
368 default: '{gerrit-server-url}'
369 description: 'The URL of the CORD Project repository'
370
371 - string:
372 name: podName
373 default: '{config-pod}'
374
375 - string:
376 name: deploymentConfigFile
377 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
378 description: 'Path of deployment config file'
379
380 - string:
381 name: kindVolthaValuesFile
382 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
383 description: 'Path of kind-voltha values override file'
384
385 - string:
386 name: sadisConfigFile
387 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
388 description: 'Path of SADIS config to load'
389
390 - string:
391 name: localConfigDir
392 default: null
393 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
394
395 - string:
396 name: configRepo
397 default: 'pod-configs'
398 description: 'A repository containing the config files, will be checked out if specified'
399
400 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700401 name: oltDebVersionMaster
402 default: '{oltDebVersionMaster}'
403 description: 'OLT Software version to install for master branch builds'
404
405 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700406 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700407 default: '{oltDebVersionVoltha23}'
408 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700409
410 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700411 name: profile
412 default: '{profile}'
413 description: 'Technology Profile pushed to the ETCD'
414
415 - string:
416 name: notificationEmail
417 default: 'andy@opennetworking.org'
418 description: ''
419
420 - bool:
421 name: reinstallOlt
422 default: true
423 description: "Re-install OLT software"
424
Zack Williams03ebb272020-03-27 09:42:33 -0700425 - string:
426 name: manualBranch
427 default: '{manualBranch}'
428 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700429
430 - string:
431 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700432 default: '{default-test-args}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700433 description: 'Arguments to pass to robot'
434
435 project-type: pipeline
436 concurrent: true
437
438 dsl: !include-raw-escape: pipeline/{pipeline-script}
439
440 triggers:
441 - gerrit:
442 server-name: '{gerrit-server-name}'
443 dependency-jobs: '{dependency-jobs}'
444 silent-start: false
445 successful-message: "PASSED hardware test"
446 failure-message: "FAILED hardware test"
447 unstable-message: "UNSTABLE hardware test"
448 trigger-on:
449 - comment-added-event:
450 approval-category: 'Code-Review'
451 approval-value: '+2'
452 projects:
453 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700454 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700455 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700456 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700457 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700458
459
460- job-template:
461 name: '{name}'
462 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700463 description: |
464 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700465 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700466 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700467 Created by Andy Bavier, andy@opennetworking.org <br />
468 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700469 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700470 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700471 trigger-string: 'hardware test'
472 default-test-args: '-i sanityORDeleteOLT -X'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700473
474 properties:
475 - cord-infra-properties:
476 build-days-to-keep: '{build-days-to-keep}'
477 artifact-num-to-keep: '{artifact-num-to-keep}'
478
479 parameters:
480 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700481 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700482 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700483 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700484
485 - string:
486 name: manifestUrl
487 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
488 description: 'URL to the repo manifest'
489
490 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700491 name: branch
492 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700493 description: 'Name of the repo branch to use'
494
495 - string:
496 name: gerritProject
497 default: '$GERRIT_PROJECT'
498 description: 'Name of the Gerrit project'
499
500 - string:
501 name: gerritChangeNumber
502 default: '$GERRIT_CHANGE_NUMBER'
503 description: 'Changeset number in Gerrit'
504
505 - string:
506 name: gerritPatchsetNumber
507 default: '$GERRIT_PATCHSET_NUMBER'
508 description: 'PatchSet number in Gerrit'
509
510 - string:
511 name: cordRepoUrl
512 default: '{gerrit-server-url}'
513 description: 'The URL of the CORD Project repository'
514
515 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700516 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700517 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700518
519 - string:
520 name: deploymentConfigFile
521 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
522 description: 'Path of deployment config file'
523
524 - string:
525 name: kindVolthaValuesFile
526 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
527 description: 'Path of kind-voltha values override file'
528
529 - string:
530 name: sadisConfigFile
531 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
532 description: 'Path of SADIS config to load'
533
534 - string:
535 name: localConfigDir
536 default: null
537 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
538
539 - string:
540 name: configRepo
541 default: 'pod-configs'
542 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700543
544 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700545 name: oltDebVersionMaster
546 default: '{oltDebVersionMaster}'
547 description: 'OLT Software version to install for master branch builds'
548
549 - string:
550 name: oltDebVersionVoltha23
551 default: '{oltDebVersionVoltha23}'
552 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700553
554 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700555 name: profile
556 default: '{profile}'
557 description: 'Technology Profile pushed to the ETCD'
558
559 - string:
560 name: notificationEmail
561 default: 'andy@opennetworking.org'
562 description: ''
563
564 - bool:
565 name: reinstallOlt
566 default: true
567 description: "Re-install OLT software"
568
Zack Williams03ebb272020-03-27 09:42:33 -0700569 - string:
570 name: manualBranch
571 default: '{manualBranch}'
572 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700573
Andy Bavier8c11d462019-12-17 08:19:34 -0700574 - string:
575 name: extraRobotArgs
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700576 default: '{default-test-args}'
Andy Bavier8c11d462019-12-17 08:19:34 -0700577 description: 'Arguments to pass to robot'
578
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700579 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700580 concurrent: true
581
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700582 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700583
Andy Bavier1f465592019-11-06 10:03:56 -0700584 triggers:
585 - gerrit:
586 server-name: '{gerrit-server-name}'
587 dependency-jobs: '{dependency-jobs}'
588 silent-start: false
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700589 successful-message: "PASSED {trigger-string}"
590 failure-message: "FAILED {trigger-string}"
591 unstable-message: "UNSTABLE {trigger-string}"
Andy Bavier1f465592019-11-06 10:03:56 -0700592 trigger-on:
593 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700594 comment-contains-value: '^{trigger-string}$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800595 - comment-added-contains-event:
Andy Bavierd83bf3a2020-08-13 14:55:07 -0700596 comment-contains-value: '^{trigger-string} with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700597 projects:
598 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700599 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 -0700600 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700601 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700602 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700603
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700604
605- job-template:
606 name: '{name}'
607 id: build_physical_voltha_manual
608 description: |
609 <!-- Managed by Jenkins Job Builder -->
610 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
611 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
612 Created by Andy Bavier, andy@opennetworking.org <br />
613 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700614 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700615 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700616
617 properties:
618 - cord-infra-properties:
619 build-days-to-keep: '{build-days-to-keep}'
620 artifact-num-to-keep: '{artifact-num-to-keep}'
621
622 parameters:
623 - string:
624 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700625 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700626 description: 'Pod management node'
627
628 - string:
629 name: manifestUrl
630 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
631 description: 'URL to the repo manifest'
632
633 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700634 name: branch
635 default: "$GERRIT_BRANCH"
636 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700637
638 - string:
639 name: gerritProject
640 default: '$GERRIT_PROJECT'
641 description: 'Name of the Gerrit project'
642
643 - string:
644 name: gerritChangeNumber
645 default: '$GERRIT_CHANGE_NUMBER'
646 description: 'Changeset number in Gerrit'
647
648 - string:
649 name: gerritPatchsetNumber
650 default: '$GERRIT_PATCHSET_NUMBER'
651 description: 'PatchSet number in Gerrit'
652
653 - string:
654 name: cordRepoUrl
655 default: '{gerrit-server-url}'
656 description: 'The URL of the CORD Project repository'
657
658 - string:
659 name: podName
660 default: '{config-pod}'
661
662 - string:
663 name: deploymentConfigFile
664 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
665 description: 'Path of deployment config file'
666
667 - string:
668 name: kindVolthaValuesFile
669 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
670 description: 'Path of kind-voltha values override file'
671
672 - string:
673 name: sadisConfigFile
674 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
675 description: 'Path of SADIS config to load'
676
677 - string:
678 name: localConfigDir
679 default: null
680 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
681
682 - string:
683 name: configRepo
684 default: 'pod-configs'
685 description: 'A repository containing the config files, will be checked out if specified'
686
687 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700688 name: oltDebVersionMaster
689 default: '{oltDebVersionMaster}'
690 description: 'OLT Software version to install for master branch builds'
691
692 - string:
693 name: oltDebVersionVoltha23
694 default: '{oltDebVersionVoltha23}'
695 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700696
697 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700698 name: profile
699 default: '{profile}'
700 description: 'Technology Profile pushed to the ETCD'
701
702 - string:
703 name: notificationEmail
704 default: 'andy@opennetworking.org'
705 description: ''
706
707 - bool:
708 name: reinstallOlt
709 default: false
710 description: "Re-install OLT software"
711
Zack Williams03ebb272020-03-27 09:42:33 -0700712 - string:
713 name: manualBranch
714 default: '{manualBranch}'
715 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700716
Andy Bavier8c11d462019-12-17 08:19:34 -0700717 - string:
718 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700719 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700720 description: 'Arguments to pass to robot'
721
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700722 project-type: pipeline
723 concurrent: true
724
725 dsl: !include-raw-escape: pipeline/{pipeline-script}