blob: ec36e403b3f50a9b63af5b5885752bca1de81836 [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}'
8
9 jobs:
hwchiu14f97852019-10-08 10:51:11 -070010 - 'voltha-periodic-test':
Kailashaad71012019-08-27 10:36:53 -070011 name: 'voltha-system-tests'
Zack Williamsb3292082019-10-11 17:15:18 -070012 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavieraaa60f72019-09-20 09:11:21 -070013 default-image-tag: 'master'
Kailashaad71012019-08-27 10:36:53 -070014
Andy Bavierbf68c5e2019-10-25 15:05:28 -070015 # Per-patchset Pod builds on Tucson pod
16 - 'build_physical_voltha_patchset':
17 testvm: 'tucson-pod'
18 config-pod: 'tucson-pod'
19 branch: 'master'
20 release: 'patchset'
21 test-repo: 'voltha-system-tests'
22 Jenkinsfile: 'Jenkinsfile-voltha-build'
23 oltDebVersion: 'openolt-seba-2.0.deb'
24 configurePod: true
25 profile: 'Default'
26
27 - 'build_physical_voltha_patchset_test':
28 testvm: 'tucson-pod'
29 config-pod: 'tucson-pod'
30 branch: 'master'
31 release: 'patchset'
32 test-repo: 'voltha-system-tests'
33 Jenkinsfile: 'Jenkinsfile-voltha-test'
34 profile: 'Default'
35
Kailash8b8de742019-07-30 08:54:51 -070036- job-template:
Kailashaad71012019-08-27 10:36:53 -070037 id: 'voltha-periodic-test'
38 name: '{name}'
Kailash8b8de742019-07-30 08:54:51 -070039
40 description: |
41 <!-- Managed by Jenkins Job Builder -->
42 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
43 E2E Validation for Voltha 2.X
44
45 properties:
46 - cord-infra-properties:
47 build-days-to-keep: '{build-days-to-keep}'
48 artifact-num-to-keep: '{artifact-num-to-keep}'
49
50 wrappers:
51 - lf-infra-wrappers:
52 build-timeout: '{build-timeout}'
53 jenkins-ssh-credential: '{jenkins-ssh-credential}'
54
55 parameters:
56 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070057 name: buildNode
Kailash8b8de742019-07-30 08:54:51 -070058 default: 'ubuntu16.04-basebuild-4c-8g'
59 description: 'Name of the Jenkins node to run the job on'
60
61 - string:
62 name: numOnus
63 default: '1'
64 description: 'Number of onus per pon port'
65
66 - string:
hwchiu14f97852019-10-08 10:51:11 -070067 name: emulationMode
68 default: '--set emulation_mode=both'
69 description: 'Emulation for BBSIM (both|aaa)'
Kailash8b8de742019-07-30 08:54:51 -070070
71 - string:
72 name: testTimeout
73 default: '90'
74 description: 'timeout for olt/onu validations'
75
76 - string:
77 name: testTags
78 default: '-e notready'
79 description: 'test tags'
80
Andy Bavierea26c5c2019-09-18 08:09:17 -070081 - string:
82 name: extraHelmFlags
Andy Bavierdabe9fc2019-10-24 17:10:48 -070083 default: '--set defaults.image_tag={default-image-tag},onu=2,pon=2'
Andy Bavierea26c5c2019-09-18 08:09:17 -070084 description: 'Helm flags to pass to ./voltha up'
85
Andy Bavierdabe9fc2019-10-24 17:10:48 -070086 - string:
87 name: robotVarFile
88 default: 'bbsim-kind-2x2.yaml'
89 description: 'Pod config file to use for tests'
90
Kailash8b8de742019-07-30 08:54:51 -070091 project-type: pipeline
92 concurrent: false
93
Zack Williamsb3292082019-10-11 17:15:18 -070094 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -070095
96 triggers:
hwchiu14f97852019-10-08 10:51:11 -070097 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -070098 TZ=America/Los_Angeles
Andy Bavierc08e4d22019-09-18 10:08:12 -070099 H/30 * * * *
Kailashaad71012019-08-27 10:36:53 -0700100
101- job-template:
102 id: 'voltha-patch-test'
Kailash53d86722019-09-05 09:08:41 -0700103 name: '{project}_sanity-system-test'
Kailashaad71012019-08-27 10:36:53 -0700104
105 description: |
106 <!-- Managed by Jenkins Job Builder -->
107 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
108 E2E Validation for Voltha 2.X
109
110 properties:
111 - cord-infra-properties:
112 build-days-to-keep: '{build-days-to-keep}'
113 artifact-num-to-keep: '{artifact-num-to-keep}'
114
115 wrappers:
116 - lf-infra-wrappers:
117 build-timeout: '{build-timeout}'
118 jenkins-ssh-credential: '{jenkins-ssh-credential}'
119
120 parameters:
121 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700122 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700123 default: 'ubuntu16.04-basebuild-4c-8g'
124 description: 'Name of the Jenkins node to run the job on'
125
126 - string:
127 name: manifestUrl
128 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
129 description: 'URL to the repo manifest'
130
131 - string:
hwchiu14f97852019-10-08 10:51:11 -0700132 name: manifestBranch
133 default: '$GERRIT_BRANCH'
134 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700135
136 - string:
hwchiu14f97852019-10-08 10:51:11 -0700137 name: gerritProject
138 default: '$GERRIT_PROJECT'
139 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700140
141 - string:
hwchiu14f97852019-10-08 10:51:11 -0700142 name: gerritChangeNumber
143 default: '$GERRIT_CHANGE_NUMBER'
144 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700145
146 - string:
hwchiu14f97852019-10-08 10:51:11 -0700147 name: gerritPatchsetNumber
148 default: '$GERRIT_PATCHSET_NUMBER'
149 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700150
151 - string:
152 name: numOnus
153 default: '1'
154 description: 'Number of onus per pon port'
155
156 - string:
hwchiu14f97852019-10-08 10:51:11 -0700157 name: emulationMode
158 default: '--set emulation_mode=both'
159 description: 'Emulation for BBSIM (both|aaa)'
Kailashaad71012019-08-27 10:36:53 -0700160
161 - string:
162 name: testTimeout
163 default: '90'
164 description: 'timeout for olt/onu validations'
165
166 - string:
167 name: testTags
168 default: '-e notready'
169 description: 'test tags'
170
Andy Bavierbedd0392019-10-16 13:58:18 -0700171 - string:
172 name: extraHelmFlags
173 default: '--set defaults.image_tag=$GERRIT_BRANCH'
174 description: 'Helm flags to pass to ./voltha up'
175
Kailashaad71012019-08-27 10:36:53 -0700176 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700177 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700178
Zack Williamsb3292082019-10-11 17:15:18 -0700179 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700180
181 triggers:
182 - cord-infra-gerrit-trigger-patchset:
183 gerrit-server-name: '{gerrit-server-name}'
Kailash53d86722019-09-05 09:08:41 -0700184 project-regexp: '^{project}$'
185 branch-regexp: '{branch-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700186 dependency-jobs: '{dependency-jobs}'
187 file-include-regexp: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700188
189# POD Per Patchset Pipeline Jobs
190
191- job-template:
192 name: 'build_physical_voltha_patchset'
193 id: build_physical_voltha_patchset
194 description: |
195 <!-- Managed by Jenkins Job Builder -->
196 Manual Build on POD {config-pod} using {Jenkinsfile} <br /><br />
197 Created from job-template {id} from ci-management/jjb/cord-test/per-patch-pipeline.yaml <br />
198 Created by Andy Bavier, andy@opennetworking.org <br />
199 Copyright (c) 2019 Open Networking Foundation (ONF)
200 project-type: pipeline
201 sandbox: true
202
203 properties:
204 - cord-infra-properties:
205 build-days-to-keep: '{build-days-to-keep}'
206 artifact-num-to-keep: '{artifact-num-to-keep}'
207
208 parameters:
209 - string:
210 name: TestNodeName
211 default: '{testvm}'
212 description: 'Jenkins node name of TestVM Node'
213
214 - string:
215 name: manifestUrl
216 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
217 description: 'URL to the repo manifest'
218
219 - string:
220 name: manifestBranch
221 default: '$GERRIT_BRANCH'
222 description: 'Name of the repo branch to use'
223
224 - string:
225 name: gerritProject
226 default: '$GERRIT_PROJECT'
227 description: 'Name of the Gerrit project'
228
229 - string:
230 name: gerritChangeNumber
231 default: '$GERRIT_CHANGE_NUMBER'
232 description: 'Changeset number in Gerrit'
233
234 - string:
235 name: gerritPatchsetNumber
236 default: '$GERRIT_PATCHSET_NUMBER'
237 description: 'PatchSet number in Gerrit'
238
239 - string:
240 name: cordRepoUrl
241 default: '{gerrit-server-url}'
242 description: 'The URL of the CORD Project repository'
243
244 - string:
245 name: configBaseDir
246 default: 'pod-configs'
247 description: 'The directory inside the POD configs repository'
248
249 - string:
250 name: configDeploymentDir
251 default: 'deployment-configs'
252 description: 'The deployment configs folder'
253
254 - string:
255 name: configKubernetesDir
256 default: 'kubernetes-configs'
257 description: 'The kubernetes config folder'
258
259 - string:
260 name: configFileName
261 default: '{config-pod}'
262 description: 'The config file'
263
264 - string:
265 name: oltDebVersion
266 default: '{oltDebVersion}'
267 description: 'OLT Software version to install'
268
269 - string:
270 name: branch
271 default: '{branch}'
272
273 - string:
274 name: profile
275 default: '{profile}'
276 description: 'Technology Profile pushed to the ETCD'
277
278 - string:
279 name: notificationEmail
280 default: 'andy@opennetworking.org'
281 description: ''
282
283 - bool:
284 name: reinstallOlt
285 default: true
286 description: "Re-install OLT software"
287
288 - bool:
289 name: withPatchset
290 default: true
291 description: "Apply a Gerrit patchset during the build"
292
293 concurrent: true
294
295 pipeline-scm:
296 script-path: '{Jenkinsfile}'
297 scm:
298 - git:
299 url: '{gerrit-server-url}/{test-repo}'
300 branches:
301 - '{branch}'
302
303- job-template:
304 name: 'build_physical_voltha_patchset_test'
305 id: build_physical_voltha_patchset_test
306 description: |
307 <!-- Managed by Jenkins Job Builder -->
308 Post Tests on {config-pod} triggered by build_{config-pod}_{branch} <br /><br />
309 Created from job-template {id} from ci-management/jjb/cord-test/per-patch-pipeline.yaml <br />
310 Created by Andy Bavier, andy@opennetworking.org <br />
311 Copyright (c) 2019 Open Networking Foundation (ONF)
312
313 project-type: pipeline
314
315 sandbox: true
316
317 properties:
318 - cord-infra-properties:
319 build-days-to-keep: '{build-days-to-keep}'
320 artifact-num-to-keep: '{artifact-num-to-keep}'
321
322 parameters:
323 - string:
324 name: TestNodeName
325 default: '{testvm}'
326 description: 'Jenkins node name of TestVM Node'
327
328 - string:
329 name: cordRepoUrl
330 default: '{gerrit-server-url}'
331 description: 'The URL of the CORD Project repository'
332
333 - string:
334 name: configBaseDir
335 default: 'pod-configs'
336 description: 'The directory inside the POD configs repository'
337
338 - string:
339 name: configDeploymentDir
340 default: 'deployment-configs'
341 description: 'The deployment configs folder'
342
343 - string:
344 name: configKubernetesDir
345 default: 'kubernetes-configs'
346 description: 'The kubernetes config folder'
347
348 - string:
349 name: configFileName
350 default: '{config-pod}'
351 description: 'The config file'
352
353 - string:
354 name: profile
355 default: '{profile}'
356 description: 'Technology Profile pushed to the ETCD'
357
358 - string:
359 name: branch
360 default: '{branch}'
361
362 - string:
363 name: notificationEmail
364 default: 'andy@opennetworking.org'
365 description: ''
366
367 concurrent: true
368
369 pipeline-scm:
370 script-path: '{Jenkinsfile}'
371 scm:
372 - git:
373 url: '{gerrit-server-url}/{test-repo}'
374 branches:
375 - '{branch}'
376
377 triggers:
378 - reverse:
379 jobs: 'build_physical_voltha_patchset'
380 result: 'success'