blob: e25d4bed1f06a0fb7764dcee452b79e4e5fea7d6 [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':
Andy Bavier218385e2019-11-13 09:51:38 -070012 name: 'periodic-voltha-sanity-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070013 build-node: 'qct-pod4-node2'
Andy Bavier4c8b3232019-11-22 16:17:47 -070014 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070015 make-target: sanity-multi-kind
16 onus: 2
17 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -070018 time-trigger: "H H/6 * * *"
19
20 - 'voltha-periodic-test':
21 name: 'periodic-voltha-sanity-test-2.3'
22 build-node: 'qct-pod4-node2'
23 code-branch: 'voltha-2.3'
24 make-target: sanity-multi-kind
25 onus: 2
26 pons: 2
27 time-trigger: "H H/6 * * *"
Andy Bavier218385e2019-11-13 09:51:38 -070028
29 - 'voltha-periodic-test':
Andy Bavierd4ba3372020-01-21 17:01:53 -070030 name: 'periodic-voltha-functional-test'
Andy Bavierf93f3142020-01-09 16:08:51 -070031 build-node: 'qct-pod4-node2'
Andy Bavierf93f3142020-01-09 16:08:51 -070032 code-branch: 'master'
Andy Bavierd4ba3372020-01-21 17:01:53 -070033 make-target: functional-single-kind
Andy Bavierf93f3142020-01-09 16:08:51 -070034 onus: 1
35 pons: 1
Andy Bavierd4ba3372020-01-21 17:01:53 -070036 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070037
38 - 'voltha-periodic-test':
Andy Bavier10926f12020-03-27 16:53:43 -070039 name: 'periodic-voltha-functional-test-2.3'
40 build-node: 'qct-pod4-node2'
41 code-branch: 'voltha-2.3'
42 make-target: functional-single-kind
43 onus: 1
44 pons: 1
45 time-trigger: "H H/12 * * *"
46
47 - 'voltha-periodic-test':
Andy Bavier4313d102020-03-23 09:21:53 -070048 name: 'periodic-voltha-errorscenarios-test'
49 build-node: 'qct-pod4-node2'
Andy Bavier4313d102020-03-23 09:21:53 -070050 code-branch: 'master'
51 make-target: bbsim-errorscenarios
52 onus: 1
53 pons: 1
54 time-trigger: "H H/6 * * *"
55
56 - 'voltha-periodic-test':
hwchiufdc49242019-11-18 16:37:22 -080057 name: 'periodic-voltha-system-test'
58 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080059 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080060 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080061 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080062 onus: 2
63 pons: 2
64 time-trigger: "H H/12 * * *"
65
66 - 'voltha-periodic-test':
Andy Bavier10926f12020-03-27 16:53:43 -070067 name: 'periodic-voltha-system-test-2.3'
68 pipeline-script: 'voltha-system-test-bbsim.groovy'
69 build-node: 'ubuntu16.04-basebuild-4c-8g'
70 code-branch: 'voltha-2.3'
71 make-target: sanity-multi-kind
72 onus: 2
73 pons: 2
74 time-trigger: "H H/12 * * *"
75
76
77 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070078 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070079 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070080 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -070081 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070082 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070083 onus: 1
84 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070085 test-runs: 5
Andy Bavier10926f12020-03-27 16:53:43 -070086 time-trigger: "H H/6 * * *"
87
88 - 'voltha-periodic-test':
89 name: 'periodic-voltha-sanity-test-multi-runs-2.3'
90 pipeline-script: 'voltha-go-multi-tests.groovy'
91 build-node: 'qct-pod4-node2'
92 code-branch: 'voltha-2.3'
93 make-target: sanity-kind
94 onus: 1
95 pons: 1
96 test-runs: 5
97 time-trigger: "H H/6 * * *"
Andy Bavier3708d072019-12-10 15:22:18 -070098
99 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -0700100 name: 'periodic-voltha-scale-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700101 build-node: 'qct-pod4-node2'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700102 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -0700103 make-target: scale-multi-kind
104 onus: 2
105 pons: 8
Andy Bavier10926f12020-03-27 16:53:43 -0700106 time-trigger: "H H/6 * * *"
107
108 - 'voltha-periodic-test':
109 name: 'periodic-voltha-scale-test-2.3'
110 build-node: 'qct-pod4-node2'
111 code-branch: 'voltha-2.3'
112 make-target: scale-multi-kind
113 onus: 2
114 pons: 8
115 time-trigger: "H H/6 * * *"
Kailashaad71012019-08-27 10:36:53 -0700116
Andy Bavier0d1d63e2020-03-03 13:52:02 -0700117 - 'voltha-periodic-test':
118 name: 'periodic-voltha-alarm-test'
119 build-node: 'qct-pod4-node2'
Andy Bavier0d1d63e2020-03-03 13:52:02 -0700120 code-branch: 'master'
121 make-target: bbsim-alarms-kind
122 onus: 1
123 pons: 1
124 time-trigger: "H H/3 * * *"
125
Andy Bavier10926f12020-03-27 16:53:43 -0700126 - 'voltha-periodic-test':
127 name: 'periodic-voltha-alarm-test-2.3'
128 build-node: 'qct-pod4-node2'
129 code-branch: 'voltha-2.3'
130 make-target: bbsim-alarms-kind
131 onus: 1
132 pons: 1
133 time-trigger: "H H/3 * * *"
134
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700135 - 'voltha-periodic-test':
136 name: 'nightly-voltha-DTflow-sanity-test'
137 build-node: 'ubuntu16.04-basebuild-4c-8g'
138 code-branch: 'master'
139 make-target: sanity-kind-dt
140 onus: 1
141 pons: 1
142 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700143 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700144
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700145 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700146 - 'verify_physical_voltha_patchset_auto':
147 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700148 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700149 config-pod: 'tucson-pod'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700150 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700151 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700152
153 # Per-patchset Pod builds on Tucson pod
154 - 'verify_physical_voltha_patchset_manual':
155 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700156 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700157 config-pod: 'tucson-pod'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700158 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700159 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700160
161 # Manual build job for Tucson pod
162 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700163 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700164 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700165 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700166 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700167 manualBranch: 'master'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700168 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700169 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700170
Kailash8b8de742019-07-30 08:54:51 -0700171- job-template:
Kailashaad71012019-08-27 10:36:53 -0700172 id: 'voltha-periodic-test'
173 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700174 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700175 test-runs: 1
176 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700177 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700178 work-flow: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700179
Kailash8b8de742019-07-30 08:54:51 -0700180 description: |
181 <!-- Managed by Jenkins Job Builder -->
182 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
183 E2E Validation for Voltha 2.X
184
185 properties:
186 - cord-infra-properties:
187 build-days-to-keep: '{build-days-to-keep}'
188 artifact-num-to-keep: '{artifact-num-to-keep}'
189
190 wrappers:
191 - lf-infra-wrappers:
192 build-timeout: '{build-timeout}'
193 jenkins-ssh-credential: '{jenkins-ssh-credential}'
194
195 parameters:
196 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700197 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700198 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700199 description: 'Name of the Jenkins node to run the job on'
200
201 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700202 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700203 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700204 description: 'Helm flags to pass to ./voltha up'
205
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700206 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700207 name: makeTarget
208 default: '{make-target}'
209 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700210
Andy Bavier4c8b3232019-11-22 16:17:47 -0700211 - string:
212 name: manifestUrl
213 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700214 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700215
216 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700217 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700218 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700219 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700220
Andy Bavier3708d072019-12-10 15:22:18 -0700221 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700222 name: gerritProject
223 default: '{gerrit-project}'
224 description: 'Name of the Gerrit project'
225
226 - string:
227 name: gerritChangeNumber
228 default: ''
229 description: 'Changeset number in Gerrit'
230
231 - string:
232 name: gerritPatchsetNumber
233 default: ''
234 description: 'PatchSet number in Gerrit'
235
236 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700237 name: testRuns
238 default: '{test-runs}'
239 description: 'How many times to repeat the tests'
240
241 - string:
242 name: extraRobotArgs
243 default: '{robot-args}'
244 description: 'Arguments to pass to robot'
245
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700246 - string:
247 name: workFlow
248 default: '{work-flow}'
249 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700250
Kailash8b8de742019-07-30 08:54:51 -0700251 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700252 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700253
Zack Williamsb3292082019-10-11 17:15:18 -0700254 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700255
256 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700257 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700258 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700259 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700260
261- job-template:
262 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800263 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700264 override-branch: '$GERRIT_BRANCH'
Kailashaad71012019-08-27 10:36:53 -0700265
266 description: |
267 <!-- Managed by Jenkins Job Builder -->
268 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
269 E2E Validation for Voltha 2.X
270
271 properties:
272 - cord-infra-properties:
273 build-days-to-keep: '{build-days-to-keep}'
274 artifact-num-to-keep: '{artifact-num-to-keep}'
275
276 wrappers:
277 - lf-infra-wrappers:
278 build-timeout: '{build-timeout}'
279 jenkins-ssh-credential: '{jenkins-ssh-credential}'
280
281 parameters:
282 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700283 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700284 default: 'ubuntu16.04-basebuild-4c-8g'
285 description: 'Name of the Jenkins node to run the job on'
286
287 - string:
288 name: manifestUrl
289 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
290 description: 'URL to the repo manifest'
291
292 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700293 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700294 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700295 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700296
297 - string:
hwchiu14f97852019-10-08 10:51:11 -0700298 name: gerritProject
299 default: '$GERRIT_PROJECT'
300 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700301
302 - string:
hwchiu14f97852019-10-08 10:51:11 -0700303 name: gerritChangeNumber
304 default: '$GERRIT_CHANGE_NUMBER'
305 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700306
307 - string:
hwchiu14f97852019-10-08 10:51:11 -0700308 name: gerritPatchsetNumber
309 default: '$GERRIT_PATCHSET_NUMBER'
310 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700311
312 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700313 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700314 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700315 description: 'Helm flags to pass to ./voltha up'
316
Kailashaad71012019-08-27 10:36:53 -0700317 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700318 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700319
Zack Williamsb3292082019-10-11 17:15:18 -0700320 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700321
322 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700323 - gerrit:
324 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700325 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700326 silent-start: true
327 trigger-on:
328 - patchset-created-event:
329 exclude-drafts: true
330 exclude-trivial-rebase: false
331 exclude-no-code-change: true
332 - draft-published-event
333 - comment-added-contains-event:
334 comment-contains-value: '(?i)^.*recheck$'
335 projects:
336 - project-compare-type: REG_EXP
337 project-pattern: '^{project}$'
338 branches:
339 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700340 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700341 file-paths:
342 - compare-type: REG_EXP
343 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700344
345# POD Per Patchset Pipeline Jobs
346
347- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700348 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700349 id: verify_physical_voltha_patchset_auto
350 description: |
351 <!-- Managed by Jenkins Job Builder -->
352 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
353 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
354 Created by Andy Bavier, andy@opennetworking.org <br />
355 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700356 sandbox: true
357 pipeline-script: 'voltha-physical-build-and-tests.groovy'
358
359 properties:
360 - cord-infra-properties:
361 build-days-to-keep: '{build-days-to-keep}'
362 artifact-num-to-keep: '{artifact-num-to-keep}'
363
364 parameters:
365 - string:
366 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700367 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700368 description: 'Pod management node'
369
370 - string:
371 name: manifestUrl
372 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
373 description: 'URL to the repo manifest'
374
375 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700376 name: branch
377 default: '$GERRIT_BRANCH'
378 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700379
380 - string:
381 name: gerritProject
382 default: '$GERRIT_PROJECT'
383 description: 'Name of the Gerrit project'
384
385 - string:
386 name: gerritChangeNumber
387 default: '$GERRIT_CHANGE_NUMBER'
388 description: 'Changeset number in Gerrit'
389
390 - string:
391 name: gerritPatchsetNumber
392 default: '$GERRIT_PATCHSET_NUMBER'
393 description: 'PatchSet number in Gerrit'
394
395 - string:
396 name: cordRepoUrl
397 default: '{gerrit-server-url}'
398 description: 'The URL of the CORD Project repository'
399
400 - string:
401 name: podName
402 default: '{config-pod}'
403
404 - string:
405 name: deploymentConfigFile
406 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
407 description: 'Path of deployment config file'
408
409 - string:
410 name: kindVolthaValuesFile
411 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
412 description: 'Path of kind-voltha values override file'
413
414 - string:
415 name: sadisConfigFile
416 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
417 description: 'Path of SADIS config to load'
418
419 - string:
420 name: localConfigDir
421 default: null
422 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
423
424 - string:
425 name: configRepo
426 default: 'pod-configs'
427 description: 'A repository containing the config files, will be checked out if specified'
428
429 - string:
430 name: oltDebVersion
431 default: '{oltDebVersion}'
432 description: 'OLT Software version to install'
433
434 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700435 name: profile
436 default: '{profile}'
437 description: 'Technology Profile pushed to the ETCD'
438
439 - string:
440 name: notificationEmail
441 default: 'andy@opennetworking.org'
442 description: ''
443
444 - bool:
445 name: reinstallOlt
446 default: true
447 description: "Re-install OLT software"
448
Zack Williams03ebb272020-03-27 09:42:33 -0700449 - string:
450 name: manualBranch
451 default: '{manualBranch}'
452 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700453
454 - string:
455 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700456 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700457 description: 'Arguments to pass to robot'
458
459 project-type: pipeline
460 concurrent: true
461
462 dsl: !include-raw-escape: pipeline/{pipeline-script}
463
464 triggers:
465 - gerrit:
466 server-name: '{gerrit-server-name}'
467 dependency-jobs: '{dependency-jobs}'
468 silent-start: false
469 successful-message: "PASSED hardware test"
470 failure-message: "FAILED hardware test"
471 unstable-message: "UNSTABLE hardware test"
472 trigger-on:
473 - comment-added-event:
474 approval-category: 'Code-Review'
475 approval-value: '+2'
476 projects:
477 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700478 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700479 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700480 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700481 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700482
483
484- job-template:
485 name: '{name}'
486 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700487 description: |
488 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700489 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700490 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700491 Created by Andy Bavier, andy@opennetworking.org <br />
492 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700493 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700494 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700495
496 properties:
497 - cord-infra-properties:
498 build-days-to-keep: '{build-days-to-keep}'
499 artifact-num-to-keep: '{artifact-num-to-keep}'
500
501 parameters:
502 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700503 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700504 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700505 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700506
507 - string:
508 name: manifestUrl
509 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
510 description: 'URL to the repo manifest'
511
512 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700513 name: branch
514 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700515 description: 'Name of the repo branch to use'
516
517 - string:
518 name: gerritProject
519 default: '$GERRIT_PROJECT'
520 description: 'Name of the Gerrit project'
521
522 - string:
523 name: gerritChangeNumber
524 default: '$GERRIT_CHANGE_NUMBER'
525 description: 'Changeset number in Gerrit'
526
527 - string:
528 name: gerritPatchsetNumber
529 default: '$GERRIT_PATCHSET_NUMBER'
530 description: 'PatchSet number in Gerrit'
531
532 - string:
533 name: cordRepoUrl
534 default: '{gerrit-server-url}'
535 description: 'The URL of the CORD Project repository'
536
537 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700538 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700539 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700540
541 - string:
542 name: deploymentConfigFile
543 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
544 description: 'Path of deployment config file'
545
546 - string:
547 name: kindVolthaValuesFile
548 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
549 description: 'Path of kind-voltha values override file'
550
551 - string:
552 name: sadisConfigFile
553 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
554 description: 'Path of SADIS config to load'
555
556 - string:
557 name: localConfigDir
558 default: null
559 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
560
561 - string:
562 name: configRepo
563 default: 'pod-configs'
564 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700565
566 - string:
567 name: oltDebVersion
568 default: '{oltDebVersion}'
569 description: 'OLT Software version to install'
570
571 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700572 name: profile
573 default: '{profile}'
574 description: 'Technology Profile pushed to the ETCD'
575
576 - string:
577 name: notificationEmail
578 default: 'andy@opennetworking.org'
579 description: ''
580
581 - bool:
582 name: reinstallOlt
583 default: true
584 description: "Re-install OLT software"
585
Zack Williams03ebb272020-03-27 09:42:33 -0700586 - string:
587 name: manualBranch
588 default: '{manualBranch}'
589 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700590
Andy Bavier8c11d462019-12-17 08:19:34 -0700591 - string:
592 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700593 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700594 description: 'Arguments to pass to robot'
595
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700596 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700597 concurrent: true
598
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700599 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700600
Andy Bavier1f465592019-11-06 10:03:56 -0700601 triggers:
602 - gerrit:
603 server-name: '{gerrit-server-name}'
604 dependency-jobs: '{dependency-jobs}'
605 silent-start: false
606 successful-message: "PASSED hardware test"
607 failure-message: "FAILED hardware test"
608 unstable-message: "UNSTABLE hardware test"
609 trigger-on:
610 - comment-added-contains-event:
611 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800612 - comment-added-contains-event:
613 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700614 projects:
615 - project-compare-type: REG_EXP
Zack Williams03ebb272020-03-27 09:42:33 -0700616 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests|ofagent-py|ofagent-go|voltha-onos)$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700617 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700618 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700619 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700620
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700621
622- job-template:
623 name: '{name}'
624 id: build_physical_voltha_manual
625 description: |
626 <!-- Managed by Jenkins Job Builder -->
627 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
628 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
629 Created by Andy Bavier, andy@opennetworking.org <br />
630 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700631 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700632 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700633
634 properties:
635 - cord-infra-properties:
636 build-days-to-keep: '{build-days-to-keep}'
637 artifact-num-to-keep: '{artifact-num-to-keep}'
638
639 parameters:
640 - string:
641 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700642 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700643 description: 'Pod management node'
644
645 - string:
646 name: manifestUrl
647 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
648 description: 'URL to the repo manifest'
649
650 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700651 name: branch
652 default: "$GERRIT_BRANCH"
653 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700654
655 - string:
656 name: gerritProject
657 default: '$GERRIT_PROJECT'
658 description: 'Name of the Gerrit project'
659
660 - string:
661 name: gerritChangeNumber
662 default: '$GERRIT_CHANGE_NUMBER'
663 description: 'Changeset number in Gerrit'
664
665 - string:
666 name: gerritPatchsetNumber
667 default: '$GERRIT_PATCHSET_NUMBER'
668 description: 'PatchSet number in Gerrit'
669
670 - string:
671 name: cordRepoUrl
672 default: '{gerrit-server-url}'
673 description: 'The URL of the CORD Project repository'
674
675 - string:
676 name: podName
677 default: '{config-pod}'
678
679 - string:
680 name: deploymentConfigFile
681 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
682 description: 'Path of deployment config file'
683
684 - string:
685 name: kindVolthaValuesFile
686 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
687 description: 'Path of kind-voltha values override file'
688
689 - string:
690 name: sadisConfigFile
691 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
692 description: 'Path of SADIS config to load'
693
694 - string:
695 name: localConfigDir
696 default: null
697 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
698
699 - string:
700 name: configRepo
701 default: 'pod-configs'
702 description: 'A repository containing the config files, will be checked out if specified'
703
704 - string:
705 name: oltDebVersion
706 default: '{oltDebVersion}'
707 description: 'OLT Software version to install'
708
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
731 default: '-e bbsim'
732 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}