blob: d24c11c1891ec0d7825478f2927efcf0a3782446 [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
Andy Baviere9916452019-11-06 12:32:47 -070016 - 'verify_physical_voltha_patchset':
Andy Bavier19c98a22019-11-11 13:57:11 -070017 name: 'verify_physical_voltha_patchset'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070018 testvm: 'tucson-pod'
19 config-pod: 'tucson-pod'
20 branch: 'master'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070021 test-repo: 'voltha-system-tests'
Andy Baviere9916452019-11-06 12:32:47 -070022 Jenkinsfile: 'Jenkinsfile-voltha-build-and-test'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070023 oltDebVersion: 'openolt-seba-2.0.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070024 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -070025 withPatchset: true
26
27 # Manual build job for Tucson pod
28 # Allow local testing without disrupting above job
29 - 'verify_physical_voltha_patchset':
30 name: 'build_tucson-pod_manual'
31 testvm: 'tucson-pod'
32 config-pod: 'tucson-pod'
33 branch: 'master'
34 test-repo: 'voltha-system-tests'
35 Jenkinsfile: 'Jenkinsfile-voltha-build-and-test'
36 oltDebVersion: 'openolt-seba-2.0.deb'
37 profile: 'Default'
38 withPatchset: false
Andy Bavierbf68c5e2019-10-25 15:05:28 -070039
Kailash8b8de742019-07-30 08:54:51 -070040- job-template:
Kailashaad71012019-08-27 10:36:53 -070041 id: 'voltha-periodic-test'
42 name: '{name}'
Kailash8b8de742019-07-30 08:54:51 -070043
44 description: |
45 <!-- Managed by Jenkins Job Builder -->
46 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
47 E2E Validation for Voltha 2.X
48
49 properties:
50 - cord-infra-properties:
51 build-days-to-keep: '{build-days-to-keep}'
52 artifact-num-to-keep: '{artifact-num-to-keep}'
53
54 wrappers:
55 - lf-infra-wrappers:
56 build-timeout: '{build-timeout}'
57 jenkins-ssh-credential: '{jenkins-ssh-credential}'
58
59 parameters:
60 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070061 name: buildNode
Kailash8b8de742019-07-30 08:54:51 -070062 default: 'ubuntu16.04-basebuild-4c-8g'
63 description: 'Name of the Jenkins node to run the job on'
64
65 - string:
66 name: numOnus
67 default: '1'
68 description: 'Number of onus per pon port'
69
70 - string:
hwchiu14f97852019-10-08 10:51:11 -070071 name: emulationMode
72 default: '--set emulation_mode=both'
73 description: 'Emulation for BBSIM (both|aaa)'
Kailash8b8de742019-07-30 08:54:51 -070074
75 - string:
76 name: testTimeout
77 default: '90'
78 description: 'timeout for olt/onu validations'
79
80 - string:
81 name: testTags
82 default: '-e notready'
83 description: 'test tags'
84
Andy Bavierea26c5c2019-09-18 08:09:17 -070085 - string:
86 name: extraHelmFlags
Andy Bavierdabe9fc2019-10-24 17:10:48 -070087 default: '--set defaults.image_tag={default-image-tag},onu=2,pon=2'
Andy Bavierea26c5c2019-09-18 08:09:17 -070088 description: 'Helm flags to pass to ./voltha up'
89
Andy Bavierdabe9fc2019-10-24 17:10:48 -070090 - string:
91 name: robotVarFile
92 default: 'bbsim-kind-2x2.yaml'
93 description: 'Pod config file to use for tests'
94
Kailash8b8de742019-07-30 08:54:51 -070095 project-type: pipeline
96 concurrent: false
97
Zack Williamsb3292082019-10-11 17:15:18 -070098 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -070099
100 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700101 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700102 TZ=America/Los_Angeles
Andy Bavierc08e4d22019-09-18 10:08:12 -0700103 H/30 * * * *
Kailashaad71012019-08-27 10:36:53 -0700104
105- job-template:
106 id: 'voltha-patch-test'
Kailash53d86722019-09-05 09:08:41 -0700107 name: '{project}_sanity-system-test'
Kailashaad71012019-08-27 10:36:53 -0700108
109 description: |
110 <!-- Managed by Jenkins Job Builder -->
111 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
112 E2E Validation for Voltha 2.X
113
114 properties:
115 - cord-infra-properties:
116 build-days-to-keep: '{build-days-to-keep}'
117 artifact-num-to-keep: '{artifact-num-to-keep}'
118
119 wrappers:
120 - lf-infra-wrappers:
121 build-timeout: '{build-timeout}'
122 jenkins-ssh-credential: '{jenkins-ssh-credential}'
123
124 parameters:
125 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700126 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700127 default: 'ubuntu16.04-basebuild-4c-8g'
128 description: 'Name of the Jenkins node to run the job on'
129
130 - string:
131 name: manifestUrl
132 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
133 description: 'URL to the repo manifest'
134
135 - string:
hwchiu14f97852019-10-08 10:51:11 -0700136 name: manifestBranch
137 default: '$GERRIT_BRANCH'
138 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700139
140 - string:
hwchiu14f97852019-10-08 10:51:11 -0700141 name: gerritProject
142 default: '$GERRIT_PROJECT'
143 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700144
145 - string:
hwchiu14f97852019-10-08 10:51:11 -0700146 name: gerritChangeNumber
147 default: '$GERRIT_CHANGE_NUMBER'
148 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700149
150 - string:
hwchiu14f97852019-10-08 10:51:11 -0700151 name: gerritPatchsetNumber
152 default: '$GERRIT_PATCHSET_NUMBER'
153 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700154
155 - string:
156 name: numOnus
157 default: '1'
158 description: 'Number of onus per pon port'
159
160 - string:
hwchiu14f97852019-10-08 10:51:11 -0700161 name: emulationMode
162 default: '--set emulation_mode=both'
163 description: 'Emulation for BBSIM (both|aaa)'
Kailashaad71012019-08-27 10:36:53 -0700164
165 - string:
166 name: testTimeout
167 default: '90'
168 description: 'timeout for olt/onu validations'
169
170 - string:
171 name: testTags
172 default: '-e notready'
173 description: 'test tags'
174
Andy Bavierbedd0392019-10-16 13:58:18 -0700175 - string:
176 name: extraHelmFlags
177 default: '--set defaults.image_tag=$GERRIT_BRANCH'
178 description: 'Helm flags to pass to ./voltha up'
179
Kailashaad71012019-08-27 10:36:53 -0700180 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700181 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700182
Zack Williamsb3292082019-10-11 17:15:18 -0700183 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700184
185 triggers:
186 - cord-infra-gerrit-trigger-patchset:
187 gerrit-server-name: '{gerrit-server-name}'
Kailash53d86722019-09-05 09:08:41 -0700188 project-regexp: '^{project}$'
189 branch-regexp: '{branch-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700190 dependency-jobs: '{dependency-jobs}'
191 file-include-regexp: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700192
193# POD Per Patchset Pipeline Jobs
194
195- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700196 name: '{name}'
Andy Baviere9916452019-11-06 12:32:47 -0700197 id: verify_physical_voltha_patchset
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700198 description: |
199 <!-- Managed by Jenkins Job Builder -->
Andy Baviere9916452019-11-06 12:32:47 -0700200 Automated build on POD {config-pod} using {Jenkinsfile} <br /><br />
201 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700202 Created by Andy Bavier, andy@opennetworking.org <br />
203 Copyright (c) 2019 Open Networking Foundation (ONF)
204 project-type: pipeline
205 sandbox: true
206
207 properties:
208 - cord-infra-properties:
209 build-days-to-keep: '{build-days-to-keep}'
210 artifact-num-to-keep: '{artifact-num-to-keep}'
211
212 parameters:
213 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700214 name: buildNode
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700215 default: '{testvm}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700216 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700217
218 - string:
219 name: manifestUrl
220 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
221 description: 'URL to the repo manifest'
222
223 - string:
224 name: manifestBranch
225 default: '$GERRIT_BRANCH'
226 description: 'Name of the repo branch to use'
227
228 - string:
229 name: gerritProject
230 default: '$GERRIT_PROJECT'
231 description: 'Name of the Gerrit project'
232
233 - string:
234 name: gerritChangeNumber
235 default: '$GERRIT_CHANGE_NUMBER'
236 description: 'Changeset number in Gerrit'
237
238 - string:
239 name: gerritPatchsetNumber
240 default: '$GERRIT_PATCHSET_NUMBER'
241 description: 'PatchSet number in Gerrit'
242
243 - string:
244 name: cordRepoUrl
245 default: '{gerrit-server-url}'
246 description: 'The URL of the CORD Project repository'
247
248 - string:
249 name: configBaseDir
250 default: 'pod-configs'
251 description: 'The directory inside the POD configs repository'
252
253 - string:
254 name: configDeploymentDir
255 default: 'deployment-configs'
256 description: 'The deployment configs folder'
257
258 - string:
259 name: configKubernetesDir
260 default: 'kubernetes-configs'
261 description: 'The kubernetes config folder'
262
263 - string:
264 name: configFileName
265 default: '{config-pod}'
266 description: 'The config file'
267
268 - string:
269 name: oltDebVersion
270 default: '{oltDebVersion}'
271 description: 'OLT Software version to install'
272
273 - string:
274 name: branch
275 default: '{branch}'
276
277 - string:
278 name: profile
279 default: '{profile}'
280 description: 'Technology Profile pushed to the ETCD'
281
282 - string:
283 name: notificationEmail
284 default: 'andy@opennetworking.org'
285 description: ''
286
287 - bool:
288 name: reinstallOlt
289 default: true
290 description: "Re-install OLT software"
291
Andy Bavier19c98a22019-11-11 13:57:11 -0700292 - bool:
293 name: withPatchset
294 default: {withPatchset}
295 description: "Build the pod using a Gerrit patchset"
296
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700297 concurrent: true
298
299 pipeline-scm:
300 script-path: '{Jenkinsfile}'
301 scm:
302 - git:
303 url: '{gerrit-server-url}/{test-repo}'
304 branches:
305 - '{branch}'
306
Andy Bavier1f465592019-11-06 10:03:56 -0700307 triggers:
308 - gerrit:
309 server-name: '{gerrit-server-name}'
310 dependency-jobs: '{dependency-jobs}'
311 silent-start: false
312 successful-message: "PASSED hardware test"
313 failure-message: "FAILED hardware test"
314 unstable-message: "UNSTABLE hardware test"
315 trigger-on:
316 - comment-added-contains-event:
317 comment-contains-value: '^hardware test$'
318 projects:
319 - project-compare-type: REG_EXP
Andy Baviere9916452019-11-06 12:32:47 -0700320 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests)$'
Andy Bavier1f465592019-11-06 10:03:56 -0700321 branches:
322 - branch-compare-type: PLAIN
323 branch-pattern: 'master'