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': |
Andy Bavier | 218385e | 2019-11-13 09:51:38 -0700 | [diff] [blame] | 11 | name: 'periodic-voltha-sanity-test' |
Andy Bavier | 4c8b323 | 2019-11-22 16:17:47 -0700 | [diff] [blame] | 12 | build-node: 'qct-pod4-node2' |
Andy Bavier | aaa60f7 | 2019-09-20 09:11:21 -0700 | [diff] [blame] | 13 | default-image-tag: 'master' |
Andy Bavier | 4c8b323 | 2019-11-22 16:17:47 -0700 | [diff] [blame] | 14 | code-branch: 'master' |
Andy Bavier | 218385e | 2019-11-13 09:51:38 -0700 | [diff] [blame] | 15 | make-target: sanity-multi-kind |
| 16 | onus: 2 |
| 17 | pons: 2 |
| 18 | time-trigger: "H H/3 * * *" |
| 19 | |
| 20 | - 'voltha-periodic-test': |
hwchiu | fdc4924 | 2019-11-18 16:37:22 -0800 | [diff] [blame] | 21 | name: 'periodic-voltha-system-test' |
| 22 | pipeline-script: 'voltha-system-test-bbsim.groovy' |
hwchiu | c7d5d03 | 2019-12-03 16:42:47 -0800 | [diff] [blame] | 23 | build-node: 'ubuntu16.04-basebuild-4c-8g' |
hwchiu | fdc4924 | 2019-11-18 16:37:22 -0800 | [diff] [blame] | 24 | default-image-tag: 'master' |
hwchiu | c9189b7 | 2019-12-02 15:12:29 -0800 | [diff] [blame] | 25 | code-branch: 'master' |
hwchiu | c7d5d03 | 2019-12-03 16:42:47 -0800 | [diff] [blame] | 26 | make-target: sanity-single-kind |
hwchiu | fdc4924 | 2019-11-18 16:37:22 -0800 | [diff] [blame] | 27 | onus: 2 |
| 28 | pons: 2 |
| 29 | time-trigger: "H H/12 * * *" |
| 30 | |
| 31 | - 'voltha-periodic-test': |
Andy Bavier | 3708d07 | 2019-12-10 15:22:18 -0700 | [diff] [blame] | 32 | name: 'periodic-voltha-sanity-test-multi-runs' |
Andy Bavier | 0088c21 | 2020-01-08 13:44:03 -0700 | [diff] [blame] | 33 | pipeline-script: 'voltha-go-multi-tests.groovy' |
Andy Bavier | 3708d07 | 2019-12-10 15:22:18 -0700 | [diff] [blame] | 34 | build-node: 'qct-pod4-node2' |
| 35 | default-image-tag: 'master' |
| 36 | code-branch: 'master' |
Andy Bavier | 529888d | 2019-12-11 16:55:34 -0700 | [diff] [blame] | 37 | make-target: sanity-kind |
Andy Bavier | 3708d07 | 2019-12-10 15:22:18 -0700 | [diff] [blame] | 38 | onus: 1 |
| 39 | pons: 1 |
| 40 | test-runs: 5 |
| 41 | time-trigger: "H H/3 * * *" |
| 42 | |
| 43 | - 'voltha-periodic-test': |
Andy Bavier | 218385e | 2019-11-13 09:51:38 -0700 | [diff] [blame] | 44 | name: 'periodic-voltha-scale-test' |
Andy Bavier | 4c8b323 | 2019-11-22 16:17:47 -0700 | [diff] [blame] | 45 | build-node: 'qct-pod4-node2' |
Andy Bavier | 218385e | 2019-11-13 09:51:38 -0700 | [diff] [blame] | 46 | default-image-tag: 'master' |
Andy Bavier | 4c8b323 | 2019-11-22 16:17:47 -0700 | [diff] [blame] | 47 | code-branch: 'master' |
Andy Bavier | 218385e | 2019-11-13 09:51:38 -0700 | [diff] [blame] | 48 | make-target: scale-multi-kind |
| 49 | onus: 2 |
| 50 | pons: 8 |
Andy Bavier | 3708d07 | 2019-12-10 15:22:18 -0700 | [diff] [blame] | 51 | robot-args: '-v teardown_device:False' |
Andy Bavier | 218385e | 2019-11-13 09:51:38 -0700 | [diff] [blame] | 52 | time-trigger: "H H/3 * * *" |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 53 | |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 54 | # Per-patchset Pod builds on Tucson pod |
Andy Bavier | 51ba7e8 | 2019-12-17 11:01:01 -0700 | [diff] [blame] | 55 | - 'verify_physical_voltha_patchset_auto': |
| 56 | name: 'verify_physical_voltha_patchset_auto' |
| 57 | testvm: 'tucson-pod' |
| 58 | config-pod: 'tucson-pod' |
| 59 | branch: 'master' |
| 60 | oltDebVersion: 'openolt_asfvolt16.deb' |
| 61 | profile: 'Default' |
| 62 | withPatchset: true |
| 63 | |
| 64 | # Per-patchset Pod builds on Tucson pod |
| 65 | - 'verify_physical_voltha_patchset_manual': |
| 66 | name: 'verify_physical_voltha_patchset_manual' |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 67 | testvm: 'tucson-pod' |
| 68 | config-pod: 'tucson-pod' |
| 69 | branch: 'master' |
Andy Bavier | fc4dcc4 | 2019-11-18 15:33:52 -0700 | [diff] [blame] | 70 | oltDebVersion: 'openolt_asfvolt16.deb' |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 71 | profile: 'Default' |
Andy Bavier | 19c98a2 | 2019-11-11 13:57:11 -0700 | [diff] [blame] | 72 | withPatchset: true |
| 73 | |
| 74 | # Manual build job for Tucson pod |
| 75 | # Allow local testing without disrupting above job |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 76 | - 'build_physical_voltha_manual': |
Andy Bavier | 19c98a2 | 2019-11-11 13:57:11 -0700 | [diff] [blame] | 77 | name: 'build_tucson-pod_manual' |
| 78 | testvm: 'tucson-pod' |
| 79 | config-pod: 'tucson-pod' |
| 80 | branch: 'master' |
Andy Bavier | fc4dcc4 | 2019-11-18 15:33:52 -0700 | [diff] [blame] | 81 | oltDebVersion: 'openolt_asfvolt16.deb' |
Andy Bavier | 19c98a2 | 2019-11-11 13:57:11 -0700 | [diff] [blame] | 82 | profile: 'Default' |
| 83 | withPatchset: false |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 84 | |
Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 85 | - job-template: |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 86 | id: 'voltha-periodic-test' |
| 87 | name: '{name}' |
Andy Bavier | 4c8b323 | 2019-11-22 16:17:47 -0700 | [diff] [blame] | 88 | pipeline-script: 'voltha-go-tests.groovy' |
Andy Bavier | 3708d07 | 2019-12-10 15:22:18 -0700 | [diff] [blame] | 89 | test-runs: 1 |
| 90 | robot-args: '' |
Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 91 | |
| 92 | description: | |
| 93 | <!-- Managed by Jenkins Job Builder --> |
| 94 | Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br /> |
| 95 | E2E Validation for Voltha 2.X |
| 96 | |
| 97 | properties: |
| 98 | - cord-infra-properties: |
| 99 | build-days-to-keep: '{build-days-to-keep}' |
| 100 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 101 | |
| 102 | wrappers: |
| 103 | - lf-infra-wrappers: |
| 104 | build-timeout: '{build-timeout}' |
| 105 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 106 | |
| 107 | parameters: |
| 108 | - string: |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 109 | name: buildNode |
Andy Bavier | 833b78e | 2019-11-22 17:01:31 -0700 | [diff] [blame] | 110 | default: '{build-node}' |
Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 111 | description: 'Name of the Jenkins node to run the job on' |
| 112 | |
| 113 | - string: |
Andy Bavier | ea26c5c | 2019-09-18 08:09:17 -0700 | [diff] [blame] | 114 | name: extraHelmFlags |
Andy Bavier | 218385e | 2019-11-13 09:51:38 -0700 | [diff] [blame] | 115 | default: '--set defaults.image_tag={default-image-tag},onu={onus},pon={pons}' |
Andy Bavier | ea26c5c | 2019-09-18 08:09:17 -0700 | [diff] [blame] | 116 | description: 'Helm flags to pass to ./voltha up' |
| 117 | |
Andy Bavier | dabe9fc | 2019-10-24 17:10:48 -0700 | [diff] [blame] | 118 | - string: |
Andy Bavier | 218385e | 2019-11-13 09:51:38 -0700 | [diff] [blame] | 119 | name: makeTarget |
| 120 | default: '{make-target}' |
| 121 | description: 'Makefile target to invoke during test' |
Andy Bavier | dabe9fc | 2019-10-24 17:10:48 -0700 | [diff] [blame] | 122 | |
Andy Bavier | 4c8b323 | 2019-11-22 16:17:47 -0700 | [diff] [blame] | 123 | - string: |
| 124 | name: manifestUrl |
| 125 | default: '{gerrit-server-url}/{voltha-test-manifest-repo}' |
| 126 | description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)' |
| 127 | |
| 128 | - string: |
| 129 | name: manifestBranch |
| 130 | default: '{code-branch}' |
| 131 | description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)' |
| 132 | |
Andy Bavier | 3708d07 | 2019-12-10 15:22:18 -0700 | [diff] [blame] | 133 | - string: |
| 134 | name: testRuns |
| 135 | default: '{test-runs}' |
| 136 | description: 'How many times to repeat the tests' |
| 137 | |
| 138 | - string: |
| 139 | name: extraRobotArgs |
| 140 | default: '{robot-args}' |
| 141 | description: 'Arguments to pass to robot' |
| 142 | |
| 143 | |
Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 144 | project-type: pipeline |
Andy Bavier | 358aa0b | 2019-11-22 11:55:39 -0700 | [diff] [blame] | 145 | concurrent: true |
Kailash | 8b8de74 | 2019-07-30 08:54:51 -0700 | [diff] [blame] | 146 | |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 147 | dsl: !include-raw-escape: pipeline/{pipeline-script} |
Kailash | 6be1aa9 | 2019-08-05 18:11:11 -0700 | [diff] [blame] | 148 | |
| 149 | triggers: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 150 | - timed: | |
Kailash | 6be1aa9 | 2019-08-05 18:11:11 -0700 | [diff] [blame] | 151 | TZ=America/Los_Angeles |
Andy Bavier | 218385e | 2019-11-13 09:51:38 -0700 | [diff] [blame] | 152 | {time-trigger} |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 153 | |
| 154 | - job-template: |
| 155 | id: 'voltha-patch-test' |
Andy Bavier | 4f7fbea | 2019-11-21 14:38:47 -0700 | [diff] [blame] | 156 | name: 'verify_{project}_sanity-test' |
| 157 | extra-helm-flags: '--set defaults.image_tag=$GERRIT_BRANCH' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 158 | |
| 159 | description: | |
| 160 | <!-- Managed by Jenkins Job Builder --> |
| 161 | Created by {id} job-template from ci-management/jjb/voltha-e2e.yaml <br /><br /> |
| 162 | E2E Validation for Voltha 2.X |
| 163 | |
| 164 | properties: |
| 165 | - cord-infra-properties: |
| 166 | build-days-to-keep: '{build-days-to-keep}' |
| 167 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 168 | |
| 169 | wrappers: |
| 170 | - lf-infra-wrappers: |
| 171 | build-timeout: '{build-timeout}' |
| 172 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 173 | |
| 174 | parameters: |
| 175 | - string: |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 176 | name: buildNode |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 177 | default: 'ubuntu16.04-basebuild-4c-8g' |
| 178 | description: 'Name of the Jenkins node to run the job on' |
| 179 | |
| 180 | - string: |
| 181 | name: manifestUrl |
| 182 | default: '{gerrit-server-url}/{voltha-test-manifest-repo}' |
| 183 | description: 'URL to the repo manifest' |
| 184 | |
| 185 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 186 | name: manifestBranch |
| 187 | default: '$GERRIT_BRANCH' |
| 188 | description: 'Name of the repo branch to use' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 189 | |
| 190 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 191 | name: gerritProject |
| 192 | default: '$GERRIT_PROJECT' |
| 193 | description: 'Name of the Gerrit project' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 194 | |
| 195 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 196 | name: gerritChangeNumber |
| 197 | default: '$GERRIT_CHANGE_NUMBER' |
| 198 | description: 'Changeset number in Gerrit' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 199 | |
| 200 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 201 | name: gerritPatchsetNumber |
| 202 | default: '$GERRIT_PATCHSET_NUMBER' |
| 203 | description: 'PatchSet number in Gerrit' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 204 | |
| 205 | - string: |
Andy Bavier | bedd039 | 2019-10-16 13:58:18 -0700 | [diff] [blame] | 206 | name: extraHelmFlags |
Andy Bavier | 4f7fbea | 2019-11-21 14:38:47 -0700 | [diff] [blame] | 207 | default: '{extra-helm-flags}' |
Andy Bavier | bedd039 | 2019-10-16 13:58:18 -0700 | [diff] [blame] | 208 | description: 'Helm flags to pass to ./voltha up' |
| 209 | |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 210 | project-type: pipeline |
Kailash | b59bc7f | 2019-09-03 13:13:27 -0700 | [diff] [blame] | 211 | concurrent: true |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 212 | |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 213 | dsl: !include-raw-escape: pipeline/{pipeline-script} |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 214 | |
| 215 | triggers: |
| 216 | - cord-infra-gerrit-trigger-patchset: |
| 217 | gerrit-server-name: '{gerrit-server-name}' |
Kailash | 53d8672 | 2019-09-05 09:08:41 -0700 | [diff] [blame] | 218 | project-regexp: '^{project}$' |
| 219 | branch-regexp: '{branch-regexp}' |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 220 | dependency-jobs: '{dependency-jobs}' |
| 221 | file-include-regexp: '{all-files-regexp}' |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 222 | |
| 223 | # POD Per Patchset Pipeline Jobs |
| 224 | |
Andy Bavier | 51ba7e8 | 2019-12-17 11:01:01 -0700 | [diff] [blame] | 225 | |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 226 | - job-template: |
Andy Bavier | 19c98a2 | 2019-11-11 13:57:11 -0700 | [diff] [blame] | 227 | name: '{name}' |
Andy Bavier | 51ba7e8 | 2019-12-17 11:01:01 -0700 | [diff] [blame] | 228 | id: verify_physical_voltha_patchset_auto |
| 229 | description: | |
| 230 | <!-- Managed by Jenkins Job Builder --> |
| 231 | Automated build on POD {config-pod} using {pipeline-script} <br /><br /> |
| 232 | Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br /> |
| 233 | Created by Andy Bavier, andy@opennetworking.org <br /> |
| 234 | Copyright (c) 2019 Open Networking Foundation (ONF) |
| 235 | project-type: pipeline |
| 236 | sandbox: true |
| 237 | pipeline-script: 'voltha-physical-build-and-tests.groovy' |
| 238 | |
| 239 | properties: |
| 240 | - cord-infra-properties: |
| 241 | build-days-to-keep: '{build-days-to-keep}' |
| 242 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 243 | |
| 244 | parameters: |
| 245 | - string: |
| 246 | name: buildNode |
| 247 | default: '{testvm}' |
| 248 | description: 'Pod management node' |
| 249 | |
| 250 | - string: |
| 251 | name: manifestUrl |
| 252 | default: '{gerrit-server-url}/{voltha-test-manifest-repo}' |
| 253 | description: 'URL to the repo manifest' |
| 254 | |
| 255 | - string: |
| 256 | name: manifestBranch |
| 257 | default: '$GERRIT_BRANCH' |
| 258 | description: 'Name of the repo branch to use' |
| 259 | |
| 260 | - string: |
| 261 | name: gerritProject |
| 262 | default: '$GERRIT_PROJECT' |
| 263 | description: 'Name of the Gerrit project' |
| 264 | |
| 265 | - string: |
| 266 | name: gerritChangeNumber |
| 267 | default: '$GERRIT_CHANGE_NUMBER' |
| 268 | description: 'Changeset number in Gerrit' |
| 269 | |
| 270 | - string: |
| 271 | name: gerritPatchsetNumber |
| 272 | default: '$GERRIT_PATCHSET_NUMBER' |
| 273 | description: 'PatchSet number in Gerrit' |
| 274 | |
| 275 | - string: |
| 276 | name: cordRepoUrl |
| 277 | default: '{gerrit-server-url}' |
| 278 | description: 'The URL of the CORD Project repository' |
| 279 | |
| 280 | - string: |
| 281 | name: podName |
| 282 | default: '{config-pod}' |
| 283 | |
| 284 | - string: |
| 285 | name: deploymentConfigFile |
| 286 | default: 'pod-configs/deployment-configs/{config-pod}.yaml' |
| 287 | description: 'Path of deployment config file' |
| 288 | |
| 289 | - string: |
| 290 | name: kindVolthaValuesFile |
| 291 | default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml' |
| 292 | description: 'Path of kind-voltha values override file' |
| 293 | |
| 294 | - string: |
| 295 | name: sadisConfigFile |
| 296 | default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json' |
| 297 | description: 'Path of SADIS config to load' |
| 298 | |
| 299 | - string: |
| 300 | name: localConfigDir |
| 301 | default: null |
| 302 | description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE' |
| 303 | |
| 304 | - string: |
| 305 | name: configRepo |
| 306 | default: 'pod-configs' |
| 307 | description: 'A repository containing the config files, will be checked out if specified' |
| 308 | |
| 309 | - string: |
| 310 | name: oltDebVersion |
| 311 | default: '{oltDebVersion}' |
| 312 | description: 'OLT Software version to install' |
| 313 | |
| 314 | - string: |
| 315 | name: branch |
| 316 | default: '{branch}' |
| 317 | |
| 318 | - string: |
| 319 | name: profile |
| 320 | default: '{profile}' |
| 321 | description: 'Technology Profile pushed to the ETCD' |
| 322 | |
| 323 | - string: |
| 324 | name: notificationEmail |
| 325 | default: 'andy@opennetworking.org' |
| 326 | description: '' |
| 327 | |
| 328 | - bool: |
| 329 | name: reinstallOlt |
| 330 | default: true |
| 331 | description: "Re-install OLT software" |
| 332 | |
| 333 | - bool: |
| 334 | name: withPatchset |
| 335 | default: true |
| 336 | description: "Build with Gerrit patchset" |
| 337 | |
| 338 | - string: |
| 339 | name: extraRobotArgs |
| 340 | default: '-i sanity' |
| 341 | description: 'Arguments to pass to robot' |
| 342 | |
| 343 | project-type: pipeline |
| 344 | concurrent: true |
| 345 | |
| 346 | dsl: !include-raw-escape: pipeline/{pipeline-script} |
| 347 | |
| 348 | triggers: |
| 349 | - gerrit: |
| 350 | server-name: '{gerrit-server-name}' |
| 351 | dependency-jobs: '{dependency-jobs}' |
| 352 | silent-start: false |
| 353 | successful-message: "PASSED hardware test" |
| 354 | failure-message: "FAILED hardware test" |
| 355 | unstable-message: "UNSTABLE hardware test" |
| 356 | trigger-on: |
| 357 | - comment-added-event: |
| 358 | approval-category: 'Code-Review' |
| 359 | approval-value: '+2' |
| 360 | projects: |
| 361 | - project-compare-type: REG_EXP |
| 362 | project-pattern: '^(voltha-openolt-adapter|voltha-openonu-adapter)$' |
| 363 | branches: |
| 364 | - branch-compare-type: PLAIN |
| 365 | branch-pattern: 'master' |
| 366 | |
| 367 | |
| 368 | - job-template: |
| 369 | name: '{name}' |
| 370 | id: verify_physical_voltha_patchset_manual |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 371 | description: | |
| 372 | <!-- Managed by Jenkins Job Builder --> |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 373 | Automated build on POD {config-pod} using {pipeline-script} <br /><br /> |
Andy Bavier | e991645 | 2019-11-06 12:32:47 -0700 | [diff] [blame] | 374 | Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br /> |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 375 | Created by Andy Bavier, andy@opennetworking.org <br /> |
| 376 | Copyright (c) 2019 Open Networking Foundation (ONF) |
| 377 | project-type: pipeline |
| 378 | sandbox: true |
Andy Bavier | 358aa0b | 2019-11-22 11:55:39 -0700 | [diff] [blame] | 379 | pipeline-script: 'voltha-physical-build-and-tests.groovy' |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 380 | |
| 381 | properties: |
| 382 | - cord-infra-properties: |
| 383 | build-days-to-keep: '{build-days-to-keep}' |
| 384 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 385 | |
| 386 | parameters: |
| 387 | - string: |
Andy Bavier | 97ebbba | 2019-11-08 10:47:46 -0700 | [diff] [blame] | 388 | name: buildNode |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 389 | default: '{testvm}' |
Andy Bavier | 97ebbba | 2019-11-08 10:47:46 -0700 | [diff] [blame] | 390 | description: 'Pod management node' |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 391 | |
| 392 | - string: |
| 393 | name: manifestUrl |
| 394 | default: '{gerrit-server-url}/{voltha-test-manifest-repo}' |
| 395 | description: 'URL to the repo manifest' |
| 396 | |
| 397 | - string: |
| 398 | name: manifestBranch |
| 399 | default: '$GERRIT_BRANCH' |
| 400 | description: 'Name of the repo branch to use' |
| 401 | |
| 402 | - string: |
| 403 | name: gerritProject |
| 404 | default: '$GERRIT_PROJECT' |
| 405 | description: 'Name of the Gerrit project' |
| 406 | |
| 407 | - string: |
| 408 | name: gerritChangeNumber |
| 409 | default: '$GERRIT_CHANGE_NUMBER' |
| 410 | description: 'Changeset number in Gerrit' |
| 411 | |
| 412 | - string: |
| 413 | name: gerritPatchsetNumber |
| 414 | default: '$GERRIT_PATCHSET_NUMBER' |
| 415 | description: 'PatchSet number in Gerrit' |
| 416 | |
| 417 | - string: |
| 418 | name: cordRepoUrl |
| 419 | default: '{gerrit-server-url}' |
| 420 | description: 'The URL of the CORD Project repository' |
| 421 | |
| 422 | - string: |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 423 | name: podName |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 424 | default: '{config-pod}' |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 425 | |
| 426 | - string: |
| 427 | name: deploymentConfigFile |
| 428 | default: 'pod-configs/deployment-configs/{config-pod}.yaml' |
| 429 | description: 'Path of deployment config file' |
| 430 | |
| 431 | - string: |
| 432 | name: kindVolthaValuesFile |
| 433 | default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml' |
| 434 | description: 'Path of kind-voltha values override file' |
| 435 | |
| 436 | - string: |
| 437 | name: sadisConfigFile |
| 438 | default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json' |
| 439 | description: 'Path of SADIS config to load' |
| 440 | |
| 441 | - string: |
| 442 | name: localConfigDir |
| 443 | default: null |
| 444 | description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE' |
| 445 | |
| 446 | - string: |
| 447 | name: configRepo |
| 448 | default: 'pod-configs' |
| 449 | description: 'A repository containing the config files, will be checked out if specified' |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 450 | |
| 451 | - string: |
| 452 | name: oltDebVersion |
| 453 | default: '{oltDebVersion}' |
| 454 | description: 'OLT Software version to install' |
| 455 | |
| 456 | - string: |
| 457 | name: branch |
| 458 | default: '{branch}' |
| 459 | |
| 460 | - string: |
| 461 | name: profile |
| 462 | default: '{profile}' |
| 463 | description: 'Technology Profile pushed to the ETCD' |
| 464 | |
| 465 | - string: |
| 466 | name: notificationEmail |
| 467 | default: 'andy@opennetworking.org' |
| 468 | description: '' |
| 469 | |
| 470 | - bool: |
| 471 | name: reinstallOlt |
| 472 | default: true |
| 473 | description: "Re-install OLT software" |
| 474 | |
Andy Bavier | 19c98a2 | 2019-11-11 13:57:11 -0700 | [diff] [blame] | 475 | - bool: |
| 476 | name: withPatchset |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 477 | default: true |
| 478 | description: "Build with Gerrit patchset" |
Andy Bavier | 19c98a2 | 2019-11-11 13:57:11 -0700 | [diff] [blame] | 479 | |
Andy Bavier | 8c11d46 | 2019-12-17 08:19:34 -0700 | [diff] [blame] | 480 | - string: |
| 481 | name: extraRobotArgs |
| 482 | default: '-i sanity' |
| 483 | description: 'Arguments to pass to robot' |
| 484 | |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 485 | project-type: pipeline |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 486 | concurrent: true |
| 487 | |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 488 | dsl: !include-raw-escape: pipeline/{pipeline-script} |
Andy Bavier | bf68c5e | 2019-10-25 15:05:28 -0700 | [diff] [blame] | 489 | |
Andy Bavier | 1f46559 | 2019-11-06 10:03:56 -0700 | [diff] [blame] | 490 | triggers: |
| 491 | - gerrit: |
| 492 | server-name: '{gerrit-server-name}' |
| 493 | dependency-jobs: '{dependency-jobs}' |
| 494 | silent-start: false |
| 495 | successful-message: "PASSED hardware test" |
| 496 | failure-message: "FAILED hardware test" |
| 497 | unstable-message: "UNSTABLE hardware test" |
| 498 | trigger-on: |
| 499 | - comment-added-contains-event: |
| 500 | comment-contains-value: '^hardware test$' |
Scott Baker | da31d7b | 2020-01-08 16:35:52 -0800 | [diff] [blame] | 501 | - comment-added-contains-event: |
| 502 | comment-contains-value: '^hardware test with delay$' |
Andy Bavier | 8c11d46 | 2019-12-17 08:19:34 -0700 | [diff] [blame] | 503 | projects: |
| 504 | - project-compare-type: REG_EXP |
Matteo Scandolo | 70800a3 | 2020-01-06 11:55:27 -0800 | [diff] [blame] | 505 | project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests|ofagent-py|voltha-onos)$' |
Andy Bavier | 8c11d46 | 2019-12-17 08:19:34 -0700 | [diff] [blame] | 506 | branches: |
| 507 | - branch-compare-type: PLAIN |
| 508 | branch-pattern: 'master' |
Andy Bavier | 51ba7e8 | 2019-12-17 11:01:01 -0700 | [diff] [blame] | 509 | |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 510 | |
| 511 | - job-template: |
| 512 | name: '{name}' |
| 513 | id: build_physical_voltha_manual |
| 514 | description: | |
| 515 | <!-- Managed by Jenkins Job Builder --> |
| 516 | Automated build on POD {config-pod} using {pipeline-script} <br /><br /> |
| 517 | Created from job-template {id} from ci-management/jjb/voltha-e2e.yaml <br /> |
| 518 | Created by Andy Bavier, andy@opennetworking.org <br /> |
| 519 | Copyright (c) 2019 Open Networking Foundation (ONF) |
| 520 | project-type: pipeline |
| 521 | sandbox: true |
Andy Bavier | 358aa0b | 2019-11-22 11:55:39 -0700 | [diff] [blame] | 522 | pipeline-script: 'voltha-physical-build-and-tests.groovy' |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 523 | |
| 524 | properties: |
| 525 | - cord-infra-properties: |
| 526 | build-days-to-keep: '{build-days-to-keep}' |
| 527 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 528 | |
| 529 | parameters: |
| 530 | - string: |
| 531 | name: buildNode |
| 532 | default: '{testvm}' |
| 533 | description: 'Pod management node' |
| 534 | |
| 535 | - string: |
| 536 | name: manifestUrl |
| 537 | default: '{gerrit-server-url}/{voltha-test-manifest-repo}' |
| 538 | description: 'URL to the repo manifest' |
| 539 | |
| 540 | - string: |
| 541 | name: manifestBranch |
Andy Bavier | 06d816c | 2019-11-19 11:40:48 -0700 | [diff] [blame] | 542 | default: 'master' |
| 543 | description: 'Name of the repo branch to use (change to $GERRIT_BRANCH if testing a patchset)' |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 544 | |
| 545 | - string: |
| 546 | name: gerritProject |
| 547 | default: '$GERRIT_PROJECT' |
| 548 | description: 'Name of the Gerrit project' |
| 549 | |
| 550 | - string: |
| 551 | name: gerritChangeNumber |
| 552 | default: '$GERRIT_CHANGE_NUMBER' |
| 553 | description: 'Changeset number in Gerrit' |
| 554 | |
| 555 | - string: |
| 556 | name: gerritPatchsetNumber |
| 557 | default: '$GERRIT_PATCHSET_NUMBER' |
| 558 | description: 'PatchSet number in Gerrit' |
| 559 | |
| 560 | - string: |
| 561 | name: cordRepoUrl |
| 562 | default: '{gerrit-server-url}' |
| 563 | description: 'The URL of the CORD Project repository' |
| 564 | |
| 565 | - string: |
| 566 | name: podName |
| 567 | default: '{config-pod}' |
| 568 | |
| 569 | - string: |
| 570 | name: deploymentConfigFile |
| 571 | default: 'pod-configs/deployment-configs/{config-pod}.yaml' |
| 572 | description: 'Path of deployment config file' |
| 573 | |
| 574 | - string: |
| 575 | name: kindVolthaValuesFile |
| 576 | default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml' |
| 577 | description: 'Path of kind-voltha values override file' |
| 578 | |
| 579 | - string: |
| 580 | name: sadisConfigFile |
| 581 | default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json' |
| 582 | description: 'Path of SADIS config to load' |
| 583 | |
| 584 | - string: |
| 585 | name: localConfigDir |
| 586 | default: null |
| 587 | description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE' |
| 588 | |
| 589 | - string: |
| 590 | name: configRepo |
| 591 | default: 'pod-configs' |
| 592 | description: 'A repository containing the config files, will be checked out if specified' |
| 593 | |
| 594 | - string: |
| 595 | name: oltDebVersion |
| 596 | default: '{oltDebVersion}' |
| 597 | description: 'OLT Software version to install' |
| 598 | |
| 599 | - string: |
| 600 | name: branch |
| 601 | default: '{branch}' |
| 602 | |
| 603 | - string: |
| 604 | name: profile |
| 605 | default: '{profile}' |
| 606 | description: 'Technology Profile pushed to the ETCD' |
| 607 | |
| 608 | - string: |
| 609 | name: notificationEmail |
| 610 | default: 'andy@opennetworking.org' |
| 611 | description: '' |
| 612 | |
| 613 | - bool: |
| 614 | name: reinstallOlt |
| 615 | default: false |
| 616 | description: "Re-install OLT software" |
| 617 | |
| 618 | - bool: |
| 619 | name: withPatchset |
| 620 | default: false |
| 621 | description: "Build with Gerrit patchset" |
| 622 | |
Andy Bavier | 8c11d46 | 2019-12-17 08:19:34 -0700 | [diff] [blame] | 623 | - string: |
| 624 | name: extraRobotArgs |
| 625 | default: '-e bbsim' |
| 626 | description: 'Arguments to pass to robot' |
| 627 | |
Andy Bavier | 61c5b2a | 2019-11-12 12:08:19 -0700 | [diff] [blame] | 628 | project-type: pipeline |
| 629 | concurrent: true |
| 630 | |
| 631 | dsl: !include-raw-escape: pipeline/{pipeline-script} |