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