blob: 623336470905e2cc30d41dcfb97f65ac6578720a [file] [log] [blame]
Kailash8b8de742019-07-30 08:54:51 -07001---
2# voltha 2.0 tests
3
4- project:
5 name: voltha-e2e
6
7 project-name: '{name}'
Zack Williams03ebb272020-03-27 09:42:33 -07008 manualBranch: ''
Kailash8b8de742019-07-30 08:54:51 -07009
10 jobs:
hwchiu14f97852019-10-08 10:51:11 -070011 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -070012 name: 'periodic-voltha-sanity-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -070013 build-node: 'qct-pod4-node2'
Andy Bavier4c8b3232019-11-22 16:17:47 -070014 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -070015 make-target: sanity-multi-kind
16 onus: 2
17 pons: 2
Andy Bavier10926f12020-03-27 16:53:43 -070018 time-trigger: "H H/6 * * *"
19
20 - 'voltha-periodic-test':
21 name: 'periodic-voltha-sanity-test-2.3'
22 build-node: 'qct-pod4-node2'
23 code-branch: 'voltha-2.3'
24 make-target: sanity-multi-kind
25 onus: 2
26 pons: 2
27 time-trigger: "H H/6 * * *"
Andy Bavier218385e2019-11-13 09:51:38 -070028
29 - 'voltha-periodic-test':
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070030 name: 'periodic-voltha-test-bbsim'
31 pipeline-script: 'voltha-nightly-tests-bbsim.groovy'
Andy Bavierf93f3142020-01-09 16:08:51 -070032 build-node: 'qct-pod4-node2'
Andy Bavierd4ba3372020-01-21 17:01:53 -070033 make-target: functional-single-kind
Hung-Wei Chiu5ec2edf2020-04-30 14:53:13 -070034 code-branch: 'master'
Andy Bavierf93f3142020-01-09 16:08:51 -070035 onus: 1
36 pons: 1
Andy Bavierd4ba3372020-01-21 17:01:53 -070037 time-trigger: "H H/12 * * *"
Andy Bavierf93f3142020-01-09 16:08:51 -070038
39 - 'voltha-periodic-test':
Andy Bavier10926f12020-03-27 16:53:43 -070040 name: 'periodic-voltha-functional-test-2.3'
41 build-node: 'qct-pod4-node2'
42 code-branch: 'voltha-2.3'
43 make-target: functional-single-kind
44 onus: 1
45 pons: 1
46 time-trigger: "H H/12 * * *"
47
48 - 'voltha-periodic-test':
hwchiufdc49242019-11-18 16:37:22 -080049 name: 'periodic-voltha-system-test'
50 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080051 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080052 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080053 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080054 onus: 2
55 pons: 2
56 time-trigger: "H H/12 * * *"
57
58 - 'voltha-periodic-test':
Andy Bavier10926f12020-03-27 16:53:43 -070059 name: 'periodic-voltha-system-test-2.3'
60 pipeline-script: 'voltha-system-test-bbsim.groovy'
61 build-node: 'ubuntu16.04-basebuild-4c-8g'
62 code-branch: 'voltha-2.3'
63 make-target: sanity-multi-kind
64 onus: 2
65 pons: 2
66 time-trigger: "H H/12 * * *"
67
68
69 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070070 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070071 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070072 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -070073 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070074 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070075 onus: 1
76 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070077 test-runs: 5
Andy Bavier10926f12020-03-27 16:53:43 -070078 time-trigger: "H H/6 * * *"
79
80 - 'voltha-periodic-test':
81 name: 'periodic-voltha-sanity-test-multi-runs-2.3'
82 pipeline-script: 'voltha-go-multi-tests.groovy'
83 build-node: 'qct-pod4-node2'
84 code-branch: 'voltha-2.3'
85 make-target: sanity-kind
86 onus: 1
87 pons: 1
88 test-runs: 5
89 time-trigger: "H H/6 * * *"
Andy Bavier3708d072019-12-10 15:22:18 -070090
91 - 'voltha-periodic-test':
Andy Bavier0d1d63e2020-03-03 13:52:02 -070092 name: 'periodic-voltha-alarm-test'
93 build-node: 'qct-pod4-node2'
Andy Bavier0d1d63e2020-03-03 13:52:02 -070094 code-branch: 'master'
95 make-target: bbsim-alarms-kind
96 onus: 1
97 pons: 1
98 time-trigger: "H H/3 * * *"
99
Andy Bavier10926f12020-03-27 16:53:43 -0700100 - 'voltha-periodic-test':
101 name: 'periodic-voltha-alarm-test-2.3'
102 build-node: 'qct-pod4-node2'
103 code-branch: 'voltha-2.3'
104 make-target: bbsim-alarms-kind
105 onus: 1
106 pons: 1
107 time-trigger: "H H/3 * * *"
108
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700109 - 'voltha-periodic-test':
110 name: 'nightly-voltha-DTflow-sanity-test'
111 build-node: 'ubuntu16.04-basebuild-4c-8g'
112 code-branch: 'master'
113 make-target: sanity-kind-dt
114 onus: 1
115 pons: 1
116 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700117 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700118
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700119 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700120 - 'verify_physical_voltha_patchset_auto':
121 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700122 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700123 config-pod: 'tucson-pod'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700124 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700125 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700126
127 # Per-patchset Pod builds on Tucson pod
128 - 'verify_physical_voltha_patchset_manual':
129 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700130 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700131 config-pod: 'tucson-pod'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700132 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700133 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700134
135 # Manual build job for Tucson pod
136 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700137 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700138 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700139 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700140 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700141 manualBranch: 'master'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700142 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700143 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700144
Kailash8b8de742019-07-30 08:54:51 -0700145- job-template:
Kailashaad71012019-08-27 10:36:53 -0700146 id: 'voltha-periodic-test'
147 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700148 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700149 test-runs: 1
150 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700151 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700152 work-flow: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700153 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700154
Kailash8b8de742019-07-30 08:54:51 -0700155 description: |
156 <!-- Managed by Jenkins Job Builder -->
157 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
158 E2E Validation for Voltha 2.X
159
160 properties:
161 - cord-infra-properties:
162 build-days-to-keep: '{build-days-to-keep}'
163 artifact-num-to-keep: '{artifact-num-to-keep}'
164
165 wrappers:
166 - lf-infra-wrappers:
167 build-timeout: '{build-timeout}'
168 jenkins-ssh-credential: '{jenkins-ssh-credential}'
169
170 parameters:
171 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700172 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700173 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700174 description: 'Name of the Jenkins node to run the job on'
175
176 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700177 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700178 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700179 description: 'Helm flags to pass to ./voltha up'
180
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700181 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700182 name: makeTarget
183 default: '{make-target}'
184 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700185
Andy Bavier4c8b3232019-11-22 16:17:47 -0700186 - string:
187 name: manifestUrl
188 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700189 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700190
191 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700192 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700193 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700194 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700195
Andy Bavier3708d072019-12-10 15:22:18 -0700196 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700197 name: gerritProject
198 default: '{gerrit-project}'
199 description: 'Name of the Gerrit project'
200
201 - string:
202 name: gerritChangeNumber
203 default: ''
204 description: 'Changeset number in Gerrit'
205
206 - string:
207 name: gerritPatchsetNumber
208 default: ''
209 description: 'PatchSet number in Gerrit'
210
211 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700212 name: testRuns
213 default: '{test-runs}'
214 description: 'How many times to repeat the tests'
215
216 - string:
217 name: extraRobotArgs
218 default: '{robot-args}'
219 description: 'Arguments to pass to robot'
220
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700221 - string:
222 name: workFlow
223 default: '{work-flow}'
224 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700225
Kailash8b8de742019-07-30 08:54:51 -0700226 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700227 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700228
Zack Williamsb3292082019-10-11 17:15:18 -0700229 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700230
231 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700232 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700233 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700234 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700235
236- job-template:
237 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800238 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700239 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700240 sandbox: true
Kailashaad71012019-08-27 10:36:53 -0700241
242 description: |
243 <!-- Managed by Jenkins Job Builder -->
244 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
245 E2E Validation for Voltha 2.X
246
247 properties:
248 - cord-infra-properties:
249 build-days-to-keep: '{build-days-to-keep}'
250 artifact-num-to-keep: '{artifact-num-to-keep}'
251
252 wrappers:
253 - lf-infra-wrappers:
254 build-timeout: '{build-timeout}'
255 jenkins-ssh-credential: '{jenkins-ssh-credential}'
256
257 parameters:
258 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700259 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700260 default: 'ubuntu16.04-basebuild-4c-8g'
261 description: 'Name of the Jenkins node to run the job on'
262
263 - string:
264 name: manifestUrl
265 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
266 description: 'URL to the repo manifest'
267
268 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700269 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700270 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700271 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700272
273 - string:
hwchiu14f97852019-10-08 10:51:11 -0700274 name: gerritProject
275 default: '$GERRIT_PROJECT'
276 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700277
278 - string:
hwchiu14f97852019-10-08 10:51:11 -0700279 name: gerritChangeNumber
280 default: '$GERRIT_CHANGE_NUMBER'
281 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700282
283 - string:
hwchiu14f97852019-10-08 10:51:11 -0700284 name: gerritPatchsetNumber
285 default: '$GERRIT_PATCHSET_NUMBER'
286 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700287
288 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700289 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700290 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700291 description: 'Helm flags to pass to ./voltha up'
292
Kailashaad71012019-08-27 10:36:53 -0700293 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700294 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700295
Zack Williamsb3292082019-10-11 17:15:18 -0700296 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700297
298 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700299 - gerrit:
300 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700301 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700302 silent-start: true
303 trigger-on:
304 - patchset-created-event:
305 exclude-drafts: true
306 exclude-trivial-rebase: false
307 exclude-no-code-change: true
308 - draft-published-event
309 - comment-added-contains-event:
310 comment-contains-value: '(?i)^.*recheck$'
311 projects:
312 - project-compare-type: REG_EXP
313 project-pattern: '^{project}$'
314 branches:
315 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700316 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700317 file-paths:
318 - compare-type: REG_EXP
319 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700320
321# POD Per Patchset Pipeline Jobs
322
323- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700324 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700325 id: verify_physical_voltha_patchset_auto
326 description: |
327 <!-- Managed by Jenkins Job Builder -->
328 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
329 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
330 Created by Andy Bavier, andy@opennetworking.org <br />
331 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700332 sandbox: true
333 pipeline-script: 'voltha-physical-build-and-tests.groovy'
334
335 properties:
336 - cord-infra-properties:
337 build-days-to-keep: '{build-days-to-keep}'
338 artifact-num-to-keep: '{artifact-num-to-keep}'
339
340 parameters:
341 - string:
342 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700343 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700344 description: 'Pod management node'
345
346 - string:
347 name: manifestUrl
348 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
349 description: 'URL to the repo manifest'
350
351 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700352 name: branch
353 default: '$GERRIT_BRANCH'
354 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700355
356 - string:
357 name: gerritProject
358 default: '$GERRIT_PROJECT'
359 description: 'Name of the Gerrit project'
360
361 - string:
362 name: gerritChangeNumber
363 default: '$GERRIT_CHANGE_NUMBER'
364 description: 'Changeset number in Gerrit'
365
366 - string:
367 name: gerritPatchsetNumber
368 default: '$GERRIT_PATCHSET_NUMBER'
369 description: 'PatchSet number in Gerrit'
370
371 - string:
372 name: cordRepoUrl
373 default: '{gerrit-server-url}'
374 description: 'The URL of the CORD Project repository'
375
376 - string:
377 name: podName
378 default: '{config-pod}'
379
380 - string:
381 name: deploymentConfigFile
382 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
383 description: 'Path of deployment config file'
384
385 - string:
386 name: kindVolthaValuesFile
387 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
388 description: 'Path of kind-voltha values override file'
389
390 - string:
391 name: sadisConfigFile
392 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
393 description: 'Path of SADIS config to load'
394
395 - string:
396 name: localConfigDir
397 default: null
398 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
399
400 - string:
401 name: configRepo
402 default: 'pod-configs'
403 description: 'A repository containing the config files, will be checked out if specified'
404
405 - string:
406 name: oltDebVersion
407 default: '{oltDebVersion}'
408 description: 'OLT Software version to install'
409
410 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700411 name: profile
412 default: '{profile}'
413 description: 'Technology Profile pushed to the ETCD'
414
415 - string:
416 name: notificationEmail
417 default: 'andy@opennetworking.org'
418 description: ''
419
420 - bool:
421 name: reinstallOlt
422 default: true
423 description: "Re-install OLT software"
424
Zack Williams03ebb272020-03-27 09:42:33 -0700425 - string:
426 name: manualBranch
427 default: '{manualBranch}'
428 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700429
430 - string:
431 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700432 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700433 description: 'Arguments to pass to robot'
434
435 project-type: pipeline
436 concurrent: true
437
438 dsl: !include-raw-escape: pipeline/{pipeline-script}
439
440 triggers:
441 - gerrit:
442 server-name: '{gerrit-server-name}'
443 dependency-jobs: '{dependency-jobs}'
444 silent-start: false
445 successful-message: "PASSED hardware test"
446 failure-message: "FAILED hardware test"
447 unstable-message: "UNSTABLE hardware test"
448 trigger-on:
449 - comment-added-event:
450 approval-category: 'Code-Review'
451 approval-value: '+2'
452 projects:
453 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700454 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700455 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700456 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700457 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700458
459
460- job-template:
461 name: '{name}'
462 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700463 description: |
464 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700465 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700466 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700467 Created by Andy Bavier, andy@opennetworking.org <br />
468 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700469 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700470 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700471
472 properties:
473 - cord-infra-properties:
474 build-days-to-keep: '{build-days-to-keep}'
475 artifact-num-to-keep: '{artifact-num-to-keep}'
476
477 parameters:
478 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700479 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700480 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700481 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700482
483 - string:
484 name: manifestUrl
485 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
486 description: 'URL to the repo manifest'
487
488 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700489 name: branch
490 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700491 description: 'Name of the repo branch to use'
492
493 - string:
494 name: gerritProject
495 default: '$GERRIT_PROJECT'
496 description: 'Name of the Gerrit project'
497
498 - string:
499 name: gerritChangeNumber
500 default: '$GERRIT_CHANGE_NUMBER'
501 description: 'Changeset number in Gerrit'
502
503 - string:
504 name: gerritPatchsetNumber
505 default: '$GERRIT_PATCHSET_NUMBER'
506 description: 'PatchSet number in Gerrit'
507
508 - string:
509 name: cordRepoUrl
510 default: '{gerrit-server-url}'
511 description: 'The URL of the CORD Project repository'
512
513 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700514 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700515 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700516
517 - string:
518 name: deploymentConfigFile
519 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
520 description: 'Path of deployment config file'
521
522 - string:
523 name: kindVolthaValuesFile
524 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
525 description: 'Path of kind-voltha values override file'
526
527 - string:
528 name: sadisConfigFile
529 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
530 description: 'Path of SADIS config to load'
531
532 - string:
533 name: localConfigDir
534 default: null
535 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
536
537 - string:
538 name: configRepo
539 default: 'pod-configs'
540 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700541
542 - string:
543 name: oltDebVersion
544 default: '{oltDebVersion}'
545 description: 'OLT Software version to install'
546
547 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700548 name: profile
549 default: '{profile}'
550 description: 'Technology Profile pushed to the ETCD'
551
552 - string:
553 name: notificationEmail
554 default: 'andy@opennetworking.org'
555 description: ''
556
557 - bool:
558 name: reinstallOlt
559 default: true
560 description: "Re-install OLT software"
561
Zack Williams03ebb272020-03-27 09:42:33 -0700562 - string:
563 name: manualBranch
564 default: '{manualBranch}'
565 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700566
Andy Bavier8c11d462019-12-17 08:19:34 -0700567 - string:
568 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700569 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700570 description: 'Arguments to pass to robot'
571
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700572 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700573 concurrent: true
574
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700575 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700576
Andy Bavier1f465592019-11-06 10:03:56 -0700577 triggers:
578 - gerrit:
579 server-name: '{gerrit-server-name}'
580 dependency-jobs: '{dependency-jobs}'
581 silent-start: false
582 successful-message: "PASSED hardware test"
583 failure-message: "FAILED hardware test"
584 unstable-message: "UNSTABLE hardware test"
585 trigger-on:
586 - comment-added-contains-event:
587 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800588 - comment-added-contains-event:
589 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700590 projects:
591 - project-compare-type: REG_EXP
Zack Williams03ebb272020-03-27 09:42:33 -0700592 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 -0700593 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700594 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700595 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700596
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700597
598- job-template:
599 name: '{name}'
600 id: build_physical_voltha_manual
601 description: |
602 <!-- Managed by Jenkins Job Builder -->
603 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
604 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
605 Created by Andy Bavier, andy@opennetworking.org <br />
606 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700607 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700608 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700609
610 properties:
611 - cord-infra-properties:
612 build-days-to-keep: '{build-days-to-keep}'
613 artifact-num-to-keep: '{artifact-num-to-keep}'
614
615 parameters:
616 - string:
617 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700618 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700619 description: 'Pod management node'
620
621 - string:
622 name: manifestUrl
623 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
624 description: 'URL to the repo manifest'
625
626 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700627 name: branch
628 default: "$GERRIT_BRANCH"
629 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700630
631 - string:
632 name: gerritProject
633 default: '$GERRIT_PROJECT'
634 description: 'Name of the Gerrit project'
635
636 - string:
637 name: gerritChangeNumber
638 default: '$GERRIT_CHANGE_NUMBER'
639 description: 'Changeset number in Gerrit'
640
641 - string:
642 name: gerritPatchsetNumber
643 default: '$GERRIT_PATCHSET_NUMBER'
644 description: 'PatchSet number in Gerrit'
645
646 - string:
647 name: cordRepoUrl
648 default: '{gerrit-server-url}'
649 description: 'The URL of the CORD Project repository'
650
651 - string:
652 name: podName
653 default: '{config-pod}'
654
655 - string:
656 name: deploymentConfigFile
657 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
658 description: 'Path of deployment config file'
659
660 - string:
661 name: kindVolthaValuesFile
662 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
663 description: 'Path of kind-voltha values override file'
664
665 - string:
666 name: sadisConfigFile
667 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
668 description: 'Path of SADIS config to load'
669
670 - string:
671 name: localConfigDir
672 default: null
673 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
674
675 - string:
676 name: configRepo
677 default: 'pod-configs'
678 description: 'A repository containing the config files, will be checked out if specified'
679
680 - string:
681 name: oltDebVersion
682 default: '{oltDebVersion}'
683 description: 'OLT Software version to install'
684
685 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700686 name: profile
687 default: '{profile}'
688 description: 'Technology Profile pushed to the ETCD'
689
690 - string:
691 name: notificationEmail
692 default: 'andy@opennetworking.org'
693 description: ''
694
695 - bool:
696 name: reinstallOlt
697 default: false
698 description: "Re-install OLT software"
699
Zack Williams03ebb272020-03-27 09:42:33 -0700700 - string:
701 name: manualBranch
702 default: '{manualBranch}'
703 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700704
Andy Bavier8c11d462019-12-17 08:19:34 -0700705 - string:
706 name: extraRobotArgs
707 default: '-e bbsim'
708 description: 'Arguments to pass to robot'
709
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700710 project-type: pipeline
711 concurrent: true
712
713 dsl: !include-raw-escape: pipeline/{pipeline-script}