Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 1 | --- |
| 2 | # voltha 2.0 tests |
| 3 | |
| 4 | - project: |
| 5 | name: voltha-e2e |
| 6 | |
| 7 | project-name: '{name}' |
| 8 | |
| 9 | jobs: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 10 | - 'voltha-periodic-test': |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 11 | name: 'voltha-system-tests' |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 12 | pipeline-script: 'voltha-go-tests.groovy' |
Andy Bavier | aaa60f7 | 2019-09-20 09:11:21 -0700 | [diff] [blame] | 13 | default-image-tag: 'master' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 14 | |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 15 | # Per-patchset Pod builds on Tucson pod |
| 16 | - 'build_physical_voltha_patchset': |
| 17 | testvm: 'tucson-pod' |
| 18 | config-pod: 'tucson-pod' |
| 19 | branch: 'master' |
| 20 | release: 'patchset' |
| 21 | test-repo: 'voltha-system-tests' |
| 22 | Jenkinsfile: 'Jenkinsfile-voltha-build' |
| 23 | oltDebVersion: 'openolt-seba-2.0.deb' |
| 24 | configurePod: true |
| 25 | profile: 'Default' |
| 26 | |
| 27 | - 'build_physical_voltha_patchset_test': |
| 28 | testvm: 'tucson-pod' |
| 29 | config-pod: 'tucson-pod' |
| 30 | branch: 'master' |
| 31 | release: 'patchset' |
| 32 | test-repo: 'voltha-system-tests' |
| 33 | Jenkinsfile: 'Jenkinsfile-voltha-test' |
| 34 | profile: 'Default' |
| 35 | |
Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 36 | - job-template: |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 37 | id: 'voltha-periodic-test' |
| 38 | name: '{name}' |
Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 39 | |
| 40 | description: | |
| 41 | <!-- Managed by Jenkins Job Builder --> |
| 42 | Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br /> |
| 43 | E2E Validation for Voltha 2.X |
| 44 | |
| 45 | properties: |
| 46 | - cord-infra-properties: |
| 47 | build-days-to-keep: '{build-days-to-keep}' |
| 48 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 49 | |
| 50 | wrappers: |
| 51 | - lf-infra-wrappers: |
| 52 | build-timeout: '{build-timeout}' |
| 53 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 54 | |
| 55 | parameters: |
| 56 | - string: |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 57 | name: buildNode |
Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 58 | default: 'ubuntu16.04-basebuild-4c-8g' |
| 59 | description: 'Name of the Jenkins node to run the job on' |
| 60 | |
| 61 | - string: |
| 62 | name: numOnus |
| 63 | default: '1' |
| 64 | description: 'Number of onus per pon port' |
| 65 | |
| 66 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 67 | name: emulationMode |
| 68 | default: '--set emulation_mode=both' |
| 69 | description: 'Emulation for BBSIM (both|aaa)' |
Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 70 | |
| 71 | - string: |
| 72 | name: testTimeout |
| 73 | default: '90' |
| 74 | description: 'timeout for olt/onu validations' |
| 75 | |
| 76 | - string: |
| 77 | name: testTags |
| 78 | default: '-e notready' |
| 79 | description: 'test tags' |
| 80 | |
Andy Bavier | ea26c5c | 2019-09-18 08:09:17 -0700 | [diff] [blame] | 81 | - string: |
| 82 | name: extraHelmFlags |
Andy Bavier | dabe9fc | 2019-10-24 17:10:48 -0700 | [diff] [blame] | 83 | default: '--set defaults.image_tag={default-image-tag},onu=2,pon=2' |
Andy Bavier | ea26c5c | 2019-09-18 08:09:17 -0700 | [diff] [blame] | 84 | description: 'Helm flags to pass to ./voltha up' |
| 85 | |
Andy Bavier | dabe9fc | 2019-10-24 17:10:48 -0700 | [diff] [blame] | 86 | - string: |
| 87 | name: robotVarFile |
| 88 | default: 'bbsim-kind-2x2.yaml' |
| 89 | description: 'Pod config file to use for tests' |
| 90 | |
Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 91 | project-type: pipeline |
| 92 | concurrent: false |
| 93 | |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 94 | dsl: !include-raw-escape: pipeline/{pipeline-script} |
Kailash | 6be1aa9 | 2019-08-05 18:11:11 -0700 | [diff] [blame] | 95 | |
| 96 | triggers: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 97 | - timed: | |
Kailash | 6be1aa9 | 2019-08-05 18:11:11 -0700 | [diff] [blame] | 98 | TZ=America/Los_Angeles |
Andy Bavier | c08e4d2 | 2019-09-18 10:08:12 -0700 | [diff] [blame] | 99 | H/30 * * * * |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 100 | |
| 101 | - job-template: |
| 102 | id: 'voltha-patch-test' |
Kailash | 53d8672 | 2019-09-05 09:08:41 -0700 | [diff] [blame] | 103 | name: '{project}_sanity-system-test' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 104 | |
| 105 | description: | |
| 106 | <!-- Managed by Jenkins Job Builder --> |
| 107 | Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br /> |
| 108 | E2E Validation for Voltha 2.X |
| 109 | |
| 110 | properties: |
| 111 | - cord-infra-properties: |
| 112 | build-days-to-keep: '{build-days-to-keep}' |
| 113 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 114 | |
| 115 | wrappers: |
| 116 | - lf-infra-wrappers: |
| 117 | build-timeout: '{build-timeout}' |
| 118 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 119 | |
| 120 | parameters: |
| 121 | - string: |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 122 | name: buildNode |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 123 | default: 'ubuntu16.04-basebuild-4c-8g' |
| 124 | description: 'Name of the Jenkins node to run the job on' |
| 125 | |
| 126 | - string: |
| 127 | name: manifestUrl |
| 128 | default: '{gerrit-server-url}/{voltha-test-manifest-repo}' |
| 129 | description: 'URL to the repo manifest' |
| 130 | |
| 131 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 132 | name: manifestBranch |
| 133 | default: '$GERRIT_BRANCH' |
| 134 | description: 'Name of the repo branch to use' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 135 | |
| 136 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 137 | name: gerritProject |
| 138 | default: '$GERRIT_PROJECT' |
| 139 | description: 'Name of the Gerrit project' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 140 | |
| 141 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 142 | name: gerritChangeNumber |
| 143 | default: '$GERRIT_CHANGE_NUMBER' |
| 144 | description: 'Changeset number in Gerrit' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 145 | |
| 146 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 147 | name: gerritPatchsetNumber |
| 148 | default: '$GERRIT_PATCHSET_NUMBER' |
| 149 | description: 'PatchSet number in Gerrit' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 150 | |
| 151 | - string: |
| 152 | name: numOnus |
| 153 | default: '1' |
| 154 | description: 'Number of onus per pon port' |
| 155 | |
| 156 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 157 | name: emulationMode |
| 158 | default: '--set emulation_mode=both' |
| 159 | description: 'Emulation for BBSIM (both|aaa)' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 160 | |
| 161 | - string: |
| 162 | name: testTimeout |
| 163 | default: '90' |
| 164 | description: 'timeout for olt/onu validations' |
| 165 | |
| 166 | - string: |
| 167 | name: testTags |
| 168 | default: '-e notready' |
| 169 | description: 'test tags' |
| 170 | |
Andy Bavier | bedd039 | 2019-10-16 13:58:18 -0700 | [diff] [blame] | 171 | - string: |
| 172 | name: extraHelmFlags |
| 173 | default: '--set defaults.image_tag=$GERRIT_BRANCH' |
| 174 | description: 'Helm flags to pass to ./voltha up' |
| 175 | |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 176 | project-type: pipeline |
Kailash | b59bc7f | 2019-09-03 13:13:27 -0700 | [diff] [blame] | 177 | concurrent: true |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 178 | |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 179 | dsl: !include-raw-escape: pipeline/{pipeline-script} |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 180 | |
| 181 | triggers: |
| 182 | - cord-infra-gerrit-trigger-patchset: |
| 183 | gerrit-server-name: '{gerrit-server-name}' |
Kailash | 53d8672 | 2019-09-05 09:08:41 -0700 | [diff] [blame] | 184 | project-regexp: '^{project}$' |
| 185 | branch-regexp: '{branch-regexp}' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 186 | dependency-jobs: '{dependency-jobs}' |
| 187 | file-include-regexp: '{all-files-regexp}' |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 188 | |
| 189 | # POD Per Patchset Pipeline Jobs |
| 190 | |
| 191 | - job-template: |
| 192 | name: 'build_physical_voltha_patchset' |
| 193 | id: build_physical_voltha_patchset |
| 194 | description: | |
| 195 | <!-- Managed by Jenkins Job Builder --> |
| 196 | Manual Build on POD {config-pod} using {Jenkinsfile} <br /><br /> |
| 197 | Created from job-template {id} from ci-management/jjb/cord-test/per-patch-pipeline.yaml <br /> |
| 198 | Created by Andy Bavier, andy@opennetworking.org <br /> |
| 199 | Copyright (c) 2019 Open Networking Foundation (ONF) |
| 200 | project-type: pipeline |
| 201 | sandbox: true |
| 202 | |
| 203 | properties: |
| 204 | - cord-infra-properties: |
| 205 | build-days-to-keep: '{build-days-to-keep}' |
| 206 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 207 | |
| 208 | parameters: |
| 209 | - string: |
| 210 | name: TestNodeName |
| 211 | default: '{testvm}' |
| 212 | description: 'Jenkins node name of TestVM Node' |
| 213 | |
| 214 | - string: |
| 215 | name: manifestUrl |
| 216 | default: '{gerrit-server-url}/{voltha-test-manifest-repo}' |
| 217 | description: 'URL to the repo manifest' |
| 218 | |
| 219 | - string: |
| 220 | name: manifestBranch |
| 221 | default: '$GERRIT_BRANCH' |
| 222 | description: 'Name of the repo branch to use' |
| 223 | |
| 224 | - string: |
| 225 | name: gerritProject |
| 226 | default: '$GERRIT_PROJECT' |
| 227 | description: 'Name of the Gerrit project' |
| 228 | |
| 229 | - string: |
| 230 | name: gerritChangeNumber |
| 231 | default: '$GERRIT_CHANGE_NUMBER' |
| 232 | description: 'Changeset number in Gerrit' |
| 233 | |
| 234 | - string: |
| 235 | name: gerritPatchsetNumber |
| 236 | default: '$GERRIT_PATCHSET_NUMBER' |
| 237 | description: 'PatchSet number in Gerrit' |
| 238 | |
| 239 | - string: |
| 240 | name: cordRepoUrl |
| 241 | default: '{gerrit-server-url}' |
| 242 | description: 'The URL of the CORD Project repository' |
| 243 | |
| 244 | - string: |
| 245 | name: configBaseDir |
| 246 | default: 'pod-configs' |
| 247 | description: 'The directory inside the POD configs repository' |
| 248 | |
| 249 | - string: |
| 250 | name: configDeploymentDir |
| 251 | default: 'deployment-configs' |
| 252 | description: 'The deployment configs folder' |
| 253 | |
| 254 | - string: |
| 255 | name: configKubernetesDir |
| 256 | default: 'kubernetes-configs' |
| 257 | description: 'The kubernetes config folder' |
| 258 | |
| 259 | - string: |
| 260 | name: configFileName |
| 261 | default: '{config-pod}' |
| 262 | description: 'The config file' |
| 263 | |
| 264 | - string: |
| 265 | name: oltDebVersion |
| 266 | default: '{oltDebVersion}' |
| 267 | description: 'OLT Software version to install' |
| 268 | |
| 269 | - string: |
| 270 | name: branch |
| 271 | default: '{branch}' |
| 272 | |
| 273 | - string: |
| 274 | name: profile |
| 275 | default: '{profile}' |
| 276 | description: 'Technology Profile pushed to the ETCD' |
| 277 | |
| 278 | - string: |
| 279 | name: notificationEmail |
| 280 | default: 'andy@opennetworking.org' |
| 281 | description: '' |
| 282 | |
| 283 | - bool: |
| 284 | name: reinstallOlt |
| 285 | default: true |
| 286 | description: "Re-install OLT software" |
| 287 | |
| 288 | - bool: |
| 289 | name: withPatchset |
| 290 | default: true |
| 291 | description: "Apply a Gerrit patchset during the build" |
| 292 | |
| 293 | concurrent: true |
| 294 | |
| 295 | pipeline-scm: |
| 296 | script-path: '{Jenkinsfile}' |
| 297 | scm: |
| 298 | - git: |
| 299 | url: '{gerrit-server-url}/{test-repo}' |
| 300 | branches: |
| 301 | - '{branch}' |
| 302 | |
| 303 | - job-template: |
| 304 | name: 'build_physical_voltha_patchset_test' |
| 305 | id: build_physical_voltha_patchset_test |
| 306 | description: | |
| 307 | <!-- Managed by Jenkins Job Builder --> |
| 308 | Post Tests on {config-pod} triggered by build_{config-pod}_{branch} <br /><br /> |
| 309 | Created from job-template {id} from ci-management/jjb/cord-test/per-patch-pipeline.yaml <br /> |
| 310 | Created by Andy Bavier, andy@opennetworking.org <br /> |
| 311 | Copyright (c) 2019 Open Networking Foundation (ONF) |
| 312 | |
| 313 | project-type: pipeline |
| 314 | |
| 315 | sandbox: true |
| 316 | |
| 317 | properties: |
| 318 | - cord-infra-properties: |
| 319 | build-days-to-keep: '{build-days-to-keep}' |
| 320 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 321 | |
| 322 | parameters: |
| 323 | - string: |
| 324 | name: TestNodeName |
| 325 | default: '{testvm}' |
| 326 | description: 'Jenkins node name of TestVM Node' |
| 327 | |
| 328 | - string: |
| 329 | name: cordRepoUrl |
| 330 | default: '{gerrit-server-url}' |
| 331 | description: 'The URL of the CORD Project repository' |
| 332 | |
| 333 | - string: |
| 334 | name: configBaseDir |
| 335 | default: 'pod-configs' |
| 336 | description: 'The directory inside the POD configs repository' |
| 337 | |
| 338 | - string: |
| 339 | name: configDeploymentDir |
| 340 | default: 'deployment-configs' |
| 341 | description: 'The deployment configs folder' |
| 342 | |
| 343 | - string: |
| 344 | name: configKubernetesDir |
| 345 | default: 'kubernetes-configs' |
| 346 | description: 'The kubernetes config folder' |
| 347 | |
| 348 | - string: |
| 349 | name: configFileName |
| 350 | default: '{config-pod}' |
| 351 | description: 'The config file' |
| 352 | |
| 353 | - string: |
| 354 | name: profile |
| 355 | default: '{profile}' |
| 356 | description: 'Technology Profile pushed to the ETCD' |
| 357 | |
| 358 | - string: |
| 359 | name: branch |
| 360 | default: '{branch}' |
| 361 | |
| 362 | - string: |
| 363 | name: notificationEmail |
| 364 | default: 'andy@opennetworking.org' |
| 365 | description: '' |
| 366 | |
| 367 | concurrent: true |
| 368 | |
| 369 | pipeline-scm: |
| 370 | script-path: '{Jenkinsfile}' |
| 371 | scm: |
| 372 | - git: |
| 373 | url: '{gerrit-server-url}/{test-repo}' |
| 374 | branches: |
| 375 | - '{branch}' |
| 376 | |
| 377 | triggers: |
| 378 | - reverse: |
| 379 | jobs: 'build_physical_voltha_patchset' |
| 380 | result: 'success' |