blob: 439c7947408ceeddc22f0ab53e6f0c1360449430 [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 Bavierb35171c2020-03-06 15:47:29 -0700179
Kailash8b8de742019-07-30 08:54:51 -0700180 description: |
181 <!-- Managed by Jenkins Job Builder -->
182 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
183 E2E Validation for Voltha 2.X
184
185 properties:
186 - cord-infra-properties:
187 build-days-to-keep: '{build-days-to-keep}'
188 artifact-num-to-keep: '{artifact-num-to-keep}'
189
190 wrappers:
191 - lf-infra-wrappers:
192 build-timeout: '{build-timeout}'
193 jenkins-ssh-credential: '{jenkins-ssh-credential}'
194
195 parameters:
196 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700197 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700198 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700199 description: 'Name of the Jenkins node to run the job on'
200
201 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700202 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700203 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700204 description: 'Helm flags to pass to ./voltha up'
205
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700206 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700207 name: makeTarget
208 default: '{make-target}'
209 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700210
Andy Bavier4c8b3232019-11-22 16:17:47 -0700211 - string:
212 name: manifestUrl
213 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700214 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700215
216 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700217 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700218 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700219 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700220
Andy Bavier3708d072019-12-10 15:22:18 -0700221 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700222 name: gerritProject
223 default: '{gerrit-project}'
224 description: 'Name of the Gerrit project'
225
226 - string:
227 name: gerritChangeNumber
228 default: ''
229 description: 'Changeset number in Gerrit'
230
231 - string:
232 name: gerritPatchsetNumber
233 default: ''
234 description: 'PatchSet number in Gerrit'
235
236 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700237 name: testRuns
238 default: '{test-runs}'
239 description: 'How many times to repeat the tests'
240
241 - string:
242 name: extraRobotArgs
243 default: '{robot-args}'
244 description: 'Arguments to pass to robot'
245
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700246 - string:
247 name: workFlow
248 default: '{work-flow}'
249 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700250
Kailash8b8de742019-07-30 08:54:51 -0700251 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700252 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700253
Zack Williamsb3292082019-10-11 17:15:18 -0700254 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700255
256 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700257 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700258 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700259 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700260
261- job-template:
262 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800263 name: 'verify_{project}_sanity-test{name-extension}'
Kailashaad71012019-08-27 10:36:53 -0700264
265 description: |
266 <!-- Managed by Jenkins Job Builder -->
267 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
268 E2E Validation for Voltha 2.X
269
270 properties:
271 - cord-infra-properties:
272 build-days-to-keep: '{build-days-to-keep}'
273 artifact-num-to-keep: '{artifact-num-to-keep}'
274
275 wrappers:
276 - lf-infra-wrappers:
277 build-timeout: '{build-timeout}'
278 jenkins-ssh-credential: '{jenkins-ssh-credential}'
279
280 parameters:
281 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700282 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700283 default: 'ubuntu16.04-basebuild-4c-8g'
284 description: 'Name of the Jenkins node to run the job on'
285
286 - string:
287 name: manifestUrl
288 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
289 description: 'URL to the repo manifest'
290
291 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700292 name: branch
293 default: '$GERRIT_BRANCH'
294 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700295
296 - string:
hwchiu14f97852019-10-08 10:51:11 -0700297 name: gerritProject
298 default: '$GERRIT_PROJECT'
299 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700300
301 - string:
hwchiu14f97852019-10-08 10:51:11 -0700302 name: gerritChangeNumber
303 default: '$GERRIT_CHANGE_NUMBER'
304 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700305
306 - string:
hwchiu14f97852019-10-08 10:51:11 -0700307 name: gerritPatchsetNumber
308 default: '$GERRIT_PATCHSET_NUMBER'
309 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700310
311 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700312 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700313 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700314 description: 'Helm flags to pass to ./voltha up'
315
Kailashaad71012019-08-27 10:36:53 -0700316 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700317 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700318
Zack Williamsb3292082019-10-11 17:15:18 -0700319 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700320
321 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700322 - gerrit:
323 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700324 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700325 silent-start: true
326 trigger-on:
327 - patchset-created-event:
328 exclude-drafts: true
329 exclude-trivial-rebase: false
330 exclude-no-code-change: true
331 - draft-published-event
332 - comment-added-contains-event:
333 comment-contains-value: '(?i)^.*recheck$'
334 projects:
335 - project-compare-type: REG_EXP
336 project-pattern: '^{project}$'
337 branches:
338 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700339 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700340 file-paths:
341 - compare-type: REG_EXP
342 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700343
344# POD Per Patchset Pipeline Jobs
345
346- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700347 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700348 id: verify_physical_voltha_patchset_auto
349 description: |
350 <!-- Managed by Jenkins Job Builder -->
351 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
352 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
353 Created by Andy Bavier, andy@opennetworking.org <br />
354 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700355 sandbox: true
356 pipeline-script: 'voltha-physical-build-and-tests.groovy'
357
358 properties:
359 - cord-infra-properties:
360 build-days-to-keep: '{build-days-to-keep}'
361 artifact-num-to-keep: '{artifact-num-to-keep}'
362
363 parameters:
364 - string:
365 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700366 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700367 description: 'Pod management node'
368
369 - string:
370 name: manifestUrl
371 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
372 description: 'URL to the repo manifest'
373
374 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700375 name: branch
376 default: '$GERRIT_BRANCH'
377 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700378
379 - string:
380 name: gerritProject
381 default: '$GERRIT_PROJECT'
382 description: 'Name of the Gerrit project'
383
384 - string:
385 name: gerritChangeNumber
386 default: '$GERRIT_CHANGE_NUMBER'
387 description: 'Changeset number in Gerrit'
388
389 - string:
390 name: gerritPatchsetNumber
391 default: '$GERRIT_PATCHSET_NUMBER'
392 description: 'PatchSet number in Gerrit'
393
394 - string:
395 name: cordRepoUrl
396 default: '{gerrit-server-url}'
397 description: 'The URL of the CORD Project repository'
398
399 - string:
400 name: podName
401 default: '{config-pod}'
402
403 - string:
404 name: deploymentConfigFile
405 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
406 description: 'Path of deployment config file'
407
408 - string:
409 name: kindVolthaValuesFile
410 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
411 description: 'Path of kind-voltha values override file'
412
413 - string:
414 name: sadisConfigFile
415 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
416 description: 'Path of SADIS config to load'
417
418 - string:
419 name: localConfigDir
420 default: null
421 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
422
423 - string:
424 name: configRepo
425 default: 'pod-configs'
426 description: 'A repository containing the config files, will be checked out if specified'
427
428 - string:
429 name: oltDebVersion
430 default: '{oltDebVersion}'
431 description: 'OLT Software version to install'
432
433 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700434 name: profile
435 default: '{profile}'
436 description: 'Technology Profile pushed to the ETCD'
437
438 - string:
439 name: notificationEmail
440 default: 'andy@opennetworking.org'
441 description: ''
442
443 - bool:
444 name: reinstallOlt
445 default: true
446 description: "Re-install OLT software"
447
Zack Williams03ebb272020-03-27 09:42:33 -0700448 - string:
449 name: manualBranch
450 default: '{manualBranch}'
451 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700452
453 - string:
454 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700455 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700456 description: 'Arguments to pass to robot'
457
458 project-type: pipeline
459 concurrent: true
460
461 dsl: !include-raw-escape: pipeline/{pipeline-script}
462
463 triggers:
464 - gerrit:
465 server-name: '{gerrit-server-name}'
466 dependency-jobs: '{dependency-jobs}'
467 silent-start: false
468 successful-message: "PASSED hardware test"
469 failure-message: "FAILED hardware test"
470 unstable-message: "UNSTABLE hardware test"
471 trigger-on:
472 - comment-added-event:
473 approval-category: 'Code-Review'
474 approval-value: '+2'
475 projects:
476 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700477 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700478 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700479 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700480 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700481
482
483- job-template:
484 name: '{name}'
485 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700486 description: |
487 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700488 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700489 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700490 Created by Andy Bavier, andy@opennetworking.org <br />
491 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700492 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700493 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700494
495 properties:
496 - cord-infra-properties:
497 build-days-to-keep: '{build-days-to-keep}'
498 artifact-num-to-keep: '{artifact-num-to-keep}'
499
500 parameters:
501 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700502 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700503 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700504 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700505
506 - string:
507 name: manifestUrl
508 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
509 description: 'URL to the repo manifest'
510
511 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700512 name: branch
513 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700514 description: 'Name of the repo branch to use'
515
516 - string:
517 name: gerritProject
518 default: '$GERRIT_PROJECT'
519 description: 'Name of the Gerrit project'
520
521 - string:
522 name: gerritChangeNumber
523 default: '$GERRIT_CHANGE_NUMBER'
524 description: 'Changeset number in Gerrit'
525
526 - string:
527 name: gerritPatchsetNumber
528 default: '$GERRIT_PATCHSET_NUMBER'
529 description: 'PatchSet number in Gerrit'
530
531 - string:
532 name: cordRepoUrl
533 default: '{gerrit-server-url}'
534 description: 'The URL of the CORD Project repository'
535
536 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700537 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700538 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700539
540 - string:
541 name: deploymentConfigFile
542 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
543 description: 'Path of deployment config file'
544
545 - string:
546 name: kindVolthaValuesFile
547 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
548 description: 'Path of kind-voltha values override file'
549
550 - string:
551 name: sadisConfigFile
552 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
553 description: 'Path of SADIS config to load'
554
555 - string:
556 name: localConfigDir
557 default: null
558 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
559
560 - string:
561 name: configRepo
562 default: 'pod-configs'
563 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700564
565 - string:
566 name: oltDebVersion
567 default: '{oltDebVersion}'
568 description: 'OLT Software version to install'
569
570 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700571 name: profile
572 default: '{profile}'
573 description: 'Technology Profile pushed to the ETCD'
574
575 - string:
576 name: notificationEmail
577 default: 'andy@opennetworking.org'
578 description: ''
579
580 - bool:
581 name: reinstallOlt
582 default: true
583 description: "Re-install OLT software"
584
Zack Williams03ebb272020-03-27 09:42:33 -0700585 - string:
586 name: manualBranch
587 default: '{manualBranch}'
588 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700589
Andy Bavier8c11d462019-12-17 08:19:34 -0700590 - string:
591 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700592 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700593 description: 'Arguments to pass to robot'
594
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700595 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700596 concurrent: true
597
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700598 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700599
Andy Bavier1f465592019-11-06 10:03:56 -0700600 triggers:
601 - gerrit:
602 server-name: '{gerrit-server-name}'
603 dependency-jobs: '{dependency-jobs}'
604 silent-start: false
605 successful-message: "PASSED hardware test"
606 failure-message: "FAILED hardware test"
607 unstable-message: "UNSTABLE hardware test"
608 trigger-on:
609 - comment-added-contains-event:
610 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800611 - comment-added-contains-event:
612 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700613 projects:
614 - project-compare-type: REG_EXP
Zack Williams03ebb272020-03-27 09:42:33 -0700615 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 -0700616 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700617 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700618 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700619
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700620
621- job-template:
622 name: '{name}'
623 id: build_physical_voltha_manual
624 description: |
625 <!-- Managed by Jenkins Job Builder -->
626 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
627 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
628 Created by Andy Bavier, andy@opennetworking.org <br />
629 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700630 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700631 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700632
633 properties:
634 - cord-infra-properties:
635 build-days-to-keep: '{build-days-to-keep}'
636 artifact-num-to-keep: '{artifact-num-to-keep}'
637
638 parameters:
639 - string:
640 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700641 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700642 description: 'Pod management node'
643
644 - string:
645 name: manifestUrl
646 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
647 description: 'URL to the repo manifest'
648
649 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700650 name: branch
651 default: "$GERRIT_BRANCH"
652 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700653
654 - string:
655 name: gerritProject
656 default: '$GERRIT_PROJECT'
657 description: 'Name of the Gerrit project'
658
659 - string:
660 name: gerritChangeNumber
661 default: '$GERRIT_CHANGE_NUMBER'
662 description: 'Changeset number in Gerrit'
663
664 - string:
665 name: gerritPatchsetNumber
666 default: '$GERRIT_PATCHSET_NUMBER'
667 description: 'PatchSet number in Gerrit'
668
669 - string:
670 name: cordRepoUrl
671 default: '{gerrit-server-url}'
672 description: 'The URL of the CORD Project repository'
673
674 - string:
675 name: podName
676 default: '{config-pod}'
677
678 - string:
679 name: deploymentConfigFile
680 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
681 description: 'Path of deployment config file'
682
683 - string:
684 name: kindVolthaValuesFile
685 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
686 description: 'Path of kind-voltha values override file'
687
688 - string:
689 name: sadisConfigFile
690 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
691 description: 'Path of SADIS config to load'
692
693 - string:
694 name: localConfigDir
695 default: null
696 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
697
698 - string:
699 name: configRepo
700 default: 'pod-configs'
701 description: 'A repository containing the config files, will be checked out if specified'
702
703 - string:
704 name: oltDebVersion
705 default: '{oltDebVersion}'
706 description: 'OLT Software version to install'
707
708 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700709 name: profile
710 default: '{profile}'
711 description: 'Technology Profile pushed to the ETCD'
712
713 - string:
714 name: notificationEmail
715 default: 'andy@opennetworking.org'
716 description: ''
717
718 - bool:
719 name: reinstallOlt
720 default: false
721 description: "Re-install OLT software"
722
Zack Williams03ebb272020-03-27 09:42:33 -0700723 - string:
724 name: manualBranch
725 default: '{manualBranch}'
726 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700727
Andy Bavier8c11d462019-12-17 08:19:34 -0700728 - string:
729 name: extraRobotArgs
730 default: '-e bbsim'
731 description: 'Arguments to pass to robot'
732
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700733 project-type: pipeline
734 concurrent: true
735
736 dsl: !include-raw-escape: pipeline/{pipeline-script}