blob: 2c4361f303c97a3f8c9a7212d4fd838a4a54f10f [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':
Hung-Wei Chiuc62c2882020-04-29 13:18:07 -070057 name: 'periodic-voltha-failurescenarios-test'
58 build-node: 'ubuntu16.04-basebuild-4c-8g'
59 code-branch: 'master'
60 make-target: bbsim-failurescenarios
61 onus: 1
62 pons: 1
63 time-trigger: "H H/12 * * *"
64
65 - 'voltha-periodic-test':
hwchiufdc49242019-11-18 16:37:22 -080066 name: 'periodic-voltha-system-test'
67 pipeline-script: 'voltha-system-test-bbsim.groovy'
hwchiuc7d5d032019-12-03 16:42:47 -080068 build-node: 'ubuntu16.04-basebuild-4c-8g'
hwchiuc9189b72019-12-02 15:12:29 -080069 code-branch: 'master'
hwchiu593a95a2020-01-30 10:09:39 -080070 make-target: sanity-multi-kind
hwchiufdc49242019-11-18 16:37:22 -080071 onus: 2
72 pons: 2
73 time-trigger: "H H/12 * * *"
74
75 - 'voltha-periodic-test':
Andy Bavier10926f12020-03-27 16:53:43 -070076 name: 'periodic-voltha-system-test-2.3'
77 pipeline-script: 'voltha-system-test-bbsim.groovy'
78 build-node: 'ubuntu16.04-basebuild-4c-8g'
79 code-branch: 'voltha-2.3'
80 make-target: sanity-multi-kind
81 onus: 2
82 pons: 2
83 time-trigger: "H H/12 * * *"
84
85
86 - 'voltha-periodic-test':
Andy Bavier3708d072019-12-10 15:22:18 -070087 name: 'periodic-voltha-sanity-test-multi-runs'
Andy Bavier0088c212020-01-08 13:44:03 -070088 pipeline-script: 'voltha-go-multi-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -070089 build-node: 'qct-pod4-node2'
Andy Bavier3708d072019-12-10 15:22:18 -070090 code-branch: 'master'
Andy Baviereea37da2020-01-17 17:11:32 -070091 make-target: sanity-kind
Andy Bavier93e125e2020-01-17 15:23:50 -070092 onus: 1
93 pons: 1
Andy Bavier3708d072019-12-10 15:22:18 -070094 test-runs: 5
Andy Bavier10926f12020-03-27 16:53:43 -070095 time-trigger: "H H/6 * * *"
96
97 - 'voltha-periodic-test':
98 name: 'periodic-voltha-sanity-test-multi-runs-2.3'
99 pipeline-script: 'voltha-go-multi-tests.groovy'
100 build-node: 'qct-pod4-node2'
101 code-branch: 'voltha-2.3'
102 make-target: sanity-kind
103 onus: 1
104 pons: 1
105 test-runs: 5
106 time-trigger: "H H/6 * * *"
Andy Bavier3708d072019-12-10 15:22:18 -0700107
108 - 'voltha-periodic-test':
Andy Bavier218385e2019-11-13 09:51:38 -0700109 name: 'periodic-voltha-scale-test'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700110 build-node: 'qct-pod4-node2'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700111 code-branch: 'master'
Andy Bavier218385e2019-11-13 09:51:38 -0700112 make-target: scale-multi-kind
113 onus: 2
114 pons: 8
Andy Bavier10926f12020-03-27 16:53:43 -0700115 time-trigger: "H H/6 * * *"
116
117 - 'voltha-periodic-test':
118 name: 'periodic-voltha-scale-test-2.3'
119 build-node: 'qct-pod4-node2'
120 code-branch: 'voltha-2.3'
121 make-target: scale-multi-kind
122 onus: 2
123 pons: 8
124 time-trigger: "H H/6 * * *"
Kailashaad71012019-08-27 10:36:53 -0700125
Andy Bavier0d1d63e2020-03-03 13:52:02 -0700126 - 'voltha-periodic-test':
127 name: 'periodic-voltha-alarm-test'
128 build-node: 'qct-pod4-node2'
Andy Bavier0d1d63e2020-03-03 13:52:02 -0700129 code-branch: 'master'
130 make-target: bbsim-alarms-kind
131 onus: 1
132 pons: 1
133 time-trigger: "H H/3 * * *"
134
Andy Bavier10926f12020-03-27 16:53:43 -0700135 - 'voltha-periodic-test':
136 name: 'periodic-voltha-alarm-test-2.3'
137 build-node: 'qct-pod4-node2'
138 code-branch: 'voltha-2.3'
139 make-target: bbsim-alarms-kind
140 onus: 1
141 pons: 1
142 time-trigger: "H H/3 * * *"
143
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700144 - 'voltha-periodic-test':
145 name: 'nightly-voltha-DTflow-sanity-test'
146 build-node: 'ubuntu16.04-basebuild-4c-8g'
147 code-branch: 'master'
148 make-target: sanity-kind-dt
149 onus: 1
150 pons: 1
151 time-trigger: "@daily"
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700152 work-flow: DT
Hung-Wei Chiuf3f00052020-03-31 11:12:06 -0700153
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700154 # Per-patchset Pod builds on Tucson pod
Andy Bavier51ba7e82019-12-17 11:01:01 -0700155 - 'verify_physical_voltha_patchset_auto':
156 name: 'verify_physical_voltha_patchset_auto'
Zack Williams8ef79812019-10-29 11:09:18 -0700157 build-node: 'tucson-pod'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700158 config-pod: 'tucson-pod'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700159 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700160 profile: 'Default'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700161
162 # Per-patchset Pod builds on Tucson pod
163 - 'verify_physical_voltha_patchset_manual':
164 name: 'verify_physical_voltha_patchset_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700165 build-node: 'tucson-pod'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700166 config-pod: 'tucson-pod'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700167 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700168 profile: 'Default'
Andy Bavier19c98a22019-11-11 13:57:11 -0700169
170 # Manual build job for Tucson pod
171 # Allow local testing without disrupting above job
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700172 - 'build_physical_voltha_manual':
Andy Bavier19c98a22019-11-11 13:57:11 -0700173 name: 'build_tucson-pod_manual'
Zack Williams8ef79812019-10-29 11:09:18 -0700174 build-node: 'tucson-pod'
Andy Bavier19c98a22019-11-11 13:57:11 -0700175 config-pod: 'tucson-pod'
Zack Williams03ebb272020-03-27 09:42:33 -0700176 manualBranch: 'master'
Andy Bavier9c45bd22020-04-06 10:37:38 -0700177 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
Andy Bavier19c98a22019-11-11 13:57:11 -0700178 profile: 'Default'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700179
Kailash8b8de742019-07-30 08:54:51 -0700180- job-template:
Kailashaad71012019-08-27 10:36:53 -0700181 id: 'voltha-periodic-test'
182 name: '{name}'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700183 pipeline-script: 'voltha-go-tests.groovy'
Andy Bavier3708d072019-12-10 15:22:18 -0700184 test-runs: 1
185 robot-args: ''
Andy Bavierb35171c2020-03-06 15:47:29 -0700186 gerrit-project: ''
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700187 work-flow: ''
Andy Bavier02b00dc2020-04-28 13:01:12 -0700188 sandbox: true
Andy Bavierb35171c2020-03-06 15:47:29 -0700189
Kailash8b8de742019-07-30 08:54:51 -0700190 description: |
191 <!-- Managed by Jenkins Job Builder -->
192 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
193 E2E Validation for Voltha 2.X
194
195 properties:
196 - cord-infra-properties:
197 build-days-to-keep: '{build-days-to-keep}'
198 artifact-num-to-keep: '{artifact-num-to-keep}'
199
200 wrappers:
201 - lf-infra-wrappers:
202 build-timeout: '{build-timeout}'
203 jenkins-ssh-credential: '{jenkins-ssh-credential}'
204
205 parameters:
206 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700207 name: buildNode
Andy Bavier833b78e2019-11-22 17:01:31 -0700208 default: '{build-node}'
Kailash8b8de742019-07-30 08:54:51 -0700209 description: 'Name of the Jenkins node to run the job on'
210
211 - string:
Andy Bavierea26c5c2019-09-18 08:09:17 -0700212 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700213 default: '--set onu={onus},pon={pons}'
Andy Bavierea26c5c2019-09-18 08:09:17 -0700214 description: 'Helm flags to pass to ./voltha up'
215
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700216 - string:
Andy Bavier218385e2019-11-13 09:51:38 -0700217 name: makeTarget
218 default: '{make-target}'
219 description: 'Makefile target to invoke during test'
Andy Bavierdabe9fc2019-10-24 17:10:48 -0700220
Andy Bavier4c8b3232019-11-22 16:17:47 -0700221 - string:
222 name: manifestUrl
223 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700224 description: 'Repo manifest URL for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700225
226 - string:
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700227 name: branch
Andy Bavier4c8b3232019-11-22 16:17:47 -0700228 default: '{code-branch}'
Andy Bavier6dfaf7e2020-03-30 14:52:59 -0700229 description: 'Repo manifest branch for code checkout'
Andy Bavier4c8b3232019-11-22 16:17:47 -0700230
Andy Bavier3708d072019-12-10 15:22:18 -0700231 - string:
Andy Bavierb35171c2020-03-06 15:47:29 -0700232 name: gerritProject
233 default: '{gerrit-project}'
234 description: 'Name of the Gerrit project'
235
236 - string:
237 name: gerritChangeNumber
238 default: ''
239 description: 'Changeset number in Gerrit'
240
241 - string:
242 name: gerritPatchsetNumber
243 default: ''
244 description: 'PatchSet number in Gerrit'
245
246 - string:
Andy Bavier3708d072019-12-10 15:22:18 -0700247 name: testRuns
248 default: '{test-runs}'
249 description: 'How many times to repeat the tests'
250
251 - string:
252 name: extraRobotArgs
253 default: '{robot-args}'
254 description: 'Arguments to pass to robot'
255
Hung-Wei Chiuf284d3f2020-04-08 11:38:13 -0700256 - string:
257 name: workFlow
258 default: '{work-flow}'
259 description: 'Workflow for testcase'
Andy Bavier3708d072019-12-10 15:22:18 -0700260
Kailash8b8de742019-07-30 08:54:51 -0700261 project-type: pipeline
Andy Bavier358aa0b2019-11-22 11:55:39 -0700262 concurrent: true
Kailash8b8de742019-07-30 08:54:51 -0700263
Zack Williamsb3292082019-10-11 17:15:18 -0700264 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailash6be1aa92019-08-05 18:11:11 -0700265
266 triggers:
hwchiu14f97852019-10-08 10:51:11 -0700267 - timed: |
Kailash6be1aa92019-08-05 18:11:11 -0700268 TZ=America/Los_Angeles
Andy Bavier218385e2019-11-13 09:51:38 -0700269 {time-trigger}
Kailashaad71012019-08-27 10:36:53 -0700270
271- job-template:
272 id: 'voltha-patch-test'
Matteo Scandolo84e5f002020-02-10 11:50:05 -0800273 name: 'verify_{project}_sanity-test{name-extension}'
Andy Bavier4318f8d2020-04-09 13:50:53 -0700274 override-branch: '$GERRIT_BRANCH'
Andy Bavier02b00dc2020-04-28 13:01:12 -0700275 sandbox: true
Kailashaad71012019-08-27 10:36:53 -0700276
277 description: |
278 <!-- Managed by Jenkins Job Builder -->
279 Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br />
280 E2E Validation for Voltha 2.X
281
282 properties:
283 - cord-infra-properties:
284 build-days-to-keep: '{build-days-to-keep}'
285 artifact-num-to-keep: '{artifact-num-to-keep}'
286
287 wrappers:
288 - lf-infra-wrappers:
289 build-timeout: '{build-timeout}'
290 jenkins-ssh-credential: '{jenkins-ssh-credential}'
291
292 parameters:
293 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700294 name: buildNode
Kailashaad71012019-08-27 10:36:53 -0700295 default: 'ubuntu16.04-basebuild-4c-8g'
296 description: 'Name of the Jenkins node to run the job on'
297
298 - string:
299 name: manifestUrl
300 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
301 description: 'URL to the repo manifest'
302
303 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700304 name: branch
Andy Bavier4318f8d2020-04-09 13:50:53 -0700305 default: '{override-branch}'
Zack Williams03ebb272020-03-27 09:42:33 -0700306 description: 'Name of the branch to use'
Kailashaad71012019-08-27 10:36:53 -0700307
308 - string:
hwchiu14f97852019-10-08 10:51:11 -0700309 name: gerritProject
310 default: '$GERRIT_PROJECT'
311 description: 'Name of the Gerrit project'
Kailashaad71012019-08-27 10:36:53 -0700312
313 - string:
hwchiu14f97852019-10-08 10:51:11 -0700314 name: gerritChangeNumber
315 default: '$GERRIT_CHANGE_NUMBER'
316 description: 'Changeset number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700317
318 - string:
hwchiu14f97852019-10-08 10:51:11 -0700319 name: gerritPatchsetNumber
320 default: '$GERRIT_PATCHSET_NUMBER'
321 description: 'PatchSet number in Gerrit'
Kailashaad71012019-08-27 10:36:53 -0700322
323 - string:
Andy Bavierbedd0392019-10-16 13:58:18 -0700324 name: extraHelmFlags
Andy Bavier10926f12020-03-27 16:53:43 -0700325 default: ''
Andy Bavierbedd0392019-10-16 13:58:18 -0700326 description: 'Helm flags to pass to ./voltha up'
327
Kailashaad71012019-08-27 10:36:53 -0700328 project-type: pipeline
Kailashb59bc7f2019-09-03 13:13:27 -0700329 concurrent: true
Kailashaad71012019-08-27 10:36:53 -0700330
Zack Williamsb3292082019-10-11 17:15:18 -0700331 dsl: !include-raw-escape: pipeline/{pipeline-script}
Kailashaad71012019-08-27 10:36:53 -0700332
333 triggers:
Andy Bavierb99c3d32020-02-18 11:14:17 -0700334 - gerrit:
335 server-name: '{gerrit-server-name}'
Kailashaad71012019-08-27 10:36:53 -0700336 dependency-jobs: '{dependency-jobs}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700337 silent-start: true
338 trigger-on:
339 - patchset-created-event:
340 exclude-drafts: true
341 exclude-trivial-rebase: false
342 exclude-no-code-change: true
343 - draft-published-event
344 - comment-added-contains-event:
345 comment-contains-value: '(?i)^.*recheck$'
346 projects:
347 - project-compare-type: REG_EXP
348 project-pattern: '^{project}$'
349 branches:
350 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700351 branch-pattern: '{all-branches-regexp}'
Andy Bavierb99c3d32020-02-18 11:14:17 -0700352 file-paths:
353 - compare-type: REG_EXP
354 pattern: '{all-files-regexp}'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700355
356# POD Per Patchset Pipeline Jobs
357
358- job-template:
Andy Bavier19c98a22019-11-11 13:57:11 -0700359 name: '{name}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700360 id: verify_physical_voltha_patchset_auto
361 description: |
362 <!-- Managed by Jenkins Job Builder -->
363 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
364 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
365 Created by Andy Bavier, andy@opennetworking.org <br />
366 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier51ba7e82019-12-17 11:01:01 -0700367 sandbox: true
368 pipeline-script: 'voltha-physical-build-and-tests.groovy'
369
370 properties:
371 - cord-infra-properties:
372 build-days-to-keep: '{build-days-to-keep}'
373 artifact-num-to-keep: '{artifact-num-to-keep}'
374
375 parameters:
376 - string:
377 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700378 default: '{build-node}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700379 description: 'Pod management node'
380
381 - string:
382 name: manifestUrl
383 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
384 description: 'URL to the repo manifest'
385
386 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700387 name: branch
388 default: '$GERRIT_BRANCH'
389 description: 'Name of the branch to use'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700390
391 - string:
392 name: gerritProject
393 default: '$GERRIT_PROJECT'
394 description: 'Name of the Gerrit project'
395
396 - string:
397 name: gerritChangeNumber
398 default: '$GERRIT_CHANGE_NUMBER'
399 description: 'Changeset number in Gerrit'
400
401 - string:
402 name: gerritPatchsetNumber
403 default: '$GERRIT_PATCHSET_NUMBER'
404 description: 'PatchSet number in Gerrit'
405
406 - string:
407 name: cordRepoUrl
408 default: '{gerrit-server-url}'
409 description: 'The URL of the CORD Project repository'
410
411 - string:
412 name: podName
413 default: '{config-pod}'
414
415 - string:
416 name: deploymentConfigFile
417 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
418 description: 'Path of deployment config file'
419
420 - string:
421 name: kindVolthaValuesFile
422 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
423 description: 'Path of kind-voltha values override file'
424
425 - string:
426 name: sadisConfigFile
427 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
428 description: 'Path of SADIS config to load'
429
430 - string:
431 name: localConfigDir
432 default: null
433 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
434
435 - string:
436 name: configRepo
437 default: 'pod-configs'
438 description: 'A repository containing the config files, will be checked out if specified'
439
440 - string:
441 name: oltDebVersion
442 default: '{oltDebVersion}'
443 description: 'OLT Software version to install'
444
445 - string:
Andy Bavier51ba7e82019-12-17 11:01:01 -0700446 name: profile
447 default: '{profile}'
448 description: 'Technology Profile pushed to the ETCD'
449
450 - string:
451 name: notificationEmail
452 default: 'andy@opennetworking.org'
453 description: ''
454
455 - bool:
456 name: reinstallOlt
457 default: true
458 description: "Re-install OLT software"
459
Zack Williams03ebb272020-03-27 09:42:33 -0700460 - string:
461 name: manualBranch
462 default: '{manualBranch}'
463 description: "If a non-empty string, build manually as a specific branch, not with a specific patchset"
Andy Bavier51ba7e82019-12-17 11:01:01 -0700464
465 - string:
466 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700467 default: '-i sanityORDeleteOLT'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700468 description: 'Arguments to pass to robot'
469
470 project-type: pipeline
471 concurrent: true
472
473 dsl: !include-raw-escape: pipeline/{pipeline-script}
474
475 triggers:
476 - gerrit:
477 server-name: '{gerrit-server-name}'
478 dependency-jobs: '{dependency-jobs}'
479 silent-start: false
480 successful-message: "PASSED hardware test"
481 failure-message: "FAILED hardware test"
482 unstable-message: "UNSTABLE hardware test"
483 trigger-on:
484 - comment-added-event:
485 approval-category: 'Code-Review'
486 approval-value: '+2'
487 projects:
488 - project-compare-type: REG_EXP
Andy Bavierf2b26072020-03-05 16:02:29 -0700489 project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter|voltha-go)$'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700490 branches:
Andy Bavier37f6ea92020-04-03 11:13:35 -0700491 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700492 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700493
494
495- job-template:
496 name: '{name}'
497 id: verify_physical_voltha_patchset_manual
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700498 description: |
499 <!-- Managed by Jenkins Job Builder -->
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700500 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
Andy Baviere9916452019-11-06 12:32:47 -0700501 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700502 Created by Andy Bavier, andy@opennetworking.org <br />
503 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700504 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700505 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700506
507 properties:
508 - cord-infra-properties:
509 build-days-to-keep: '{build-days-to-keep}'
510 artifact-num-to-keep: '{artifact-num-to-keep}'
511
512 parameters:
513 - string:
Andy Bavier97ebbba2019-11-08 10:47:46 -0700514 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700515 default: '{build-node}'
Andy Bavier97ebbba2019-11-08 10:47:46 -0700516 description: 'Pod management node'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700517
518 - string:
519 name: manifestUrl
520 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
521 description: 'URL to the repo manifest'
522
523 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700524 name: branch
525 default: '$GERRIT_BRANCH'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700526 description: 'Name of the repo branch to use'
527
528 - string:
529 name: gerritProject
530 default: '$GERRIT_PROJECT'
531 description: 'Name of the Gerrit project'
532
533 - string:
534 name: gerritChangeNumber
535 default: '$GERRIT_CHANGE_NUMBER'
536 description: 'Changeset number in Gerrit'
537
538 - string:
539 name: gerritPatchsetNumber
540 default: '$GERRIT_PATCHSET_NUMBER'
541 description: 'PatchSet number in Gerrit'
542
543 - string:
544 name: cordRepoUrl
545 default: '{gerrit-server-url}'
546 description: 'The URL of the CORD Project repository'
547
548 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700549 name: podName
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700550 default: '{config-pod}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700551
552 - string:
553 name: deploymentConfigFile
554 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
555 description: 'Path of deployment config file'
556
557 - string:
558 name: kindVolthaValuesFile
559 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
560 description: 'Path of kind-voltha values override file'
561
562 - string:
563 name: sadisConfigFile
564 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
565 description: 'Path of SADIS config to load'
566
567 - string:
568 name: localConfigDir
569 default: null
570 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
571
572 - string:
573 name: configRepo
574 default: 'pod-configs'
575 description: 'A repository containing the config files, will be checked out if specified'
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700576
577 - string:
578 name: oltDebVersion
579 default: '{oltDebVersion}'
580 description: 'OLT Software version to install'
581
582 - string:
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700583 name: profile
584 default: '{profile}'
585 description: 'Technology Profile pushed to the ETCD'
586
587 - string:
588 name: notificationEmail
589 default: 'andy@opennetworking.org'
590 description: ''
591
592 - bool:
593 name: reinstallOlt
594 default: true
595 description: "Re-install OLT software"
596
Zack Williams03ebb272020-03-27 09:42:33 -0700597 - string:
598 name: manualBranch
599 default: '{manualBranch}'
600 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier19c98a22019-11-11 13:57:11 -0700601
Andy Bavier8c11d462019-12-17 08:19:34 -0700602 - string:
603 name: extraRobotArgs
Andy Bavierf2b26072020-03-05 16:02:29 -0700604 default: '-i sanityORDeleteOLT'
Andy Bavier8c11d462019-12-17 08:19:34 -0700605 description: 'Arguments to pass to robot'
606
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700607 project-type: pipeline
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700608 concurrent: true
609
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700610 dsl: !include-raw-escape: pipeline/{pipeline-script}
Andy Bavierbf68c5e2019-10-25 15:05:28 -0700611
Andy Bavier1f465592019-11-06 10:03:56 -0700612 triggers:
613 - gerrit:
614 server-name: '{gerrit-server-name}'
615 dependency-jobs: '{dependency-jobs}'
616 silent-start: false
617 successful-message: "PASSED hardware test"
618 failure-message: "FAILED hardware test"
619 unstable-message: "UNSTABLE hardware test"
620 trigger-on:
621 - comment-added-contains-event:
622 comment-contains-value: '^hardware test$'
Scott Bakerda31d7b2020-01-08 16:35:52 -0800623 - comment-added-contains-event:
624 comment-contains-value: '^hardware test with delay$'
Andy Bavier8c11d462019-12-17 08:19:34 -0700625 projects:
626 - project-compare-type: REG_EXP
Zack Williams03ebb272020-03-27 09:42:33 -0700627 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 -0700628 branches:
Andy Bavierfc3ca142020-03-27 13:44:25 -0700629 - branch-compare-type: REG_EXP
Andy Baviera654abd2020-04-03 12:43:54 -0700630 branch-pattern: '{all-branches-regexp}'
Andy Bavier51ba7e82019-12-17 11:01:01 -0700631
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700632
633- job-template:
634 name: '{name}'
635 id: build_physical_voltha_manual
636 description: |
637 <!-- Managed by Jenkins Job Builder -->
638 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
639 Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br />
640 Created by Andy Bavier, andy@opennetworking.org <br />
641 Copyright (c) 2019 Open Networking Foundation (ONF)
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700642 sandbox: true
Andy Bavier358aa0b2019-11-22 11:55:39 -0700643 pipeline-script: 'voltha-physical-build-and-tests.groovy'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700644
645 properties:
646 - cord-infra-properties:
647 build-days-to-keep: '{build-days-to-keep}'
648 artifact-num-to-keep: '{artifact-num-to-keep}'
649
650 parameters:
651 - string:
652 name: buildNode
Zack Williams8ef79812019-10-29 11:09:18 -0700653 default: '{build-node}'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700654 description: 'Pod management node'
655
656 - string:
657 name: manifestUrl
658 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
659 description: 'URL to the repo manifest'
660
661 - string:
Zack Williams03ebb272020-03-27 09:42:33 -0700662 name: branch
663 default: "$GERRIT_BRANCH"
664 description: 'Name of the repo manifest branch to use'
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700665
666 - string:
667 name: gerritProject
668 default: '$GERRIT_PROJECT'
669 description: 'Name of the Gerrit project'
670
671 - string:
672 name: gerritChangeNumber
673 default: '$GERRIT_CHANGE_NUMBER'
674 description: 'Changeset number in Gerrit'
675
676 - string:
677 name: gerritPatchsetNumber
678 default: '$GERRIT_PATCHSET_NUMBER'
679 description: 'PatchSet number in Gerrit'
680
681 - string:
682 name: cordRepoUrl
683 default: '{gerrit-server-url}'
684 description: 'The URL of the CORD Project repository'
685
686 - string:
687 name: podName
688 default: '{config-pod}'
689
690 - string:
691 name: deploymentConfigFile
692 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
693 description: 'Path of deployment config file'
694
695 - string:
696 name: kindVolthaValuesFile
697 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
698 description: 'Path of kind-voltha values override file'
699
700 - string:
701 name: sadisConfigFile
702 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
703 description: 'Path of SADIS config to load'
704
705 - string:
706 name: localConfigDir
707 default: null
708 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
709
710 - string:
711 name: configRepo
712 default: 'pod-configs'
713 description: 'A repository containing the config files, will be checked out if specified'
714
715 - string:
716 name: oltDebVersion
717 default: '{oltDebVersion}'
718 description: 'OLT Software version to install'
719
720 - string:
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700721 name: profile
722 default: '{profile}'
723 description: 'Technology Profile pushed to the ETCD'
724
725 - string:
726 name: notificationEmail
727 default: 'andy@opennetworking.org'
728 description: ''
729
730 - bool:
731 name: reinstallOlt
732 default: false
733 description: "Re-install OLT software"
734
Zack Williams03ebb272020-03-27 09:42:33 -0700735 - string:
736 name: manualBranch
737 default: '{manualBranch}'
738 description: "If a non-empty string, build manually on a specific branch, not with a specific patchset"
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700739
Andy Bavier8c11d462019-12-17 08:19:34 -0700740 - string:
741 name: extraRobotArgs
742 default: '-e bbsim'
743 description: 'Arguments to pass to robot'
744
Andy Bavier61c5b2a2019-11-12 12:08:19 -0700745 project-type: pipeline
746 concurrent: true
747
748 dsl: !include-raw-escape: pipeline/{pipeline-script}