blob: 60b95063f5e018ed610103fdc00754536b56e4ce [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 Bavierabe6fb22020-06-25 09:10:58 -070091 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
92 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 Bavierabe6fb22020-06-25 09:10:58 -0700100 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
101 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700102 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700103
104 # Manual build job for Tucson pod
105 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700106 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700107 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700108 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700109 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700110 manualBranch: 'master'
Andy Bavierabe6fb22020-06-25 09:10:58 -0700111 oltDebVersionMaster: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
112 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700113 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700114
Kailash8b8de742019-07-30 08:54:51 -0700115- job-template:
Kailashaad71012019-08-27 10:36:53 -0700116 id: 'voltha-periodic-test'
117 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700118 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700119 test-runs: 1
120 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700121 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700122 work-flow: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700123 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700124
Kailash8b8de742019-07-30 08:54:51 -0700125 description: |
126 <!-- Managed by Jenkins Job Builder -->
127 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
128 E2E Validation for Voltha 2.X
129
130 properties:
131 - cord-infra-properties:
132 build-days-to-keep: '{build-days-to-keep}'
133 artifact-num-to-keep: '{artifact-num-to-keep}'
134
135 wrappers:
136 - lf-infra-wrappers:
137 build-timeout: '{build-timeout}'
138 jenkins-ssh-credential: '{jenkins-ssh-credential}'
139
140 parameters:
141 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700142 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700143 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700144 description: 'Name of the Jenkins node to run the job on'
145
146 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700147 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700148 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700149 description: 'Helm flags to pass to ./voltha up'
150
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700151 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700152 name: makeTarget
153 default: '{make-target}'
154 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700155
Andy Bavier4c8b3232019-11-22 16:17:47 -0700156 - string:
157 name: manifestUrl
158 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700159 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700160
161 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700162 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700163 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700164 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700165
Andy Bavier3708d072019-12-10 15:22:18 -0700166 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700167 name: gerritProject
168 default: '{gerrit-project}'
169 description: 'Name of the Gerrit project'
170
171 - string:
172 name: gerritChangeNumber
173 default: ''
174 description: 'Changeset number in Gerrit'
175
176 - string:
177 name: gerritPatchsetNumber
178 default: ''
179 description: 'PatchSet number in Gerrit'
180
181 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700182 name: testRuns
183 default: '{test-runs}'
184 description: 'How many times to repeat the tests'
185
186 - string:
187 name: extraRobotArgs
188 default: '{robot-args}'
189 description: 'Arguments to pass to robot'
190
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700191 - string:
192 name: workFlow
193 default: '{work-flow}'
194 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700195
pierventref48ebc12020-07-17 16:01:32 +0200196 - string:
197 name: karafHome
198 default: '{karaf-home}'
199 description: 'Karaf home'
200
Kailash8b8de742019-07-30 08:54:51 -0700201 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700202 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700203
Zack Williamsb3292082019-10-11 17:15:18 -0700204 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700205
206 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700207 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700208 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700209 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700210
211- job-template:
212 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800213 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700214 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700215 sandbox: true
Kailashaad71012019-08-27 10:36:53 -0700216
217 description: |
218 <!-- Managed by Jenkins Job Builder -->
219 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
220 E2E Validation for Voltha 2.X
221
222 properties:
223 - cord-infra-properties:
224 build-days-to-keep: '{build-days-to-keep}'
225 artifact-num-to-keep: '{artifact-num-to-keep}'
226
227 wrappers:
228 - lf-infra-wrappers:
229 build-timeout: '{build-timeout}'
230 jenkins-ssh-credential: '{jenkins-ssh-credential}'
231
232 parameters:
233 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700234 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700235 default: 'ubuntu16.04-basebuild-4c-8g'
236 description: 'Name of the Jenkins node to run the job on'
237
238 - string:
239 name: manifestUrl
240 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
241 description: 'URL to the repo manifest'
242
243 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700244 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700245 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700246 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700247
248 - string:
hwchiu14f97852019-10-08 10:51:11 -0700249 name: gerritProject
250 default: '$GERRIT_PROJECT'
251 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700252
253 - string:
hwchiu14f97852019-10-08 10:51:11 -0700254 name: gerritChangeNumber
255 default: '$GERRIT_CHANGE_NUMBER'
256 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700257
258 - string:
hwchiu14f97852019-10-08 10:51:11 -0700259 name: gerritPatchsetNumber
260 default: '$GERRIT_PATCHSET_NUMBER'
261 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700262
263 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700264 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700265 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700266 description: 'Helm flags to pass to ./voltha up'
267
Kailashaad71012019-08-27 10:36:53 -0700268 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700269 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700270
Zack Williamsb3292082019-10-11 17:15:18 -0700271 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700272
273 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700274 - gerrit:
275 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700276 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700277 silent-start: true
278 trigger-on:
279 - patchset-created-event:
280 exclude-drafts: true
281 exclude-trivial-rebase: false
282 exclude-no-code-change: true
283 - draft-published-event
284 - comment-added-contains-event:
285 comment-contains-value: '(?i)^.*recheck$'
286 projects:
287 - project-compare-type: REG_EXP
288 project-pattern: '^{project}$'
289 branches:
290 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700291 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700292 file-paths:
293 - compare-type: REG_EXP
294 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700295
296# POD Per Patchset Pipeline Jobs
297
298- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700299 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700300 id: verify_physical_voltha_patchset_auto
301 description: |
302 <!-- Managed by Jenkins Job Builder -->
303 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
304 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
305 Created by Andy Bavier, andy@opennetworking.org <br />
306 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700307 sandbox: true
308 pipeline-script: 'voltha-physical-build-and-tests.groovy'
309
310 properties:
311 - cord-infra-properties:
312 build-days-to-keep: '{build-days-to-keep}'
313 artifact-num-to-keep: '{artifact-num-to-keep}'
314
315 parameters:
316 - string:
317 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700318 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700319 description: 'Pod management node'
320
321 - string:
322 name: manifestUrl
323 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
324 description: 'URL to the repo manifest'
325
326 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700327 name: branch
328 default: '$GERRIT_BRANCH'
329 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700330
331 - string:
332 name: gerritProject
333 default: '$GERRIT_PROJECT'
334 description: 'Name of the Gerrit project'
335
336 - string:
337 name: gerritChangeNumber
338 default: '$GERRIT_CHANGE_NUMBER'
339 description: 'Changeset number in Gerrit'
340
341 - string:
342 name: gerritPatchsetNumber
343 default: '$GERRIT_PATCHSET_NUMBER'
344 description: 'PatchSet number in Gerrit'
345
346 - string:
347 name: cordRepoUrl
348 default: '{gerrit-server-url}'
349 description: 'The URL of the CORD Project repository'
350
351 - string:
352 name: podName
353 default: '{config-pod}'
354
355 - string:
356 name: deploymentConfigFile
357 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
358 description: 'Path of deployment config file'
359
360 - string:
361 name: kindVolthaValuesFile
362 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
363 description: 'Path of kind-voltha values override file'
364
365 - string:
366 name: sadisConfigFile
367 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
368 description: 'Path of SADIS config to load'
369
370 - string:
371 name: localConfigDir
372 default: null
373 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
374
375 - string:
376 name: configRepo
377 default: 'pod-configs'
378 description: 'A repository containing the config files, will be checked out if specified'
379
380 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700381 name: oltDebVersionMaster
382 default: '{oltDebVersionMaster}'
383 description: 'OLT Software version to install for master branch builds'
384
385 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700386 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700387 default: '{oltDebVersionVoltha23}'
388 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700389
390 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700391 name: profile
392 default: '{profile}'
393 description: 'Technology Profile pushed to the ETCD'
394
395 - string:
396 name: notificationEmail
397 default: 'andy@opennetworking.org'
398 description: ''
399
400 - bool:
401 name: reinstallOlt
402 default: true
403 description: "Re-install OLT software"
404
Zack Williams03ebb272020-03-27 09:42:33 -0700405 - string:
406 name: manualBranch
407 default: '{manualBranch}'
408 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700409
410 - string:
411 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700412 default: '-i sanityORDeleteOLT -X'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700413 description: 'Arguments to pass to robot'
414
415 project-type: pipeline
416 concurrent: true
417
418 dsl: !include-raw-escape: pipeline/{pipeline-script}
419
420 triggers:
421 - gerrit:
422 server-name: '{gerrit-server-name}'
423 dependency-jobs: '{dependency-jobs}'
424 silent-start: false
425 successful-message: "PASSED hardware test"
426 failure-message: "FAILED hardware test"
427 unstable-message: "UNSTABLE hardware test"
428 trigger-on:
429 - comment-added-event:
430 approval-category: 'Code-Review'
431 approval-value: '+2'
432 projects:
433 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700434 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700435 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700436 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700437 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700438
439
440- job-template:
441 name: '{name}'
442 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700443 description: |
444 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700445 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700446 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700447 Created by Andy Bavier, andy@opennetworking.org <br />
448 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700449 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700450 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700451
452 properties:
453 - cord-infra-properties:
454 build-days-to-keep: '{build-days-to-keep}'
455 artifact-num-to-keep: '{artifact-num-to-keep}'
456
457 parameters:
458 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700459 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700460 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700461 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700462
463 - string:
464 name: manifestUrl
465 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
466 description: 'URL to the repo manifest'
467
468 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700469 name: branch
470 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700471 description: 'Name of the repo branch to use'
472
473 - string:
474 name: gerritProject
475 default: '$GERRIT_PROJECT'
476 description: 'Name of the Gerrit project'
477
478 - string:
479 name: gerritChangeNumber
480 default: '$GERRIT_CHANGE_NUMBER'
481 description: 'Changeset number in Gerrit'
482
483 - string:
484 name: gerritPatchsetNumber
485 default: '$GERRIT_PATCHSET_NUMBER'
486 description: 'PatchSet number in Gerrit'
487
488 - string:
489 name: cordRepoUrl
490 default: '{gerrit-server-url}'
491 description: 'The URL of the CORD Project repository'
492
493 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700494 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700495 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700496
497 - string:
498 name: deploymentConfigFile
499 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
500 description: 'Path of deployment config file'
501
502 - string:
503 name: kindVolthaValuesFile
504 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
505 description: 'Path of kind-voltha values override file'
506
507 - string:
508 name: sadisConfigFile
509 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
510 description: 'Path of SADIS config to load'
511
512 - string:
513 name: localConfigDir
514 default: null
515 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
516
517 - string:
518 name: configRepo
519 default: 'pod-configs'
520 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700521
522 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700523 name: oltDebVersionMaster
524 default: '{oltDebVersionMaster}'
525 description: 'OLT Software version to install for master branch builds'
526
527 - string:
528 name: oltDebVersionVoltha23
529 default: '{oltDebVersionVoltha23}'
530 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700531
532 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700533 name: profile
534 default: '{profile}'
535 description: 'Technology Profile pushed to the ETCD'
536
537 - string:
538 name: notificationEmail
539 default: 'andy@opennetworking.org'
540 description: ''
541
542 - bool:
543 name: reinstallOlt
544 default: true
545 description: "Re-install OLT software"
546
Zack Williams03ebb272020-03-27 09:42:33 -0700547 - string:
548 name: manualBranch
549 default: '{manualBranch}'
550 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700551
Andy Bavier8c11d462019-12-17 08:19:34 -0700552 - string:
553 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700554 default: '-i sanityORDeleteOLT -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700555 description: 'Arguments to pass to robot'
556
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700557 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700558 concurrent: true
559
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700560 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700561
Andy Bavier1f465592019-11-06 10:03:56 -0700562 triggers:
563 - gerrit:
564 server-name: '{gerrit-server-name}'
565 dependency-jobs: '{dependency-jobs}'
566 silent-start: false
567 successful-message: "PASSED hardware test"
568 failure-message: "FAILED hardware test"
569 unstable-message: "UNSTABLE hardware test"
570 trigger-on:
571 - comment-added-contains-event:
572 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800573 - comment-added-contains-event:
574 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700575 projects:
576 - project-compare-type: REG_EXP
Andy Bavierc1cb94b2020-06-04 16:39:32 -0700577 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 -0700578 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700579 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700580 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700581
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700582
583- job-template:
584 name: '{name}'
585 id: build_physical_voltha_manual
586 description: |
587 <!-- Managed by Jenkins Job Builder -->
588 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
589 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
590 Created by Andy Bavier, andy@opennetworking.org <br />
591 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700592 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700593 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700594
595 properties:
596 - cord-infra-properties:
597 build-days-to-keep: '{build-days-to-keep}'
598 artifact-num-to-keep: '{artifact-num-to-keep}'
599
600 parameters:
601 - string:
602 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700603 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700604 description: 'Pod management node'
605
606 - string:
607 name: manifestUrl
608 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
609 description: 'URL to the repo manifest'
610
611 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700612 name: branch
613 default: "$GERRIT_BRANCH"
614 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700615
616 - string:
617 name: gerritProject
618 default: '$GERRIT_PROJECT'
619 description: 'Name of the Gerrit project'
620
621 - string:
622 name: gerritChangeNumber
623 default: '$GERRIT_CHANGE_NUMBER'
624 description: 'Changeset number in Gerrit'
625
626 - string:
627 name: gerritPatchsetNumber
628 default: '$GERRIT_PATCHSET_NUMBER'
629 description: 'PatchSet number in Gerrit'
630
631 - string:
632 name: cordRepoUrl
633 default: '{gerrit-server-url}'
634 description: 'The URL of the CORD Project repository'
635
636 - string:
637 name: podName
638 default: '{config-pod}'
639
640 - string:
641 name: deploymentConfigFile
642 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
643 description: 'Path of deployment config file'
644
645 - string:
646 name: kindVolthaValuesFile
647 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
648 description: 'Path of kind-voltha values override file'
649
650 - string:
651 name: sadisConfigFile
652 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
653 description: 'Path of SADIS config to load'
654
655 - string:
656 name: localConfigDir
657 default: null
658 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
659
660 - string:
661 name: configRepo
662 default: 'pod-configs'
663 description: 'A repository containing the config files, will be checked out if specified'
664
665 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700666 name: oltDebVersionMaster
667 default: '{oltDebVersionMaster}'
668 description: 'OLT Software version to install for master branch builds'
669
670 - string:
671 name: oltDebVersionVoltha23
672 default: '{oltDebVersionVoltha23}'
673 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700674
675 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700676 name: profile
677 default: '{profile}'
678 description: 'Technology Profile pushed to the ETCD'
679
680 - string:
681 name: notificationEmail
682 default: 'andy@opennetworking.org'
683 description: ''
684
685 - bool:
686 name: reinstallOlt
687 default: false
688 description: "Re-install OLT software"
689
Zack Williams03ebb272020-03-27 09:42:33 -0700690 - string:
691 name: manualBranch
692 default: '{manualBranch}'
693 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700694
Andy Bavier8c11d462019-12-17 08:19:34 -0700695 - string:
696 name: extraRobotArgs
Andy Bavierd2b25fe2020-06-09 07:22:00 -0700697 default: '-e bbsim -X'
Andy Bavier8c11d462019-12-17 08:19:34 -0700698 description: 'Arguments to pass to robot'
699
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700700 project-type: pipeline
701 concurrent: true
702
703 dsl: !include-raw-escape: pipeline/{pipeline-script}