blob: 4d4ad98626eabe4096e18863147086b5cc7697c5 [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 Bavier218385e2019-11-13 09:51:38 -070092 name: 'periodic-voltha-scale-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070093 build-node: 'qct-pod4-node2'
Andy Bavier4c8b3232019-11-22 16:17:47 -070094 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070095 make-target: scale-multi-kind
96 onus: 2
97 pons: 8
Andy Bavier10926f12020-03-27 16:53:43 -070098 time-trigger: "H H/6 * * *"
99
100 - 'voltha-periodic-test':
101 name: 'periodic-voltha-scale-test-2.3'
102 build-node: 'qct-pod4-node2'
103 code-branch: 'voltha-2.3'
104 make-target: scale-multi-kind
105 onus: 2
106 pons: 8
107 time-trigger: "H H/6 * * *"
Kailashaad71012019-08-27 10:36:53 -0700108
Andy Bavier0d1d63e2020-03-03 13:52:02 -0700109 - 'voltha-periodic-test':
110 name: 'periodic-voltha-alarm-test'
111 build-node: 'qct-pod4-node2'
Andy Bavier0d1d63e2020-03-03 13:52:02 -0700112 code-branch: 'master'
113 make-target: bbsim-alarms-kind
114 onus: 1
115 pons: 1
116 time-trigger: "H H/3 * * *"
117
Andy Bavier10926f12020-03-27 16:53:43 -0700118 - 'voltha-periodic-test':
119 name: 'periodic-voltha-alarm-test-2.3'
120 build-node: 'qct-pod4-node2'
121 code-branch: 'voltha-2.3'
122 make-target: bbsim-alarms-kind
123 onus: 1
124 pons: 1
125 time-trigger: "H H/3 * * *"
126
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700127 - 'voltha-periodic-test':
128 name: 'nightly-voltha-DTflow-sanity-test'
129 build-node: 'ubuntu16.04-basebuild-4c-8g'
130 code-branch: 'master'
131 make-target: sanity-kind-dt
132 onus: 1
133 pons: 1
134 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700135 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700136
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700137 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700138 - 'verify_physical_voltha_patchset_auto':
139 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700140 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700141 config-pod: 'tucson-pod'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700142 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700143 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700144
145 # Per-patchset Pod builds on Tucson pod
146 - 'verify_physical_voltha_patchset_manual':
147 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700148 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700149 config-pod: 'tucson-pod'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700150 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700151 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700152
153 # Manual build job for Tucson pod
154 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700155 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700156 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700157 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700158 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700159 manualBranch: 'master'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700160 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700161 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700162
Kailash8b8de742019-07-30 08:54:51 -0700163- job-template:
Kailashaad71012019-08-27 10:36:53 -0700164 id: 'voltha-periodic-test'
165 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700166 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700167 test-runs: 1
168 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700169 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700170 work-flow: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700171 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700172
Kailash8b8de742019-07-30 08:54:51 -0700173 description: |
174 <!-- Managed by Jenkins Job Builder -->
175 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
176 E2E Validation for Voltha 2.X
177
178 properties:
179 - cord-infra-properties:
180 build-days-to-keep: '{build-days-to-keep}'
181 artifact-num-to-keep: '{artifact-num-to-keep}'
182
183 wrappers:
184 - lf-infra-wrappers:
185 build-timeout: '{build-timeout}'
186 jenkins-ssh-credential: '{jenkins-ssh-credential}'
187
188 parameters:
189 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700190 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700191 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700192 description: 'Name of the Jenkins node to run the job on'
193
194 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700195 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700196 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700197 description: 'Helm flags to pass to ./voltha up'
198
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700199 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700200 name: makeTarget
201 default: '{make-target}'
202 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700203
Andy Bavier4c8b3232019-11-22 16:17:47 -0700204 - string:
205 name: manifestUrl
206 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700207 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700208
209 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700210 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700211 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700212 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700213
Andy Bavier3708d072019-12-10 15:22:18 -0700214 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700215 name: gerritProject
216 default: '{gerrit-project}'
217 description: 'Name of the Gerrit project'
218
219 - string:
220 name: gerritChangeNumber
221 default: ''
222 description: 'Changeset number in Gerrit'
223
224 - string:
225 name: gerritPatchsetNumber
226 default: ''
227 description: 'PatchSet number in Gerrit'
228
229 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700230 name: testRuns
231 default: '{test-runs}'
232 description: 'How many times to repeat the tests'
233
234 - string:
235 name: extraRobotArgs
236 default: '{robot-args}'
237 description: 'Arguments to pass to robot'
238
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700239 - string:
240 name: workFlow
241 default: '{work-flow}'
242 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700243
Kailash8b8de742019-07-30 08:54:51 -0700244 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700245 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700246
Zack Williamsb3292082019-10-11 17:15:18 -0700247 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700248
249 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700250 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700251 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700252 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700253
254- job-template:
255 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800256 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700257 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700258 sandbox: true
Kailashaad71012019-08-27 10:36:53 -0700259
260 description: |
261 <!-- Managed by Jenkins Job Builder -->
262 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
263 E2E Validation for Voltha 2.X
264
265 properties:
266 - cord-infra-properties:
267 build-days-to-keep: '{build-days-to-keep}'
268 artifact-num-to-keep: '{artifact-num-to-keep}'
269
270 wrappers:
271 - lf-infra-wrappers:
272 build-timeout: '{build-timeout}'
273 jenkins-ssh-credential: '{jenkins-ssh-credential}'
274
275 parameters:
276 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700277 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700278 default: 'ubuntu16.04-basebuild-4c-8g'
279 description: 'Name of the Jenkins node to run the job on'
280
281 - string:
282 name: manifestUrl
283 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
284 description: 'URL to the repo manifest'
285
286 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700287 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700288 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700289 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700290
291 - string:
hwchiu14f97852019-10-08 10:51:11 -0700292 name: gerritProject
293 default: '$GERRIT_PROJECT'
294 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700295
296 - string:
hwchiu14f97852019-10-08 10:51:11 -0700297 name: gerritChangeNumber
298 default: '$GERRIT_CHANGE_NUMBER'
299 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700300
301 - string:
hwchiu14f97852019-10-08 10:51:11 -0700302 name: gerritPatchsetNumber
303 default: '$GERRIT_PATCHSET_NUMBER'
304 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700305
306 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700307 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700308 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700309 description: 'Helm flags to pass to ./voltha up'
310
Kailashaad71012019-08-27 10:36:53 -0700311 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700312 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700313
Zack Williamsb3292082019-10-11 17:15:18 -0700314 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700315
316 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700317 - gerrit:
318 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700319 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700320 silent-start: true
321 trigger-on:
322 - patchset-created-event:
323 exclude-drafts: true
324 exclude-trivial-rebase: false
325 exclude-no-code-change: true
326 - draft-published-event
327 - comment-added-contains-event:
328 comment-contains-value: '(?i)^.*recheck$'
329 projects:
330 - project-compare-type: REG_EXP
331 project-pattern: '^{project}$'
332 branches:
333 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700334 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700335 file-paths:
336 - compare-type: REG_EXP
337 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700338
339# POD Per Patchset Pipeline Jobs
340
341- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700342 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700343 id: verify_physical_voltha_patchset_auto
344 description: |
345 <!-- Managed by Jenkins Job Builder -->
346 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
347 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
348 Created by Andy Bavier, andy@opennetworking.org <br />
349 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700350 sandbox: true
351 pipeline-script: 'voltha-physical-build-and-tests.groovy'
352
353 properties:
354 - cord-infra-properties:
355 build-days-to-keep: '{build-days-to-keep}'
356 artifact-num-to-keep: '{artifact-num-to-keep}'
357
358 parameters:
359 - string:
360 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700361 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700362 description: 'Pod management node'
363
364 - string:
365 name: manifestUrl
366 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
367 description: 'URL to the repo manifest'
368
369 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700370 name: branch
371 default: '$GERRIT_BRANCH'
372 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700373
374 - string:
375 name: gerritProject
376 default: '$GERRIT_PROJECT'
377 description: 'Name of the Gerrit project'
378
379 - string:
380 name: gerritChangeNumber
381 default: '$GERRIT_CHANGE_NUMBER'
382 description: 'Changeset number in Gerrit'
383
384 - string:
385 name: gerritPatchsetNumber
386 default: '$GERRIT_PATCHSET_NUMBER'
387 description: 'PatchSet number in Gerrit'
388
389 - string:
390 name: cordRepoUrl
391 default: '{gerrit-server-url}'
392 description: 'The URL of the CORD Project repository'
393
394 - string:
395 name: podName
396 default: '{config-pod}'
397
398 - string:
399 name: deploymentConfigFile
400 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
401 description: 'Path of deployment config file'
402
403 - string:
404 name: kindVolthaValuesFile
405 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
406 description: 'Path of kind-voltha values override file'
407
408 - string:
409 name: sadisConfigFile
410 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
411 description: 'Path of SADIS config to load'
412
413 - string:
414 name: localConfigDir
415 default: null
416 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
417
418 - string:
419 name: configRepo
420 default: 'pod-configs'
421 description: 'A repository containing the config files, will be checked out if specified'
422
423 - string:
424 name: oltDebVersion
425 default: '{oltDebVersion}'
426 description: 'OLT Software version to install'
427
428 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700429 name: profile
430 default: '{profile}'
431 description: 'Technology Profile pushed to the ETCD'
432
433 - string:
434 name: notificationEmail
435 default: 'andy@opennetworking.org'
436 description: ''
437
438 - bool:
439 name: reinstallOlt
440 default: true
441 description: "Re-install OLT software"
442
Zack Williams03ebb272020-03-27 09:42:33 -0700443 - string:
444 name: manualBranch
445 default: '{manualBranch}'
446 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700447
448 - string:
449 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700450 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700451 description: 'Arguments to pass to robot'
452
453 project-type: pipeline
454 concurrent: true
455
456 dsl: !include-raw-escape: pipeline/{pipeline-script}
457
458 triggers:
459 - gerrit:
460 server-name: '{gerrit-server-name}'
461 dependency-jobs: '{dependency-jobs}'
462 silent-start: false
463 successful-message: "PASSED hardware test"
464 failure-message: "FAILED hardware test"
465 unstable-message: "UNSTABLE hardware test"
466 trigger-on:
467 - comment-added-event:
468 approval-category: 'Code-Review'
469 approval-value: '+2'
470 projects:
471 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700472 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700473 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700474 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700475 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700476
477
478- job-template:
479 name: '{name}'
480 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700481 description: |
482 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700483 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700484 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700485 Created by Andy Bavier, andy@opennetworking.org <br />
486 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700487 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700488 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700489
490 properties:
491 - cord-infra-properties:
492 build-days-to-keep: '{build-days-to-keep}'
493 artifact-num-to-keep: '{artifact-num-to-keep}'
494
495 parameters:
496 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700497 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700498 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700499 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700500
501 - string:
502 name: manifestUrl
503 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
504 description: 'URL to the repo manifest'
505
506 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700507 name: branch
508 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700509 description: 'Name of the repo branch to use'
510
511 - string:
512 name: gerritProject
513 default: '$GERRIT_PROJECT'
514 description: 'Name of the Gerrit project'
515
516 - string:
517 name: gerritChangeNumber
518 default: '$GERRIT_CHANGE_NUMBER'
519 description: 'Changeset number in Gerrit'
520
521 - string:
522 name: gerritPatchsetNumber
523 default: '$GERRIT_PATCHSET_NUMBER'
524 description: 'PatchSet number in Gerrit'
525
526 - string:
527 name: cordRepoUrl
528 default: '{gerrit-server-url}'
529 description: 'The URL of the CORD Project repository'
530
531 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700532 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700533 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700534
535 - string:
536 name: deploymentConfigFile
537 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
538 description: 'Path of deployment config file'
539
540 - string:
541 name: kindVolthaValuesFile
542 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
543 description: 'Path of kind-voltha values override file'
544
545 - string:
546 name: sadisConfigFile
547 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
548 description: 'Path of SADIS config to load'
549
550 - string:
551 name: localConfigDir
552 default: null
553 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
554
555 - string:
556 name: configRepo
557 default: 'pod-configs'
558 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700559
560 - string:
561 name: oltDebVersion
562 default: '{oltDebVersion}'
563 description: 'OLT Software version to install'
564
565 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700566 name: profile
567 default: '{profile}'
568 description: 'Technology Profile pushed to the ETCD'
569
570 - string:
571 name: notificationEmail
572 default: 'andy@opennetworking.org'
573 description: ''
574
575 - bool:
576 name: reinstallOlt
577 default: true
578 description: "Re-install OLT software"
579
Zack Williams03ebb272020-03-27 09:42:33 -0700580 - string:
581 name: manualBranch
582 default: '{manualBranch}'
583 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700584
Andy Bavier8c11d462019-12-17 08:19:34 -0700585 - string:
586 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700587 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700588 description: 'Arguments to pass to robot'
589
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700590 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700591 concurrent: true
592
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700593 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700594
Andy Bavier1f465592019-11-06 10:03:56 -0700595 triggers:
596 - gerrit:
597 server-name: '{gerrit-server-name}'
598 dependency-jobs: '{dependency-jobs}'
599 silent-start: false
600 successful-message: "PASSED hardware test"
601 failure-message: "FAILED hardware test"
602 unstable-message: "UNSTABLE hardware test"
603 trigger-on:
604 - comment-added-contains-event:
605 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800606 - comment-added-contains-event:
607 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700608 projects:
609 - project-compare-type: REG_EXP
Zack Williams03ebb272020-03-27 09:42:33 -0700610 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 -0700611 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700612 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700613 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700614
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700615
616- job-template:
617 name: '{name}'
618 id: build_physical_voltha_manual
619 description: |
620 <!-- Managed by Jenkins Job Builder -->
621 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
622 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
623 Created by Andy Bavier, andy@opennetworking.org <br />
624 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700625 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700626 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700627
628 properties:
629 - cord-infra-properties:
630 build-days-to-keep: '{build-days-to-keep}'
631 artifact-num-to-keep: '{artifact-num-to-keep}'
632
633 parameters:
634 - string:
635 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700636 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700637 description: 'Pod management node'
638
639 - string:
640 name: manifestUrl
641 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
642 description: 'URL to the repo manifest'
643
644 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700645 name: branch
646 default: "$GERRIT_BRANCH"
647 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700648
649 - string:
650 name: gerritProject
651 default: '$GERRIT_PROJECT'
652 description: 'Name of the Gerrit project'
653
654 - string:
655 name: gerritChangeNumber
656 default: '$GERRIT_CHANGE_NUMBER'
657 description: 'Changeset number in Gerrit'
658
659 - string:
660 name: gerritPatchsetNumber
661 default: '$GERRIT_PATCHSET_NUMBER'
662 description: 'PatchSet number in Gerrit'
663
664 - string:
665 name: cordRepoUrl
666 default: '{gerrit-server-url}'
667 description: 'The URL of the CORD Project repository'
668
669 - string:
670 name: podName
671 default: '{config-pod}'
672
673 - string:
674 name: deploymentConfigFile
675 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
676 description: 'Path of deployment config file'
677
678 - string:
679 name: kindVolthaValuesFile
680 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
681 description: 'Path of kind-voltha values override file'
682
683 - string:
684 name: sadisConfigFile
685 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
686 description: 'Path of SADIS config to load'
687
688 - string:
689 name: localConfigDir
690 default: null
691 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
692
693 - string:
694 name: configRepo
695 default: 'pod-configs'
696 description: 'A repository containing the config files, will be checked out if specified'
697
698 - string:
699 name: oltDebVersion
700 default: '{oltDebVersion}'
701 description: 'OLT Software version to install'
702
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}