blob: 062e9f368a0b4207ea5e8459afb15dc3475bb775 [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 Bavierbf68c5e2019-10-25 15:05:28 -070017 testvm: 'tucson-pod'
18 config-pod: 'tucson-pod'
19 branch: 'master'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070020 test-repo: 'voltha-system-tests'
Andy Baviere9916452019-11-06 12:32:47 -070021 Jenkinsfile: 'Jenkinsfile-voltha-build-and-test'
Andy Bavierbf68c5e2019-10-25 15:05:28 -070022 oltDebVersion: 'openolt-seba-2.0.deb'
23 configurePod: true
24 profile: 'Default'
25
Kailash8b8de742019-07-30 08:54:51 -070026- job-template:
Kailashaad71012019-08-27 10:36:53 -070027 id: 'voltha-periodic-test'
28 name: '{name}'
Kailash8b8de742019-07-30 08:54:51 -070029
30 description: |
31 <!-- Managed by Jenkins Job Builder -->
32 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
33 E2E Validation for Voltha 2.X
34
35 properties:
36 - cord-infra-properties:
37 build-days-to-keep: '{build-days-to-keep}'
38 artifact-num-to-keep: '{artifact-num-to-keep}'
39
40 wrappers:
41 - lf-infra-wrappers:
42 build-timeout: '{build-timeout}'
43 jenkins-ssh-credential: '{jenkins-ssh-credential}'
44
45 parameters:
46 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070047 name: buildNode
Kailash8b8de742019-07-30 08:54:51 -070048 default: 'ubuntu16.04-basebuild-4c-8g'
49 description: 'Name of the Jenkins node to run the job on'
50
51 - string:
52 name: numOnus
53 default: '1'
54 description: 'Number of onus per pon port'
55
56 - string:
hwchiu14f97852019-10-08 10:51:11 -070057 name: emulationMode
58 default: '--set emulation_mode=both'
59 description: 'Emulation for BBSIM (both|aaa)'
Kailash8b8de742019-07-30 08:54:51 -070060
61 - string:
62 name: testTimeout
63 default: '90'
64 description: 'timeout for olt/onu validations'
65
66 - string:
67 name: testTags
68 default: '-e notready'
69 description: 'test tags'
70
Andy Bavierea26c5c2019-09-18 08:09:17 -070071 - string:
72 name: extraHelmFlags
Andy Bavierdabe9fc2019-10-24 17:10:48 -070073 default: '--set defaults.image_tag={default-image-tag},onu=2,pon=2'
Andy Bavierea26c5c2019-09-18 08:09:17 -070074 description: 'Helm flags to pass to ./voltha up'
75
Andy Bavierdabe9fc2019-10-24 17:10:48 -070076 - string:
77 name: robotVarFile
78 default: 'bbsim-kind-2x2.yaml'
79 description: 'Pod config file to use for tests'
80
Kailash8b8de742019-07-30 08:54:51 -070081 project-type: pipeline
82 concurrent: false
83
Zack Williamsb3292082019-10-11 17:15:18 -070084 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -070085
86 triggers:
hwchiu14f97852019-10-08 10:51:11 -070087 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -070088 TZ=America/Los_Angeles
Andy Bavierc08e4d22019-09-18 10:08:12 -070089 H/30 * * * *
Kailashaad71012019-08-27 10:36:53 -070090
91- job-template:
92 id: 'voltha-patch-test'
Kailash53d86722019-09-05 09:08:41 -070093 name: '{project}_sanity-system-test'
Kailashaad71012019-08-27 10:36:53 -070094
95 description: |
96 <!-- Managed by Jenkins Job Builder -->
97 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
98 E2E Validation for Voltha 2.X
99
100 properties:
101 - cord-infra-properties:
102 build-days-to-keep: '{build-days-to-keep}'
103 artifact-num-to-keep: '{artifact-num-to-keep}'
104
105 wrappers:
106 - lf-infra-wrappers:
107 build-timeout: '{build-timeout}'
108 jenkins-ssh-credential: '{jenkins-ssh-credential}'
109
110 parameters:
111 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700112 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700113 default: 'ubuntu16.04-basebuild-4c-8g'
114 description: 'Name of the Jenkins node to run the job on'
115
116 - string:
117 name: manifestUrl
118 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
119 description: 'URL to the repo manifest'
120
121 - string:
hwchiu14f97852019-10-08 10:51:11 -0700122 name: manifestBranch
123 default: '$GERRIT_BRANCH'
124 description: 'Name of the repo branch to use'
Kailashaad71012019-08-27 10:36:53 -0700125
126 - string:
hwchiu14f97852019-10-08 10:51:11 -0700127 name: gerritProject
128 default: '$GERRIT_PROJECT'
129 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700130
131 - string:
hwchiu14f97852019-10-08 10:51:11 -0700132 name: gerritChangeNumber
133 default: '$GERRIT_CHANGE_NUMBER'
134 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700135
136 - string:
hwchiu14f97852019-10-08 10:51:11 -0700137 name: gerritPatchsetNumber
138 default: '$GERRIT_PATCHSET_NUMBER'
139 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700140
141 - string:
142 name: numOnus
143 default: '1'
144 description: 'Number of onus per pon port'
145
146 - string:
hwchiu14f97852019-10-08 10:51:11 -0700147 name: emulationMode
148 default: '--set emulation_mode=both'
149 description: 'Emulation for BBSIM (both|aaa)'
Kailashaad71012019-08-27 10:36:53 -0700150
151 - string:
152 name: testTimeout
153 default: '90'
154 description: 'timeout for olt/onu validations'
155
156 - string:
157 name: testTags
158 default: '-e notready'
159 description: 'test tags'
160
Andy Bavierbedd0392019-10-16 13:58:18 -0700161 - string:
162 name: extraHelmFlags
163 default: '--set defaults.image_tag=$GERRIT_BRANCH'
164 description: 'Helm flags to pass to ./voltha up'
165
Kailashaad71012019-08-27 10:36:53 -0700166 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700167 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700168
Zack Williamsb3292082019-10-11 17:15:18 -0700169 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700170
171 triggers:
172 - cord-infra-gerrit-trigger-patchset:
173 gerrit-server-name: '{gerrit-server-name}'
Kailash53d86722019-09-05 09:08:41 -0700174 project-regexp: '^{project}$'
175 branch-regexp: '{branch-regexp}'
Kailashaad71012019-08-27 10:36:53 -0700176 dependency-jobs: '{dependency-jobs}'
177 file-include-regexp: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700178
179# POD Per Patchset Pipeline Jobs
180
181- job-template:
Andy Baviere9916452019-11-06 12:32:47 -0700182 name: 'verify_physical_voltha_patchset'
183 id: verify_physical_voltha_patchset
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700184 description: |
185 <!-- Managed by Jenkins Job Builder -->
Andy Baviere9916452019-11-06 12:32:47 -0700186 Automated build on POD {config-pod} using {Jenkinsfile} <br /><br />
187 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700188 Created by Andy Bavier, andy@opennetworking.org <br />
189 Copyright (c) 2019 Open Networking Foundation (ONF)
190 project-type: pipeline
191 sandbox: true
192
193 properties:
194 - cord-infra-properties:
195 build-days-to-keep: '{build-days-to-keep}'
196 artifact-num-to-keep: '{artifact-num-to-keep}'
197
198 parameters:
199 - string:
200 name: TestNodeName
201 default: '{testvm}'
202 description: 'Jenkins node name of TestVM Node'
203
204 - string:
205 name: manifestUrl
206 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
207 description: 'URL to the repo manifest'
208
209 - string:
210 name: manifestBranch
211 default: '$GERRIT_BRANCH'
212 description: 'Name of the repo branch to use'
213
214 - string:
215 name: gerritProject
216 default: '$GERRIT_PROJECT'
217 description: 'Name of the Gerrit project'
218
219 - string:
220 name: gerritChangeNumber
221 default: '$GERRIT_CHANGE_NUMBER'
222 description: 'Changeset number in Gerrit'
223
224 - string:
225 name: gerritPatchsetNumber
226 default: '$GERRIT_PATCHSET_NUMBER'
227 description: 'PatchSet number in Gerrit'
228
229 - string:
230 name: cordRepoUrl
231 default: '{gerrit-server-url}'
232 description: 'The URL of the CORD Project repository'
233
234 - string:
235 name: configBaseDir
236 default: 'pod-configs'
237 description: 'The directory inside the POD configs repository'
238
239 - string:
240 name: configDeploymentDir
241 default: 'deployment-configs'
242 description: 'The deployment configs folder'
243
244 - string:
245 name: configKubernetesDir
246 default: 'kubernetes-configs'
247 description: 'The kubernetes config folder'
248
249 - string:
250 name: configFileName
251 default: '{config-pod}'
252 description: 'The config file'
253
254 - string:
255 name: oltDebVersion
256 default: '{oltDebVersion}'
257 description: 'OLT Software version to install'
258
259 - string:
260 name: branch
261 default: '{branch}'
262
263 - string:
264 name: profile
265 default: '{profile}'
266 description: 'Technology Profile pushed to the ETCD'
267
268 - string:
269 name: notificationEmail
270 default: 'andy@opennetworking.org'
271 description: ''
272
273 - bool:
274 name: reinstallOlt
275 default: true
276 description: "Re-install OLT software"
277
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700278 concurrent: true
279
280 pipeline-scm:
281 script-path: '{Jenkinsfile}'
282 scm:
283 - git:
284 url: '{gerrit-server-url}/{test-repo}'
285 branches:
286 - '{branch}'
287
Andy Bavier1f465592019-11-06 10:03:56 -0700288 triggers:
289 - gerrit:
290 server-name: '{gerrit-server-name}'
291 dependency-jobs: '{dependency-jobs}'
292 silent-start: false
293 successful-message: "PASSED hardware test"
294 failure-message: "FAILED hardware test"
295 unstable-message: "UNSTABLE hardware test"
296 trigger-on:
297 - comment-added-contains-event:
298 comment-contains-value: '^hardware test$'
299 projects:
300 - project-compare-type: REG_EXP
Andy Baviere9916452019-11-06 12:32:47 -0700301 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests)$'
Andy Bavier1f465592019-11-06 10:03:56 -0700302 branches:
303 - branch-compare-type: PLAIN
304 branch-pattern: 'master'