blob: 48298adf12e6ef14b83f4494ba55022536737e1d [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 * * *"
Andy Bavier10926f12020-03-27 16:53:43 -070074
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -070075 - 'voltha-periodic-test':
76 name: 'nightly-voltha-DTflow-sanity-test'
77 build-node: 'ubuntu16.04-basebuild-4c-8g'
78 code-branch: 'master'
79 make-target: sanity-kind-dt
80 onus: 1
81 pons: 1
82 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -070083 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -070084
Andy Bavierbf68c5e2019-10-25 15:05:28 -070085 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -070086 - 'verify_physical_voltha_patchset_auto':
87 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -070088 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -070089 config-pod: 'tucson-pod'
Andy Bavierabe6fb22020-06-25 09:10:58 -070090 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
91 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -070092 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -070093
94 # Per-patchset Pod builds on Tucson pod
95 - 'verify_physical_voltha_patchset_manual':
96 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -070097 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070098 config-pod: 'tucson-pod'
Andy Bavierabe6fb22020-06-25 09:10:58 -070099 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
100 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700101 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700102
103 # Manual build job for Tucson pod
104 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700105 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700106 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700107 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700108 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700109 manualBranch: 'master'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700110 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
111 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700112 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700113
Kailash8b8de742019-07-30 08:54:51 -0700114- job-template:
Kailashaad71012019-08-27 10:36:53 -0700115 id: 'voltha-periodic-test'
116 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700117 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700118 test-runs: 1
119 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700120 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700121 work-flow: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700122 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700123
Kailash8b8de742019-07-30 08:54:51 -0700124 description: |
125 <!-- Managed by Jenkins Job Builder -->
126 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
127 E2E Validation for Voltha 2.X
128
129 properties:
130 - cord-infra-properties:
131 build-days-to-keep: '{build-days-to-keep}'
132 artifact-num-to-keep: '{artifact-num-to-keep}'
133
134 wrappers:
135 - lf-infra-wrappers:
136 build-timeout: '{build-timeout}'
137 jenkins-ssh-credential: '{jenkins-ssh-credential}'
138
139 parameters:
140 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700141 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700142 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700143 description: 'Name of the Jenkins node to run the job on'
144
145 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700146 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700147 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700148 description: 'Helm flags to pass to ./voltha up'
149
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700150 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700151 name: makeTarget
152 default: '{make-target}'
153 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700154
Andy Bavier4c8b3232019-11-22 16:17:47 -0700155 - string:
156 name: manifestUrl
157 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700158 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700159
160 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700161 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700162 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700163 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700164
Andy Bavier3708d072019-12-10 15:22:18 -0700165 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700166 name: gerritProject
167 default: '{gerrit-project}'
168 description: 'Name of the Gerrit project'
169
170 - string:
171 name: gerritChangeNumber
172 default: ''
173 description: 'Changeset number in Gerrit'
174
175 - string:
176 name: gerritPatchsetNumber
177 default: ''
178 description: 'PatchSet number in Gerrit'
179
180 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700181 name: testRuns
182 default: '{test-runs}'
183 description: 'How many times to repeat the tests'
184
185 - string:
186 name: extraRobotArgs
187 default: '{robot-args}'
188 description: 'Arguments to pass to robot'
189
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700190 - string:
191 name: workFlow
192 default: '{work-flow}'
193 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700194
pierventref48ebc12020-07-17 16:01:32 +0200195 - string:
196 name: karafHome
197 default: '{karaf-home}'
198 description: 'Karaf home'
199
Kailash8b8de742019-07-30 08:54:51 -0700200 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700201 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700202
Zack Williamsb3292082019-10-11 17:15:18 -0700203 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700204
205 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700206 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700207 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700208 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700209
210- job-template:
211 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800212 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700213 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700214 sandbox: true
Kailashaad71012019-08-27 10:36:53 -0700215
216 description: |
217 <!-- Managed by Jenkins Job Builder -->
218 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
219 E2E Validation for Voltha 2.X
220
221 properties:
222 - cord-infra-properties:
223 build-days-to-keep: '{build-days-to-keep}'
224 artifact-num-to-keep: '{artifact-num-to-keep}'
225
226 wrappers:
227 - lf-infra-wrappers:
228 build-timeout: '{build-timeout}'
229 jenkins-ssh-credential: '{jenkins-ssh-credential}'
230
231 parameters:
232 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700233 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700234 default: 'ubuntu16.04-basebuild-4c-8g'
235 description: 'Name of the Jenkins node to run the job on'
236
237 - string:
238 name: manifestUrl
239 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
240 description: 'URL to the repo manifest'
241
242 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700243 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700244 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700245 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700246
247 - string:
hwchiu14f97852019-10-08 10:51:11 -0700248 name: gerritProject
249 default: '$GERRIT_PROJECT'
250 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700251
252 - string:
hwchiu14f97852019-10-08 10:51:11 -0700253 name: gerritChangeNumber
254 default: '$GERRIT_CHANGE_NUMBER'
255 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700256
257 - string:
hwchiu14f97852019-10-08 10:51:11 -0700258 name: gerritPatchsetNumber
259 default: '$GERRIT_PATCHSET_NUMBER'
260 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700261
262 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700263 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700264 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700265 description: 'Helm flags to pass to ./voltha up'
266
Kailashaad71012019-08-27 10:36:53 -0700267 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700268 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700269
Zack Williamsb3292082019-10-11 17:15:18 -0700270 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700271
272 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700273 - gerrit:
274 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700275 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700276 silent-start: true
277 trigger-on:
278 - patchset-created-event:
279 exclude-drafts: true
280 exclude-trivial-rebase: false
281 exclude-no-code-change: true
282 - draft-published-event
283 - comment-added-contains-event:
284 comment-contains-value: '(?i)^.*recheck$'
285 projects:
286 - project-compare-type: REG_EXP
287 project-pattern: '^{project}$'
288 branches:
289 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700290 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700291 file-paths:
292 - compare-type: REG_EXP
293 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700294
295# POD Per Patchset Pipeline Jobs
296
297- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700298 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700299 id: verify_physical_voltha_patchset_auto
300 description: |
301 <!-- Managed by Jenkins Job Builder -->
302 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
303 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
304 Created by Andy Bavier, andy@opennetworking.org <br />
305 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700306 sandbox: true
307 pipeline-script: 'voltha-physical-build-and-tests.groovy'
308
309 properties:
310 - cord-infra-properties:
311 build-days-to-keep: '{build-days-to-keep}'
312 artifact-num-to-keep: '{artifact-num-to-keep}'
313
314 parameters:
315 - string:
316 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700317 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700318 description: 'Pod management node'
319
320 - string:
321 name: manifestUrl
322 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
323 description: 'URL to the repo manifest'
324
325 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700326 name: branch
327 default: '$GERRIT_BRANCH'
328 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700329
330 - string:
331 name: gerritProject
332 default: '$GERRIT_PROJECT'
333 description: 'Name of the Gerrit project'
334
335 - string:
336 name: gerritChangeNumber
337 default: '$GERRIT_CHANGE_NUMBER'
338 description: 'Changeset number in Gerrit'
339
340 - string:
341 name: gerritPatchsetNumber
342 default: '$GERRIT_PATCHSET_NUMBER'
343 description: 'PatchSet number in Gerrit'
344
345 - string:
346 name: cordRepoUrl
347 default: '{gerrit-server-url}'
348 description: 'The URL of the CORD Project repository'
349
350 - string:
351 name: podName
352 default: '{config-pod}'
353
354 - string:
355 name: deploymentConfigFile
356 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
357 description: 'Path of deployment config file'
358
359 - string:
360 name: kindVolthaValuesFile
361 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
362 description: 'Path of kind-voltha values override file'
363
364 - string:
365 name: sadisConfigFile
366 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
367 description: 'Path of SADIS config to load'
368
369 - string:
370 name: localConfigDir
371 default: null
372 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
373
374 - string:
375 name: configRepo
376 default: 'pod-configs'
377 description: 'A repository containing the config files, will be checked out if specified'
378
379 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700380 name: oltDebVersionMaster
381 default: '{oltDebVersionMaster}'
382 description: 'OLT Software version to install for master branch builds'
383
384 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700385 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700386 default: '{oltDebVersionVoltha23}'
387 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700388
389 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700390 name: profile
391 default: '{profile}'
392 description: 'Technology Profile pushed to the ETCD'
393
394 - string:
395 name: notificationEmail
396 default: 'andy@opennetworking.org'
397 description: ''
398
399 - bool:
400 name: reinstallOlt
401 default: true
402 description: "Re-install OLT software"
403
Zack Williams03ebb272020-03-27 09:42:33 -0700404 - string:
405 name: manualBranch
406 default: '{manualBranch}'
407 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700408
409 - string:
410 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700411 default: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700412 description: 'Arguments to pass to robot'
413
414 project-type: pipeline
415 concurrent: true
416
417 dsl: !include-raw-escape: pipeline/{pipeline-script}
418
419 triggers:
420 - gerrit:
421 server-name: '{gerrit-server-name}'
422 dependency-jobs: '{dependency-jobs}'
423 silent-start: false
424 successful-message: "PASSED hardware test"
425 failure-message: "FAILED hardware test"
426 unstable-message: "UNSTABLE hardware test"
427 trigger-on:
428 - comment-added-event:
429 approval-category: 'Code-Review'
430 approval-value: '+2'
431 projects:
432 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700433 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700434 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700435 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700436 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700437
438
439- job-template:
440 name: '{name}'
441 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700442 description: |
443 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700444 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700445 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700446 Created by Andy Bavier, andy@opennetworking.org <br />
447 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700448 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700449 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700450
451 properties:
452 - cord-infra-properties:
453 build-days-to-keep: '{build-days-to-keep}'
454 artifact-num-to-keep: '{artifact-num-to-keep}'
455
456 parameters:
457 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700458 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700459 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700460 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700461
462 - string:
463 name: manifestUrl
464 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
465 description: 'URL to the repo manifest'
466
467 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700468 name: branch
469 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700470 description: 'Name of the repo branch to use'
471
472 - string:
473 name: gerritProject
474 default: '$GERRIT_PROJECT'
475 description: 'Name of the Gerrit project'
476
477 - string:
478 name: gerritChangeNumber
479 default: '$GERRIT_CHANGE_NUMBER'
480 description: 'Changeset number in Gerrit'
481
482 - string:
483 name: gerritPatchsetNumber
484 default: '$GERRIT_PATCHSET_NUMBER'
485 description: 'PatchSet number in Gerrit'
486
487 - string:
488 name: cordRepoUrl
489 default: '{gerrit-server-url}'
490 description: 'The URL of the CORD Project repository'
491
492 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700493 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700494 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700495
496 - string:
497 name: deploymentConfigFile
498 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
499 description: 'Path of deployment config file'
500
501 - string:
502 name: kindVolthaValuesFile
503 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
504 description: 'Path of kind-voltha values override file'
505
506 - string:
507 name: sadisConfigFile
508 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
509 description: 'Path of SADIS config to load'
510
511 - string:
512 name: localConfigDir
513 default: null
514 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
515
516 - string:
517 name: configRepo
518 default: 'pod-configs'
519 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700520
521 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700522 name: oltDebVersionMaster
523 default: '{oltDebVersionMaster}'
524 description: 'OLT Software version to install for master branch builds'
525
526 - string:
527 name: oltDebVersionVoltha23
528 default: '{oltDebVersionVoltha23}'
529 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700530
531 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700532 name: profile
533 default: '{profile}'
534 description: 'Technology Profile pushed to the ETCD'
535
536 - string:
537 name: notificationEmail
538 default: 'andy@opennetworking.org'
539 description: ''
540
541 - bool:
542 name: reinstallOlt
543 default: true
544 description: "Re-install OLT software"
545
Zack Williams03ebb272020-03-27 09:42:33 -0700546 - string:
547 name: manualBranch
548 default: '{manualBranch}'
549 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700550
Andy Bavier8c11d462019-12-17 08:19:34 -0700551 - string:
552 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700553 default: '-i sanityORDeleteOLT -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700554 description: 'Arguments to pass to robot'
555
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700556 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700557 concurrent: true
558
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700559 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700560
Andy Bavier1f465592019-11-06 10:03:56 -0700561 triggers:
562 - gerrit:
563 server-name: '{gerrit-server-name}'
564 dependency-jobs: '{dependency-jobs}'
565 silent-start: false
566 successful-message: "PASSED hardware test"
567 failure-message: "FAILED hardware test"
568 unstable-message: "UNSTABLE hardware test"
569 trigger-on:
570 - comment-added-contains-event:
571 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800572 - comment-added-contains-event:
573 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700574 projects:
575 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700576 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 -0700577 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700578 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700579 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700580
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700581
582- job-template:
583 name: '{name}'
584 id: build_physical_voltha_manual
585 description: |
586 <!-- Managed by Jenkins Job Builder -->
587 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
588 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
589 Created by Andy Bavier, andy@opennetworking.org <br />
590 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700591 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700592 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700593
594 properties:
595 - cord-infra-properties:
596 build-days-to-keep: '{build-days-to-keep}'
597 artifact-num-to-keep: '{artifact-num-to-keep}'
598
599 parameters:
600 - string:
601 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700602 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700603 description: 'Pod management node'
604
605 - string:
606 name: manifestUrl
607 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
608 description: 'URL to the repo manifest'
609
610 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700611 name: branch
612 default: "$GERRIT_BRANCH"
613 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700614
615 - string:
616 name: gerritProject
617 default: '$GERRIT_PROJECT'
618 description: 'Name of the Gerrit project'
619
620 - string:
621 name: gerritChangeNumber
622 default: '$GERRIT_CHANGE_NUMBER'
623 description: 'Changeset number in Gerrit'
624
625 - string:
626 name: gerritPatchsetNumber
627 default: '$GERRIT_PATCHSET_NUMBER'
628 description: 'PatchSet number in Gerrit'
629
630 - string:
631 name: cordRepoUrl
632 default: '{gerrit-server-url}'
633 description: 'The URL of the CORD Project repository'
634
635 - string:
636 name: podName
637 default: '{config-pod}'
638
639 - string:
640 name: deploymentConfigFile
641 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
642 description: 'Path of deployment config file'
643
644 - string:
645 name: kindVolthaValuesFile
646 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
647 description: 'Path of kind-voltha values override file'
648
649 - string:
650 name: sadisConfigFile
651 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
652 description: 'Path of SADIS config to load'
653
654 - string:
655 name: localConfigDir
656 default: null
657 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
658
659 - string:
660 name: configRepo
661 default: 'pod-configs'
662 description: 'A repository containing the config files, will be checked out if specified'
663
664 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700665 name: oltDebVersionMaster
666 default: '{oltDebVersionMaster}'
667 description: 'OLT Software version to install for master branch builds'
668
669 - string:
670 name: oltDebVersionVoltha23
671 default: '{oltDebVersionVoltha23}'
672 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700673
674 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700675 name: profile
676 default: '{profile}'
677 description: 'Technology Profile pushed to the ETCD'
678
679 - string:
680 name: notificationEmail
681 default: 'andy@opennetworking.org'
682 description: ''
683
684 - bool:
685 name: reinstallOlt
686 default: false
687 description: "Re-install OLT software"
688
Zack Williams03ebb272020-03-27 09:42:33 -0700689 - string:
690 name: manualBranch
691 default: '{manualBranch}'
692 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700693
Andy Bavier8c11d462019-12-17 08:19:34 -0700694 - string:
695 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700696 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700697 description: 'Arguments to pass to robot'
698
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700699 project-type: pipeline
700 concurrent: true
701
702 dsl: !include-raw-escape: pipeline/{pipeline-script}