blob: 9a1ffb279053e2f29b83fcfb0cc218bc87e8cf86 [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"
143
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700144 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700145 - 'verify_physical_voltha_patchset_auto':
146 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700147 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700148 config-pod: 'tucson-pod'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700149 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700150 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700151
152 # Per-patchset Pod builds on Tucson pod
153 - 'verify_physical_voltha_patchset_manual':
154 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700155 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700156 config-pod: 'tucson-pod'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700157 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700158 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700159
160 # Manual build job for Tucson pod
161 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700162 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700163 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700164 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700165 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700166 manualBranch: 'master'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700167 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700168 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700169
Kailash8b8de742019-07-30 08:54:51 -0700170- job-template:
Kailashaad71012019-08-27 10:36:53 -0700171 id: 'voltha-periodic-test'
172 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700173 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700174 test-runs: 1
175 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700176 gerrit-project: ''
177
Kailash8b8de742019-07-30 08:54:51 -0700178 description: |
179 <!-- Managed by Jenkins Job Builder -->
180 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
181 E2E Validation for Voltha 2.X
182
183 properties:
184 - cord-infra-properties:
185 build-days-to-keep: '{build-days-to-keep}'
186 artifact-num-to-keep: '{artifact-num-to-keep}'
187
188 wrappers:
189 - lf-infra-wrappers:
190 build-timeout: '{build-timeout}'
191 jenkins-ssh-credential: '{jenkins-ssh-credential}'
192
193 parameters:
194 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700195 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700196 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700197 description: 'Name of the Jenkins node to run the job on'
198
199 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700200 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700201 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700202 description: 'Helm flags to pass to ./voltha up'
203
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700204 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700205 name: makeTarget
206 default: '{make-target}'
207 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700208
Andy Bavier4c8b3232019-11-22 16:17:47 -0700209 - string:
210 name: manifestUrl
211 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700212 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700213
214 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700215 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700216 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700217 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700218
Andy Bavier3708d072019-12-10 15:22:18 -0700219 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700220 name: gerritProject
221 default: '{gerrit-project}'
222 description: 'Name of the Gerrit project'
223
224 - string:
225 name: gerritChangeNumber
226 default: ''
227 description: 'Changeset number in Gerrit'
228
229 - string:
230 name: gerritPatchsetNumber
231 default: ''
232 description: 'PatchSet number in Gerrit'
233
234 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700235 name: testRuns
236 default: '{test-runs}'
237 description: 'How many times to repeat the tests'
238
239 - string:
240 name: extraRobotArgs
241 default: '{robot-args}'
242 description: 'Arguments to pass to robot'
243
244
Kailash8b8de742019-07-30 08:54:51 -0700245 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700246 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700247
Zack Williamsb3292082019-10-11 17:15:18 -0700248 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700249
250 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700251 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700252 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700253 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700254
255- job-template:
256 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800257 name: 'verify_{project}_sanity-test{name-extension}'
Kailashaad71012019-08-27 10:36:53 -0700258
259 description: |
260 <!-- Managed by Jenkins Job Builder -->
261 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
262 E2E Validation for Voltha 2.X
263
264 properties:
265 - cord-infra-properties:
266 build-days-to-keep: '{build-days-to-keep}'
267 artifact-num-to-keep: '{artifact-num-to-keep}'
268
269 wrappers:
270 - lf-infra-wrappers:
271 build-timeout: '{build-timeout}'
272 jenkins-ssh-credential: '{jenkins-ssh-credential}'
273
274 parameters:
275 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700276 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700277 default: 'ubuntu16.04-basebuild-4c-8g'
278 description: 'Name of the Jenkins node to run the job on'
279
280 - string:
281 name: manifestUrl
282 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
283 description: 'URL to the repo manifest'
284
285 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700286 name: branch
287 default: '$GERRIT_BRANCH'
288 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700289
290 - string:
hwchiu14f97852019-10-08 10:51:11 -0700291 name: gerritProject
292 default: '$GERRIT_PROJECT'
293 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700294
295 - string:
hwchiu14f97852019-10-08 10:51:11 -0700296 name: gerritChangeNumber
297 default: '$GERRIT_CHANGE_NUMBER'
298 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700299
300 - string:
hwchiu14f97852019-10-08 10:51:11 -0700301 name: gerritPatchsetNumber
302 default: '$GERRIT_PATCHSET_NUMBER'
303 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700304
305 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700306 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700307 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700308 description: 'Helm flags to pass to ./voltha up'
309
Kailashaad71012019-08-27 10:36:53 -0700310 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700311 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700312
Zack Williamsb3292082019-10-11 17:15:18 -0700313 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700314
315 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700316 - gerrit:
317 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700318 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700319 silent-start: true
320 trigger-on:
321 - patchset-created-event:
322 exclude-drafts: true
323 exclude-trivial-rebase: false
324 exclude-no-code-change: true
325 - draft-published-event
326 - comment-added-contains-event:
327 comment-contains-value: '(?i)^.*recheck$'
328 projects:
329 - project-compare-type: REG_EXP
330 project-pattern: '^{project}$'
331 branches:
332 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700333 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700334 file-paths:
335 - compare-type: REG_EXP
336 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700337
338# POD Per Patchset Pipeline Jobs
339
340- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700341 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700342 id: verify_physical_voltha_patchset_auto
343 description: |
344 <!-- Managed by Jenkins Job Builder -->
345 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
346 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
347 Created by Andy Bavier, andy@opennetworking.org <br />
348 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700349 sandbox: true
350 pipeline-script: 'voltha-physical-build-and-tests.groovy'
351
352 properties:
353 - cord-infra-properties:
354 build-days-to-keep: '{build-days-to-keep}'
355 artifact-num-to-keep: '{artifact-num-to-keep}'
356
357 parameters:
358 - string:
359 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700360 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700361 description: 'Pod management node'
362
363 - string:
364 name: manifestUrl
365 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
366 description: 'URL to the repo manifest'
367
368 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700369 name: branch
370 default: '$GERRIT_BRANCH'
371 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700372
373 - string:
374 name: gerritProject
375 default: '$GERRIT_PROJECT'
376 description: 'Name of the Gerrit project'
377
378 - string:
379 name: gerritChangeNumber
380 default: '$GERRIT_CHANGE_NUMBER'
381 description: 'Changeset number in Gerrit'
382
383 - string:
384 name: gerritPatchsetNumber
385 default: '$GERRIT_PATCHSET_NUMBER'
386 description: 'PatchSet number in Gerrit'
387
388 - string:
389 name: cordRepoUrl
390 default: '{gerrit-server-url}'
391 description: 'The URL of the CORD Project repository'
392
393 - string:
394 name: podName
395 default: '{config-pod}'
396
397 - string:
398 name: deploymentConfigFile
399 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
400 description: 'Path of deployment config file'
401
402 - string:
403 name: kindVolthaValuesFile
404 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
405 description: 'Path of kind-voltha values override file'
406
407 - string:
408 name: sadisConfigFile
409 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
410 description: 'Path of SADIS config to load'
411
412 - string:
413 name: localConfigDir
414 default: null
415 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
416
417 - string:
418 name: configRepo
419 default: 'pod-configs'
420 description: 'A repository containing the config files, will be checked out if specified'
421
422 - string:
423 name: oltDebVersion
424 default: '{oltDebVersion}'
425 description: 'OLT Software version to install'
426
427 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700428 name: profile
429 default: '{profile}'
430 description: 'Technology Profile pushed to the ETCD'
431
432 - string:
433 name: notificationEmail
434 default: 'andy@opennetworking.org'
435 description: ''
436
437 - bool:
438 name: reinstallOlt
439 default: true
440 description: "Re-install OLT software"
441
Zack Williams03ebb272020-03-27 09:42:33 -0700442 - string:
443 name: manualBranch
444 default: '{manualBranch}'
445 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700446
447 - string:
448 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700449 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700450 description: 'Arguments to pass to robot'
451
452 project-type: pipeline
453 concurrent: true
454
455 dsl: !include-raw-escape: pipeline/{pipeline-script}
456
457 triggers:
458 - gerrit:
459 server-name: '{gerrit-server-name}'
460 dependency-jobs: '{dependency-jobs}'
461 silent-start: false
462 successful-message: "PASSED hardware test"
463 failure-message: "FAILED hardware test"
464 unstable-message: "UNSTABLE hardware test"
465 trigger-on:
466 - comment-added-event:
467 approval-category: 'Code-Review'
468 approval-value: '+2'
469 projects:
470 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700471 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700472 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700473 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700474 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700475
476
477- job-template:
478 name: '{name}'
479 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700480 description: |
481 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700482 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700483 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700484 Created by Andy Bavier, andy@opennetworking.org <br />
485 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700486 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700487 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700488
489 properties:
490 - cord-infra-properties:
491 build-days-to-keep: '{build-days-to-keep}'
492 artifact-num-to-keep: '{artifact-num-to-keep}'
493
494 parameters:
495 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700496 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700497 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700498 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700499
500 - string:
501 name: manifestUrl
502 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
503 description: 'URL to the repo manifest'
504
505 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700506 name: branch
507 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700508 description: 'Name of the repo branch to use'
509
510 - string:
511 name: gerritProject
512 default: '$GERRIT_PROJECT'
513 description: 'Name of the Gerrit project'
514
515 - string:
516 name: gerritChangeNumber
517 default: '$GERRIT_CHANGE_NUMBER'
518 description: 'Changeset number in Gerrit'
519
520 - string:
521 name: gerritPatchsetNumber
522 default: '$GERRIT_PATCHSET_NUMBER'
523 description: 'PatchSet number in Gerrit'
524
525 - string:
526 name: cordRepoUrl
527 default: '{gerrit-server-url}'
528 description: 'The URL of the CORD Project repository'
529
530 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700531 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700532 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700533
534 - string:
535 name: deploymentConfigFile
536 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
537 description: 'Path of deployment config file'
538
539 - string:
540 name: kindVolthaValuesFile
541 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
542 description: 'Path of kind-voltha values override file'
543
544 - string:
545 name: sadisConfigFile
546 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
547 description: 'Path of SADIS config to load'
548
549 - string:
550 name: localConfigDir
551 default: null
552 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
553
554 - string:
555 name: configRepo
556 default: 'pod-configs'
557 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700558
559 - string:
560 name: oltDebVersion
561 default: '{oltDebVersion}'
562 description: 'OLT Software version to install'
563
564 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700565 name: profile
566 default: '{profile}'
567 description: 'Technology Profile pushed to the ETCD'
568
569 - string:
570 name: notificationEmail
571 default: 'andy@opennetworking.org'
572 description: ''
573
574 - bool:
575 name: reinstallOlt
576 default: true
577 description: "Re-install OLT software"
578
Zack Williams03ebb272020-03-27 09:42:33 -0700579 - string:
580 name: manualBranch
581 default: '{manualBranch}'
582 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700583
Andy Bavier8c11d462019-12-17 08:19:34 -0700584 - string:
585 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700586 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700587 description: 'Arguments to pass to robot'
588
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700589 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700590 concurrent: true
591
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700592 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700593
Andy Bavier1f465592019-11-06 10:03:56 -0700594 triggers:
595 - gerrit:
596 server-name: '{gerrit-server-name}'
597 dependency-jobs: '{dependency-jobs}'
598 silent-start: false
599 successful-message: "PASSED hardware test"
600 failure-message: "FAILED hardware test"
601 unstable-message: "UNSTABLE hardware test"
602 trigger-on:
603 - comment-added-contains-event:
604 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800605 - comment-added-contains-event:
606 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700607 projects:
608 - project-compare-type: REG_EXP
Zack Williams03ebb272020-03-27 09:42:33 -0700609 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 -0700610 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700611 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700612 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700613
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700614
615- job-template:
616 name: '{name}'
617 id: build_physical_voltha_manual
618 description: |
619 <!-- Managed by Jenkins Job Builder -->
620 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
621 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
622 Created by Andy Bavier, andy@opennetworking.org <br />
623 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700624 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700625 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700626
627 properties:
628 - cord-infra-properties:
629 build-days-to-keep: '{build-days-to-keep}'
630 artifact-num-to-keep: '{artifact-num-to-keep}'
631
632 parameters:
633 - string:
634 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700635 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700636 description: 'Pod management node'
637
638 - string:
639 name: manifestUrl
640 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
641 description: 'URL to the repo manifest'
642
643 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700644 name: branch
645 default: "$GERRIT_BRANCH"
646 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700647
648 - string:
649 name: gerritProject
650 default: '$GERRIT_PROJECT'
651 description: 'Name of the Gerrit project'
652
653 - string:
654 name: gerritChangeNumber
655 default: '$GERRIT_CHANGE_NUMBER'
656 description: 'Changeset number in Gerrit'
657
658 - string:
659 name: gerritPatchsetNumber
660 default: '$GERRIT_PATCHSET_NUMBER'
661 description: 'PatchSet number in Gerrit'
662
663 - string:
664 name: cordRepoUrl
665 default: '{gerrit-server-url}'
666 description: 'The URL of the CORD Project repository'
667
668 - string:
669 name: podName
670 default: '{config-pod}'
671
672 - string:
673 name: deploymentConfigFile
674 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
675 description: 'Path of deployment config file'
676
677 - string:
678 name: kindVolthaValuesFile
679 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
680 description: 'Path of kind-voltha values override file'
681
682 - string:
683 name: sadisConfigFile
684 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
685 description: 'Path of SADIS config to load'
686
687 - string:
688 name: localConfigDir
689 default: null
690 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
691
692 - string:
693 name: configRepo
694 default: 'pod-configs'
695 description: 'A repository containing the config files, will be checked out if specified'
696
697 - string:
698 name: oltDebVersion
699 default: '{oltDebVersion}'
700 description: 'OLT Software version to install'
701
702 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700703 name: profile
704 default: '{profile}'
705 description: 'Technology Profile pushed to the ETCD'
706
707 - string:
708 name: notificationEmail
709 default: 'andy@opennetworking.org'
710 description: ''
711
712 - bool:
713 name: reinstallOlt
714 default: false
715 description: "Re-install OLT software"
716
Zack Williams03ebb272020-03-27 09:42:33 -0700717 - string:
718 name: manualBranch
719 default: '{manualBranch}'
720 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700721
Andy Bavier8c11d462019-12-17 08:19:34 -0700722 - string:
723 name: extraRobotArgs
724 default: '-e bbsim'
725 description: 'Arguments to pass to robot'
726
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700727 project-type: pipeline
728 concurrent: true
729
730 dsl: !include-raw-escape: pipeline/{pipeline-script}