blob: 017a153a17145945d205e8fbf0d5d5c3d196aa99 [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 Bavier02b00dc2020-04-28 13:01:12 -0700179 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700180
Kailash8b8de742019-07-30 08:54:51 -0700181 description: |
182 <!-- Managed by Jenkins Job Builder -->
183 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
184 E2E Validation for Voltha 2.X
185
186 properties:
187 - cord-infra-properties:
188 build-days-to-keep: '{build-days-to-keep}'
189 artifact-num-to-keep: '{artifact-num-to-keep}'
190
191 wrappers:
192 - lf-infra-wrappers:
193 build-timeout: '{build-timeout}'
194 jenkins-ssh-credential: '{jenkins-ssh-credential}'
195
196 parameters:
197 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700198 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700199 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700200 description: 'Name of the Jenkins node to run the job on'
201
202 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700203 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700204 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700205 description: 'Helm flags to pass to ./voltha up'
206
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700207 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700208 name: makeTarget
209 default: '{make-target}'
210 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700211
Andy Bavier4c8b3232019-11-22 16:17:47 -0700212 - string:
213 name: manifestUrl
214 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700215 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700216
217 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700218 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700219 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700220 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700221
Andy Bavier3708d072019-12-10 15:22:18 -0700222 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700223 name: gerritProject
224 default: '{gerrit-project}'
225 description: 'Name of the Gerrit project'
226
227 - string:
228 name: gerritChangeNumber
229 default: ''
230 description: 'Changeset number in Gerrit'
231
232 - string:
233 name: gerritPatchsetNumber
234 default: ''
235 description: 'PatchSet number in Gerrit'
236
237 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700238 name: testRuns
239 default: '{test-runs}'
240 description: 'How many times to repeat the tests'
241
242 - string:
243 name: extraRobotArgs
244 default: '{robot-args}'
245 description: 'Arguments to pass to robot'
246
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700247 - string:
248 name: workFlow
249 default: '{work-flow}'
250 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700251
Kailash8b8de742019-07-30 08:54:51 -0700252 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700253 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700254
Zack Williamsb3292082019-10-11 17:15:18 -0700255 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700256
257 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700258 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700259 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700260 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700261
262- job-template:
263 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800264 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700265 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700266 sandbox: true
Kailashaad71012019-08-27 10:36:53 -0700267
268 description: |
269 <!-- Managed by Jenkins Job Builder -->
270 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
271 E2E Validation for Voltha 2.X
272
273 properties:
274 - cord-infra-properties:
275 build-days-to-keep: '{build-days-to-keep}'
276 artifact-num-to-keep: '{artifact-num-to-keep}'
277
278 wrappers:
279 - lf-infra-wrappers:
280 build-timeout: '{build-timeout}'
281 jenkins-ssh-credential: '{jenkins-ssh-credential}'
282
283 parameters:
284 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700285 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700286 default: 'ubuntu16.04-basebuild-4c-8g'
287 description: 'Name of the Jenkins node to run the job on'
288
289 - string:
290 name: manifestUrl
291 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
292 description: 'URL to the repo manifest'
293
294 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700295 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700296 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700297 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700298
299 - string:
hwchiu14f97852019-10-08 10:51:11 -0700300 name: gerritProject
301 default: '$GERRIT_PROJECT'
302 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700303
304 - string:
hwchiu14f97852019-10-08 10:51:11 -0700305 name: gerritChangeNumber
306 default: '$GERRIT_CHANGE_NUMBER'
307 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700308
309 - string:
hwchiu14f97852019-10-08 10:51:11 -0700310 name: gerritPatchsetNumber
311 default: '$GERRIT_PATCHSET_NUMBER'
312 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700313
314 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700315 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700316 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700317 description: 'Helm flags to pass to ./voltha up'
318
Kailashaad71012019-08-27 10:36:53 -0700319 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700320 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700321
Zack Williamsb3292082019-10-11 17:15:18 -0700322 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700323
324 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700325 - gerrit:
326 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700327 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700328 silent-start: true
329 trigger-on:
330 - patchset-created-event:
331 exclude-drafts: true
332 exclude-trivial-rebase: false
333 exclude-no-code-change: true
334 - draft-published-event
335 - comment-added-contains-event:
336 comment-contains-value: '(?i)^.*recheck$'
337 projects:
338 - project-compare-type: REG_EXP
339 project-pattern: '^{project}$'
340 branches:
341 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700342 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700343 file-paths:
344 - compare-type: REG_EXP
345 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700346
347# POD Per Patchset Pipeline Jobs
348
349- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700350 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700351 id: verify_physical_voltha_patchset_auto
352 description: |
353 <!-- Managed by Jenkins Job Builder -->
354 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
355 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
356 Created by Andy Bavier, andy@opennetworking.org <br />
357 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700358 sandbox: true
359 pipeline-script: 'voltha-physical-build-and-tests.groovy'
360
361 properties:
362 - cord-infra-properties:
363 build-days-to-keep: '{build-days-to-keep}'
364 artifact-num-to-keep: '{artifact-num-to-keep}'
365
366 parameters:
367 - string:
368 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700369 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700370 description: 'Pod management node'
371
372 - string:
373 name: manifestUrl
374 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
375 description: 'URL to the repo manifest'
376
377 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700378 name: branch
379 default: '$GERRIT_BRANCH'
380 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700381
382 - string:
383 name: gerritProject
384 default: '$GERRIT_PROJECT'
385 description: 'Name of the Gerrit project'
386
387 - string:
388 name: gerritChangeNumber
389 default: '$GERRIT_CHANGE_NUMBER'
390 description: 'Changeset number in Gerrit'
391
392 - string:
393 name: gerritPatchsetNumber
394 default: '$GERRIT_PATCHSET_NUMBER'
395 description: 'PatchSet number in Gerrit'
396
397 - string:
398 name: cordRepoUrl
399 default: '{gerrit-server-url}'
400 description: 'The URL of the CORD Project repository'
401
402 - string:
403 name: podName
404 default: '{config-pod}'
405
406 - string:
407 name: deploymentConfigFile
408 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
409 description: 'Path of deployment config file'
410
411 - string:
412 name: kindVolthaValuesFile
413 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
414 description: 'Path of kind-voltha values override file'
415
416 - string:
417 name: sadisConfigFile
418 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
419 description: 'Path of SADIS config to load'
420
421 - string:
422 name: localConfigDir
423 default: null
424 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
425
426 - string:
427 name: configRepo
428 default: 'pod-configs'
429 description: 'A repository containing the config files, will be checked out if specified'
430
431 - string:
432 name: oltDebVersion
433 default: '{oltDebVersion}'
434 description: 'OLT Software version to install'
435
436 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700437 name: profile
438 default: '{profile}'
439 description: 'Technology Profile pushed to the ETCD'
440
441 - string:
442 name: notificationEmail
443 default: 'andy@opennetworking.org'
444 description: ''
445
446 - bool:
447 name: reinstallOlt
448 default: true
449 description: "Re-install OLT software"
450
Zack Williams03ebb272020-03-27 09:42:33 -0700451 - string:
452 name: manualBranch
453 default: '{manualBranch}'
454 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700455
456 - string:
457 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700458 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700459 description: 'Arguments to pass to robot'
460
461 project-type: pipeline
462 concurrent: true
463
464 dsl: !include-raw-escape: pipeline/{pipeline-script}
465
466 triggers:
467 - gerrit:
468 server-name: '{gerrit-server-name}'
469 dependency-jobs: '{dependency-jobs}'
470 silent-start: false
471 successful-message: "PASSED hardware test"
472 failure-message: "FAILED hardware test"
473 unstable-message: "UNSTABLE hardware test"
474 trigger-on:
475 - comment-added-event:
476 approval-category: 'Code-Review'
477 approval-value: '+2'
478 projects:
479 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700480 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700481 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700482 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700483 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700484
485
486- job-template:
487 name: '{name}'
488 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700489 description: |
490 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700491 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700492 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700493 Created by Andy Bavier, andy@opennetworking.org <br />
494 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700495 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700496 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700497
498 properties:
499 - cord-infra-properties:
500 build-days-to-keep: '{build-days-to-keep}'
501 artifact-num-to-keep: '{artifact-num-to-keep}'
502
503 parameters:
504 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700505 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700506 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700507 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700508
509 - string:
510 name: manifestUrl
511 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
512 description: 'URL to the repo manifest'
513
514 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700515 name: branch
516 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700517 description: 'Name of the repo branch to use'
518
519 - string:
520 name: gerritProject
521 default: '$GERRIT_PROJECT'
522 description: 'Name of the Gerrit project'
523
524 - string:
525 name: gerritChangeNumber
526 default: '$GERRIT_CHANGE_NUMBER'
527 description: 'Changeset number in Gerrit'
528
529 - string:
530 name: gerritPatchsetNumber
531 default: '$GERRIT_PATCHSET_NUMBER'
532 description: 'PatchSet number in Gerrit'
533
534 - string:
535 name: cordRepoUrl
536 default: '{gerrit-server-url}'
537 description: 'The URL of the CORD Project repository'
538
539 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700540 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700541 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700542
543 - string:
544 name: deploymentConfigFile
545 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
546 description: 'Path of deployment config file'
547
548 - string:
549 name: kindVolthaValuesFile
550 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
551 description: 'Path of kind-voltha values override file'
552
553 - string:
554 name: sadisConfigFile
555 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
556 description: 'Path of SADIS config to load'
557
558 - string:
559 name: localConfigDir
560 default: null
561 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
562
563 - string:
564 name: configRepo
565 default: 'pod-configs'
566 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700567
568 - string:
569 name: oltDebVersion
570 default: '{oltDebVersion}'
571 description: 'OLT Software version to install'
572
573 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700574 name: profile
575 default: '{profile}'
576 description: 'Technology Profile pushed to the ETCD'
577
578 - string:
579 name: notificationEmail
580 default: 'andy@opennetworking.org'
581 description: ''
582
583 - bool:
584 name: reinstallOlt
585 default: true
586 description: "Re-install OLT software"
587
Zack Williams03ebb272020-03-27 09:42:33 -0700588 - string:
589 name: manualBranch
590 default: '{manualBranch}'
591 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700592
Andy Bavier8c11d462019-12-17 08:19:34 -0700593 - string:
594 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700595 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700596 description: 'Arguments to pass to robot'
597
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700598 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700599 concurrent: true
600
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700601 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700602
Andy Bavier1f465592019-11-06 10:03:56 -0700603 triggers:
604 - gerrit:
605 server-name: '{gerrit-server-name}'
606 dependency-jobs: '{dependency-jobs}'
607 silent-start: false
608 successful-message: "PASSED hardware test"
609 failure-message: "FAILED hardware test"
610 unstable-message: "UNSTABLE hardware test"
611 trigger-on:
612 - comment-added-contains-event:
613 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800614 - comment-added-contains-event:
615 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700616 projects:
617 - project-compare-type: REG_EXP
Zack Williams03ebb272020-03-27 09:42:33 -0700618 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 -0700619 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700620 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700621 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700622
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700623
624- job-template:
625 name: '{name}'
626 id: build_physical_voltha_manual
627 description: |
628 <!-- Managed by Jenkins Job Builder -->
629 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
630 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
631 Created by Andy Bavier, andy@opennetworking.org <br />
632 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700633 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700634 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700635
636 properties:
637 - cord-infra-properties:
638 build-days-to-keep: '{build-days-to-keep}'
639 artifact-num-to-keep: '{artifact-num-to-keep}'
640
641 parameters:
642 - string:
643 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700644 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700645 description: 'Pod management node'
646
647 - string:
648 name: manifestUrl
649 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
650 description: 'URL to the repo manifest'
651
652 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700653 name: branch
654 default: "$GERRIT_BRANCH"
655 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700656
657 - string:
658 name: gerritProject
659 default: '$GERRIT_PROJECT'
660 description: 'Name of the Gerrit project'
661
662 - string:
663 name: gerritChangeNumber
664 default: '$GERRIT_CHANGE_NUMBER'
665 description: 'Changeset number in Gerrit'
666
667 - string:
668 name: gerritPatchsetNumber
669 default: '$GERRIT_PATCHSET_NUMBER'
670 description: 'PatchSet number in Gerrit'
671
672 - string:
673 name: cordRepoUrl
674 default: '{gerrit-server-url}'
675 description: 'The URL of the CORD Project repository'
676
677 - string:
678 name: podName
679 default: '{config-pod}'
680
681 - string:
682 name: deploymentConfigFile
683 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
684 description: 'Path of deployment config file'
685
686 - string:
687 name: kindVolthaValuesFile
688 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
689 description: 'Path of kind-voltha values override file'
690
691 - string:
692 name: sadisConfigFile
693 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
694 description: 'Path of SADIS config to load'
695
696 - string:
697 name: localConfigDir
698 default: null
699 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
700
701 - string:
702 name: configRepo
703 default: 'pod-configs'
704 description: 'A repository containing the config files, will be checked out if specified'
705
706 - string:
707 name: oltDebVersion
708 default: '{oltDebVersion}'
709 description: 'OLT Software version to install'
710
711 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700712 name: profile
713 default: '{profile}'
714 description: 'Technology Profile pushed to the ETCD'
715
716 - string:
717 name: notificationEmail
718 default: 'andy@opennetworking.org'
719 description: ''
720
721 - bool:
722 name: reinstallOlt
723 default: false
724 description: "Re-install OLT software"
725
Zack Williams03ebb272020-03-27 09:42:33 -0700726 - string:
727 name: manualBranch
728 default: '{manualBranch}'
729 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700730
Andy Bavier8c11d462019-12-17 08:19:34 -0700731 - string:
732 name: extraRobotArgs
733 default: '-e bbsim'
734 description: 'Arguments to pass to robot'
735
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700736 project-type: pipeline
737 concurrent: true
738
739 dsl: !include-raw-escape: pipeline/{pipeline-script}