blob: b1e04b3f8a9ed42902548c66434a1c000d7c57ce [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':
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070030 name: 'periodic-voltha-test-bbsim'
31 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavierf93f3142020-01-09 16:08:51 -070032 build-node: 'qct-pod4-node2'
Andy Bavierd4ba3372020-01-21 17:01:53 -070033 make-target: functional-single-kind
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070034 code-branch: 'master'
Andy Bavierf93f3142020-01-09 16:08:51 -070035 onus: 1
36 pons: 1
Andy Bavierd4ba3372020-01-21 17:01:53 -070037 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070038
39 - 'voltha-periodic-test':
Andy Bavier10926f12020-03-27 16:53:43 -070040 name: 'periodic-voltha-functional-test-2.3'
41 build-node: 'qct-pod4-node2'
42 code-branch: 'voltha-2.3'
43 make-target: functional-single-kind
44 onus: 1
45 pons: 1
46 time-trigger: "H H/12 * * *"
47
48 - 'voltha-periodic-test':
hwchiufdc49242019-11-18 16:37:22 -080049 name: 'periodic-voltha-system-test'
50 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080051 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080052 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080053 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080054 onus: 2
55 pons: 2
56 time-trigger: "H H/12 * * *"
57
58 - 'voltha-periodic-test':
Andy Bavier10926f12020-03-27 16:53:43 -070059 name: 'periodic-voltha-system-test-2.3'
60 pipeline-script: 'voltha-system-test-bbsim.groovy'
61 build-node: 'ubuntu16.04-basebuild-4c-8g'
62 code-branch: 'voltha-2.3'
63 make-target: sanity-multi-kind
64 onus: 2
65 pons: 2
66 time-trigger: "H H/12 * * *"
67
68
69 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070070 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070071 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070072 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -070073 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070074 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070075 onus: 1
76 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070077 test-runs: 5
Andy Bavier10926f12020-03-27 16:53:43 -070078 time-trigger: "H H/6 * * *"
79
80 - 'voltha-periodic-test':
81 name: 'periodic-voltha-sanity-test-multi-runs-2.3'
82 pipeline-script: 'voltha-go-multi-tests.groovy'
83 build-node: 'qct-pod4-node2'
84 code-branch: 'voltha-2.3'
85 make-target: sanity-kind
86 onus: 1
87 pons: 1
88 test-runs: 5
89 time-trigger: "H H/6 * * *"
Andy Bavier3708d072019-12-10 15:22:18 -070090
91 - 'voltha-periodic-test':
Andy Bavier0d1d63e2020-03-03 13:52:02 -070092 name: 'periodic-voltha-alarm-test'
93 build-node: 'qct-pod4-node2'
Andy Bavier0d1d63e2020-03-03 13:52:02 -070094 code-branch: 'master'
95 make-target: bbsim-alarms-kind
96 onus: 1
97 pons: 1
98 time-trigger: "H H/3 * * *"
99
Andy Bavier10926f12020-03-27 16:53:43 -0700100 - 'voltha-periodic-test':
101 name: 'periodic-voltha-alarm-test-2.3'
102 build-node: 'qct-pod4-node2'
103 code-branch: 'voltha-2.3'
104 make-target: bbsim-alarms-kind
105 onus: 1
106 pons: 1
107 time-trigger: "H H/3 * * *"
108
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700109 - 'voltha-periodic-test':
110 name: 'nightly-voltha-DTflow-sanity-test'
111 build-node: 'ubuntu16.04-basebuild-4c-8g'
112 code-branch: 'master'
113 make-target: sanity-kind-dt
114 onus: 1
115 pons: 1
116 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700117 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700118
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700119 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700120 - 'verify_physical_voltha_patchset_auto':
121 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700122 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700123 config-pod: 'tucson-pod'
Andy Bavier893d2442020-05-21 12:41:17 -0700124 oltDebVersionMaster: 'openolt_asfvolt16-2.4.6-5d9ab1a36e13e55ca3687af160cfd4f582317493.deb'
125 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.3-c636279643a1cac3128395cc9fc22977e8edc46d.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700126 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700127
128 # Per-patchset Pod builds on Tucson pod
129 - 'verify_physical_voltha_patchset_manual':
130 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700131 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700132 config-pod: 'tucson-pod'
Andy Bavier893d2442020-05-21 12:41:17 -0700133 oltDebVersionMaster: 'openolt_asfvolt16-2.4.6-5d9ab1a36e13e55ca3687af160cfd4f582317493.deb'
134 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.3-c636279643a1cac3128395cc9fc22977e8edc46d.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700135 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700136
137 # Manual build job for Tucson pod
138 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700139 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700140 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700141 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700142 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700143 manualBranch: 'master'
Andy Bavier893d2442020-05-21 12:41:17 -0700144 oltDebVersionMaster: 'openolt_asfvolt16-2.4.6-5d9ab1a36e13e55ca3687af160cfd4f582317493.deb'
145 oltDebVersionVoltha23: 'openolt_asfvolt16-2.4.3-c636279643a1cac3128395cc9fc22977e8edc46d.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700146 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700147
Kailash8b8de742019-07-30 08:54:51 -0700148- job-template:
Kailashaad71012019-08-27 10:36:53 -0700149 id: 'voltha-periodic-test'
150 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700151 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700152 test-runs: 1
153 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700154 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700155 work-flow: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700156 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700157
Kailash8b8de742019-07-30 08:54:51 -0700158 description: |
159 <!-- Managed by Jenkins Job Builder -->
160 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
161 E2E Validation for Voltha 2.X
162
163 properties:
164 - cord-infra-properties:
165 build-days-to-keep: '{build-days-to-keep}'
166 artifact-num-to-keep: '{artifact-num-to-keep}'
167
168 wrappers:
169 - lf-infra-wrappers:
170 build-timeout: '{build-timeout}'
171 jenkins-ssh-credential: '{jenkins-ssh-credential}'
172
173 parameters:
174 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700175 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700176 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700177 description: 'Name of the Jenkins node to run the job on'
178
179 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700180 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700181 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700182 description: 'Helm flags to pass to ./voltha up'
183
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700184 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700185 name: makeTarget
186 default: '{make-target}'
187 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700188
Andy Bavier4c8b3232019-11-22 16:17:47 -0700189 - string:
190 name: manifestUrl
191 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700192 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700193
194 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700195 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700196 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700197 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700198
Andy Bavier3708d072019-12-10 15:22:18 -0700199 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700200 name: gerritProject
201 default: '{gerrit-project}'
202 description: 'Name of the Gerrit project'
203
204 - string:
205 name: gerritChangeNumber
206 default: ''
207 description: 'Changeset number in Gerrit'
208
209 - string:
210 name: gerritPatchsetNumber
211 default: ''
212 description: 'PatchSet number in Gerrit'
213
214 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700215 name: testRuns
216 default: '{test-runs}'
217 description: 'How many times to repeat the tests'
218
219 - string:
220 name: extraRobotArgs
221 default: '{robot-args}'
222 description: 'Arguments to pass to robot'
223
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700224 - string:
225 name: workFlow
226 default: '{work-flow}'
227 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700228
Kailash8b8de742019-07-30 08:54:51 -0700229 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700230 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700231
Zack Williamsb3292082019-10-11 17:15:18 -0700232 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700233
234 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700235 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700236 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700237 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700238
239- job-template:
240 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800241 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700242 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700243 sandbox: true
Kailashaad71012019-08-27 10:36:53 -0700244
245 description: |
246 <!-- Managed by Jenkins Job Builder -->
247 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
248 E2E Validation for Voltha 2.X
249
250 properties:
251 - cord-infra-properties:
252 build-days-to-keep: '{build-days-to-keep}'
253 artifact-num-to-keep: '{artifact-num-to-keep}'
254
255 wrappers:
256 - lf-infra-wrappers:
257 build-timeout: '{build-timeout}'
258 jenkins-ssh-credential: '{jenkins-ssh-credential}'
259
260 parameters:
261 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700262 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700263 default: 'ubuntu16.04-basebuild-4c-8g'
264 description: 'Name of the Jenkins node to run the job on'
265
266 - string:
267 name: manifestUrl
268 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
269 description: 'URL to the repo manifest'
270
271 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700272 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700273 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700274 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700275
276 - string:
hwchiu14f97852019-10-08 10:51:11 -0700277 name: gerritProject
278 default: '$GERRIT_PROJECT'
279 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700280
281 - string:
hwchiu14f97852019-10-08 10:51:11 -0700282 name: gerritChangeNumber
283 default: '$GERRIT_CHANGE_NUMBER'
284 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700285
286 - string:
hwchiu14f97852019-10-08 10:51:11 -0700287 name: gerritPatchsetNumber
288 default: '$GERRIT_PATCHSET_NUMBER'
289 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700290
291 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700292 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700293 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700294 description: 'Helm flags to pass to ./voltha up'
295
Kailashaad71012019-08-27 10:36:53 -0700296 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700297 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700298
Zack Williamsb3292082019-10-11 17:15:18 -0700299 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700300
301 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700302 - gerrit:
303 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700304 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700305 silent-start: true
306 trigger-on:
307 - patchset-created-event:
308 exclude-drafts: true
309 exclude-trivial-rebase: false
310 exclude-no-code-change: true
311 - draft-published-event
312 - comment-added-contains-event:
313 comment-contains-value: '(?i)^.*recheck$'
314 projects:
315 - project-compare-type: REG_EXP
316 project-pattern: '^{project}$'
317 branches:
318 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700319 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700320 file-paths:
321 - compare-type: REG_EXP
322 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700323
324# POD Per Patchset Pipeline Jobs
325
326- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700327 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700328 id: verify_physical_voltha_patchset_auto
329 description: |
330 <!-- Managed by Jenkins Job Builder -->
331 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
332 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
333 Created by Andy Bavier, andy@opennetworking.org <br />
334 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700335 sandbox: true
336 pipeline-script: 'voltha-physical-build-and-tests.groovy'
337
338 properties:
339 - cord-infra-properties:
340 build-days-to-keep: '{build-days-to-keep}'
341 artifact-num-to-keep: '{artifact-num-to-keep}'
342
343 parameters:
344 - string:
345 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700346 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700347 description: 'Pod management node'
348
349 - string:
350 name: manifestUrl
351 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
352 description: 'URL to the repo manifest'
353
354 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700355 name: branch
356 default: '$GERRIT_BRANCH'
357 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700358
359 - string:
360 name: gerritProject
361 default: '$GERRIT_PROJECT'
362 description: 'Name of the Gerrit project'
363
364 - string:
365 name: gerritChangeNumber
366 default: '$GERRIT_CHANGE_NUMBER'
367 description: 'Changeset number in Gerrit'
368
369 - string:
370 name: gerritPatchsetNumber
371 default: '$GERRIT_PATCHSET_NUMBER'
372 description: 'PatchSet number in Gerrit'
373
374 - string:
375 name: cordRepoUrl
376 default: '{gerrit-server-url}'
377 description: 'The URL of the CORD Project repository'
378
379 - string:
380 name: podName
381 default: '{config-pod}'
382
383 - string:
384 name: deploymentConfigFile
385 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
386 description: 'Path of deployment config file'
387
388 - string:
389 name: kindVolthaValuesFile
390 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
391 description: 'Path of kind-voltha values override file'
392
393 - string:
394 name: sadisConfigFile
395 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
396 description: 'Path of SADIS config to load'
397
398 - string:
399 name: localConfigDir
400 default: null
401 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
402
403 - string:
404 name: configRepo
405 default: 'pod-configs'
406 description: 'A repository containing the config files, will be checked out if specified'
407
408 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700409 name: oltDebVersionMaster
410 default: '{oltDebVersionMaster}'
411 description: 'OLT Software version to install for master branch builds'
412
413 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700414 name: oltDebVersion
Andy Bavier893d2442020-05-21 12:41:17 -0700415 default: '{oltDebVersionVoltha23}'
416 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700417
418 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700419 name: profile
420 default: '{profile}'
421 description: 'Technology Profile pushed to the ETCD'
422
423 - string:
424 name: notificationEmail
425 default: 'andy@opennetworking.org'
426 description: ''
427
428 - bool:
429 name: reinstallOlt
430 default: true
431 description: "Re-install OLT software"
432
Zack Williams03ebb272020-03-27 09:42:33 -0700433 - string:
434 name: manualBranch
435 default: '{manualBranch}'
436 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700437
438 - string:
439 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700440 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700441 description: 'Arguments to pass to robot'
442
443 project-type: pipeline
444 concurrent: true
445
446 dsl: !include-raw-escape: pipeline/{pipeline-script}
447
448 triggers:
449 - gerrit:
450 server-name: '{gerrit-server-name}'
451 dependency-jobs: '{dependency-jobs}'
452 silent-start: false
453 successful-message: "PASSED hardware test"
454 failure-message: "FAILED hardware test"
455 unstable-message: "UNSTABLE hardware test"
456 trigger-on:
457 - comment-added-event:
458 approval-category: 'Code-Review'
459 approval-value: '+2'
460 projects:
461 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700462 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700463 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700464 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700465 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700466
467
468- job-template:
469 name: '{name}'
470 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700471 description: |
472 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700473 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700474 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700475 Created by Andy Bavier, andy@opennetworking.org <br />
476 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700477 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700478 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700479
480 properties:
481 - cord-infra-properties:
482 build-days-to-keep: '{build-days-to-keep}'
483 artifact-num-to-keep: '{artifact-num-to-keep}'
484
485 parameters:
486 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700487 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700488 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700489 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700490
491 - string:
492 name: manifestUrl
493 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
494 description: 'URL to the repo manifest'
495
496 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700497 name: branch
498 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700499 description: 'Name of the repo branch to use'
500
501 - string:
502 name: gerritProject
503 default: '$GERRIT_PROJECT'
504 description: 'Name of the Gerrit project'
505
506 - string:
507 name: gerritChangeNumber
508 default: '$GERRIT_CHANGE_NUMBER'
509 description: 'Changeset number in Gerrit'
510
511 - string:
512 name: gerritPatchsetNumber
513 default: '$GERRIT_PATCHSET_NUMBER'
514 description: 'PatchSet number in Gerrit'
515
516 - string:
517 name: cordRepoUrl
518 default: '{gerrit-server-url}'
519 description: 'The URL of the CORD Project repository'
520
521 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700522 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700523 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700524
525 - string:
526 name: deploymentConfigFile
527 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
528 description: 'Path of deployment config file'
529
530 - string:
531 name: kindVolthaValuesFile
532 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
533 description: 'Path of kind-voltha values override file'
534
535 - string:
536 name: sadisConfigFile
537 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
538 description: 'Path of SADIS config to load'
539
540 - string:
541 name: localConfigDir
542 default: null
543 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
544
545 - string:
546 name: configRepo
547 default: 'pod-configs'
548 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700549
550 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700551 name: oltDebVersionMaster
552 default: '{oltDebVersionMaster}'
553 description: 'OLT Software version to install for master branch builds'
554
555 - string:
556 name: oltDebVersionVoltha23
557 default: '{oltDebVersionVoltha23}'
558 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700559
560 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700561 name: profile
562 default: '{profile}'
563 description: 'Technology Profile pushed to the ETCD'
564
565 - string:
566 name: notificationEmail
567 default: 'andy@opennetworking.org'
568 description: ''
569
570 - bool:
571 name: reinstallOlt
572 default: true
573 description: "Re-install OLT software"
574
Zack Williams03ebb272020-03-27 09:42:33 -0700575 - string:
576 name: manualBranch
577 default: '{manualBranch}'
578 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700579
Andy Bavier8c11d462019-12-17 08:19:34 -0700580 - string:
581 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700582 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700583 description: 'Arguments to pass to robot'
584
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700585 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700586 concurrent: true
587
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700588 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700589
Andy Bavier1f465592019-11-06 10:03:56 -0700590 triggers:
591 - gerrit:
592 server-name: '{gerrit-server-name}'
593 dependency-jobs: '{dependency-jobs}'
594 silent-start: false
595 successful-message: "PASSED hardware test"
596 failure-message: "FAILED hardware test"
597 unstable-message: "UNSTABLE hardware test"
598 trigger-on:
599 - comment-added-contains-event:
600 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800601 - comment-added-contains-event:
602 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700603 projects:
604 - project-compare-type: REG_EXP
Andy Bavierdb01b122020-05-28 12:59:41 -0700605 project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests|ofagent-py|ofagent-go|voltha-onos|kind-voltha)$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700606 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700607 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700608 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700609
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700610
611- job-template:
612 name: '{name}'
613 id: build_physical_voltha_manual
614 description: |
615 <!-- Managed by Jenkins Job Builder -->
616 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
617 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
618 Created by Andy Bavier, andy@opennetworking.org <br />
619 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700620 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700621 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700622
623 properties:
624 - cord-infra-properties:
625 build-days-to-keep: '{build-days-to-keep}'
626 artifact-num-to-keep: '{artifact-num-to-keep}'
627
628 parameters:
629 - string:
630 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700631 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700632 description: 'Pod management node'
633
634 - string:
635 name: manifestUrl
636 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
637 description: 'URL to the repo manifest'
638
639 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700640 name: branch
641 default: "$GERRIT_BRANCH"
642 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700643
644 - string:
645 name: gerritProject
646 default: '$GERRIT_PROJECT'
647 description: 'Name of the Gerrit project'
648
649 - string:
650 name: gerritChangeNumber
651 default: '$GERRIT_CHANGE_NUMBER'
652 description: 'Changeset number in Gerrit'
653
654 - string:
655 name: gerritPatchsetNumber
656 default: '$GERRIT_PATCHSET_NUMBER'
657 description: 'PatchSet number in Gerrit'
658
659 - string:
660 name: cordRepoUrl
661 default: '{gerrit-server-url}'
662 description: 'The URL of the CORD Project repository'
663
664 - string:
665 name: podName
666 default: '{config-pod}'
667
668 - string:
669 name: deploymentConfigFile
670 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
671 description: 'Path of deployment config file'
672
673 - string:
674 name: kindVolthaValuesFile
675 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
676 description: 'Path of kind-voltha values override file'
677
678 - string:
679 name: sadisConfigFile
680 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
681 description: 'Path of SADIS config to load'
682
683 - string:
684 name: localConfigDir
685 default: null
686 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
687
688 - string:
689 name: configRepo
690 default: 'pod-configs'
691 description: 'A repository containing the config files, will be checked out if specified'
692
693 - string:
Andy Bavier893d2442020-05-21 12:41:17 -0700694 name: oltDebVersionMaster
695 default: '{oltDebVersionMaster}'
696 description: 'OLT Software version to install for master branch builds'
697
698 - string:
699 name: oltDebVersionVoltha23
700 default: '{oltDebVersionVoltha23}'
701 description: 'OLT Software version to install for voltha-2.3 branch builds'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700702
703 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700704 name: profile
705 default: '{profile}'
706 description: 'Technology Profile pushed to the ETCD'
707
708 - string:
709 name: notificationEmail
710 default: 'andy@opennetworking.org'
711 description: ''
712
713 - bool:
714 name: reinstallOlt
715 default: false
716 description: "Re-install OLT software"
717
Zack Williams03ebb272020-03-27 09:42:33 -0700718 - string:
719 name: manualBranch
720 default: '{manualBranch}'
721 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700722
Andy Bavier8c11d462019-12-17 08:19:34 -0700723 - string:
724 name: extraRobotArgs
725 default: '-e bbsim'
726 description: 'Arguments to pass to robot'
727
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700728 project-type: pipeline
729 concurrent: true
730
731 dsl: !include-raw-escape: pipeline/{pipeline-script}