Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 1 | --- |
| 2 | # list of parameters for the VOLTHA Jobs, |
| 3 | # used as anchor so that can be shared across multiple jobs |
| 4 | # to use in a job: `parameters: *voltha-build-job-parameters` |
| 5 | - voltha-build-job-parameters: &voltha-build-job-parameters |
| 6 | name: voltha-build-job-parameters |
Andrea Campanella | 6dfc043 | 2021-01-12 10:43:16 +0100 | [diff] [blame] | 7 | |
| 8 | openoltAdapterChart: onf/voltha-adapter-openolt |
| 9 | |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 10 | parameters: |
| 11 | - string: |
| 12 | name: buildNode |
| 13 | default: '{build-node}' |
| 14 | description: 'Name of the Jenkins executor node to run the job on' |
| 15 | |
| 16 | - string: |
| 17 | name: TestNodeName |
| 18 | default: '{build-node}' |
| 19 | description: 'DEPRECATED - use buildNode instead' |
| 20 | |
| 21 | - string: |
| 22 | name: cordRepoUrl |
| 23 | default: '{gerrit-server-url}' |
| 24 | description: 'The URL of the CORD Project repository' |
| 25 | |
| 26 | - string: |
| 27 | name: configBaseDir |
| 28 | default: 'pod-configs' |
| 29 | description: 'The directory inside the POD configs repository' |
| 30 | |
| 31 | - string: |
| 32 | name: configDeploymentDir |
| 33 | default: 'deployment-configs' |
| 34 | description: 'The deployment configs folder' |
| 35 | |
| 36 | - string: |
| 37 | name: configKubernetesDir |
| 38 | default: 'kubernetes-configs' |
| 39 | description: 'The kubernetes config folder' |
| 40 | |
| 41 | - string: |
| 42 | name: configToscaDir |
| 43 | default: 'tosca-configs' |
| 44 | description: 'The tosca config folder' |
| 45 | |
| 46 | - string: |
| 47 | name: configFileName |
| 48 | default: '{config-pod}' |
| 49 | description: 'The config file' |
| 50 | |
| 51 | - string: |
| 52 | name: profile |
| 53 | default: '{profile}' |
| 54 | description: 'Technology Profile pushed to the ETCD' |
| 55 | |
| 56 | - string: |
| 57 | name: helmRepoUrl |
| 58 | default: 'https://charts.opencord.org' |
| 59 | description: 'URL where helm-charts are published' |
| 60 | |
| 61 | - string: |
| 62 | name: branch |
| 63 | default: '{branch}' |
| 64 | |
| 65 | - string: |
| 66 | name: notificationEmail |
| 67 | default: 'you@opennetworking.org, suchitra@opennetworking.org' |
| 68 | description: '' |
| 69 | |
| 70 | - string: |
| 71 | name: workFlow |
| 72 | default: '{work-flow}' |
| 73 | description: 'Installs and uses the specified work flow on the POD' |
| 74 | |
| 75 | - string: |
| 76 | name: NumOfOpenOnu |
| 77 | default: '{num-of-openonu}' |
| 78 | description: 'Installs the specified Number of OpenOnu Adapters' |
| 79 | |
| 80 | - string: |
| 81 | name: NumOfOnos |
| 82 | default: '{num-of-onos}' |
| 83 | description: 'Installs the specified Number of ONOS instances' |
| 84 | |
Suchitra Vemuri | dddc3ac | 2021-02-11 15:40:43 -0800 | [diff] [blame] | 85 | - bool: |
| 86 | name: installBBSim |
| 87 | default: false |
| 88 | description: "Install the BBSim container" |
| 89 | |
| 90 | - string: |
| 91 | name: onuNumber |
| 92 | default: '{num-of-onus}' |
| 93 | description: "Onus per PonPort" |
| 94 | |
| 95 | - string: |
| 96 | name: ponNumber |
| 97 | default: '{num-of-ponports}' |
| 98 | description: "Number of PON Ports" |
| 99 | |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 100 | - string: |
| 101 | name: NumOfAtomix |
| 102 | default: '{num-of-atomix}' |
| 103 | description: 'Installs the specified Number of Atomix Instances' |
| 104 | |
| 105 | - bool: |
| 106 | name: configurePod |
| 107 | default: true |
| 108 | description: "Configure POD via TOSCA post build" |
| 109 | |
| 110 | - bool: |
| 111 | name: reinstallOlt |
| 112 | default: '{reinstall-olt}' |
| 113 | description: "Re-install olt software bringing up CORD" |
| 114 | |
| 115 | - bool: |
| 116 | name: withKind |
| 117 | default: '{with-kind}' |
| 118 | description: "The pods uses kind and a physical fabric thus port forward to the management is needed" |
| 119 | |
| 120 | - string: |
| 121 | name: VolthaEtcdPort |
| 122 | default: '{VolthaEtcdPort}' |
| 123 | description: 'Localhost port that is forwarded to VOLTHA etcd' |
| 124 | |
| 125 | - bool: |
| 126 | name: inBandManagement |
| 127 | default: '{in-band-management}' |
| 128 | description: 'Indicates whether POD is configured for in band management' |
| 129 | |
Matteo Scandolo | 3dce2a1 | 2020-09-15 14:21:14 -0700 | [diff] [blame] | 130 | - string: |
| 131 | name: volthaSystemTestsChange |
| 132 | default: '{volthaSystemTestsChange}' |
| 133 | description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"' |
| 134 | |
| 135 | - string: |
| 136 | name: kindVolthaChange |
| 137 | default: '{kindVolthaChange}' |
| 138 | description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"' |
| 139 | |
| 140 | - string: |
| 141 | name: cordTesterChange |
| 142 | default: '{cordTesterChange}' |
| 143 | description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"' |
| 144 | |
Andrea Campanella | 6dfc043 | 2021-01-12 10:43:16 +0100 | [diff] [blame] | 145 | - string: |
| 146 | name: openoltAdapterChart |
| 147 | default: '{openoltAdapterChart}' |
| 148 | description: 'OpenOLT chart name (or location on file system)' |
| 149 | |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 150 | # defualt properties for the VOLTHA scale jobs |
| 151 | - voltha-pipe-job-boiler-plate: &voltha-pipe-job-boiler-plate |
| 152 | name: voltha-pipe-job-boiler-plate |
| 153 | |
| 154 | project-type: pipeline |
| 155 | |
| 156 | sandbox: true |
| 157 | |
| 158 | properties: |
| 159 | - cord-infra-properties: |
Matteo Scandolo | a0e6f3f | 2020-11-12 17:13:20 -0800 | [diff] [blame] | 160 | build-days-to-keep: '{big-build-days-to-keep}' |
| 161 | artifact-num-to-keep: '{big-artifact-num-to-keep}' |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 162 | |
| 163 | # VOLTHA Build Jobs |
| 164 | - job-template: |
| 165 | name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}' |
| 166 | id: build_voltha_pod_release_timer |
Suchitra Vemuri | 26fe243 | 2020-09-14 19:51:32 -0700 | [diff] [blame] | 167 | disabled: '{disable-job}' |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 168 | description: | |
| 169 | Manual Build on POD {config-pod}, using {Jenkinsfile} in {gerrit-server-url}/voltha-system-tests' <br /><br /> |
Matteo Scandolo | 16090cd | 2020-08-12 15:42:42 -0700 | [diff] [blame] | 170 | Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br /> |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 171 | Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br /> |
| 172 | Copyright (c) 2018 Open Networking Foundation (ONF) |
| 173 | |
| 174 | <<: *voltha-pipe-job-boiler-plate |
| 175 | VolthaEtcdPort: '2379' |
| 176 | |
| 177 | <<: *voltha-build-job-parameters |
| 178 | |
| 179 | concurrent: true |
| 180 | |
| 181 | pipeline-scm: |
| 182 | script-path: '{Jenkinsfile}' |
| 183 | scm: |
| 184 | - git: |
| 185 | url: '{gerrit-server-url}/voltha-system-tests' |
| 186 | branches: |
| 187 | - '{branch}' |
| 188 | |
| 189 | triggers: |
| 190 | - timed: | |
| 191 | TZ=America/Los_Angeles |
| 192 | H {time} * * * |
| 193 | |
| 194 | - job-template: |
| 195 | name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}' |
| 196 | id: build_voltha_pod_release_dependent |
Matteo Scandolo | 38a00b0 | 2020-09-15 13:27:06 -0700 | [diff] [blame] | 197 | disabled: '{disable-job}' |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 198 | description: | |
| 199 | Automatic Build on POD {config-pod}, using {Jenkinsfile} in {gerrit-server-url}/voltha-system-tests' <br /><br /> |
Matteo Scandolo | 16090cd | 2020-08-12 15:42:42 -0700 | [diff] [blame] | 200 | Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br /> |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 201 | Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br /> |
| 202 | This job is triggered upon completion of a dependent _test job <br /> |
| 203 | Copyright (c) 2020 Open Networking Foundation (ONF) |
| 204 | |
| 205 | <<: *voltha-pipe-job-boiler-plate |
| 206 | VolthaEtcdPort: '2379' |
| 207 | |
| 208 | <<: *voltha-build-job-parameters |
| 209 | |
| 210 | concurrent: true |
| 211 | |
| 212 | pipeline-scm: |
| 213 | script-path: '{Jenkinsfile}' |
| 214 | scm: |
| 215 | - git: |
| 216 | url: '{gerrit-server-url}/voltha-system-tests' |
| 217 | branches: |
| 218 | - '{branch}' |
| 219 | triggers: |
| 220 | - reverse: |
| 221 | jobs: '{trigger-after}' |
| 222 | result: 'success' |
| 223 | |
| 224 | # VOLTHA Test Job |
| 225 | # This job is automatically triggered after a build job has successfully completed |
| 226 | - job-template: |
| 227 | name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test' |
| 228 | id: build_voltha_pod_test |
Matteo Scandolo | 38a00b0 | 2020-09-15 13:27:06 -0700 | [diff] [blame] | 229 | disabled: '{disable-job}' |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 230 | description: | |
| 231 | Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br /> |
Matteo Scandolo | 16090cd | 2020-08-12 15:42:42 -0700 | [diff] [blame] | 232 | Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br /> |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 233 | Created by Suchitra Vemuri, suchitra@opennetworking.org <br /> |
| 234 | Copyright (c) 2017 Open Networking Foundation (ONF) |
| 235 | |
| 236 | <<: *voltha-pipe-job-boiler-plate |
| 237 | pipeline-script: 'voltha-physical-functional-tests.groovy' |
| 238 | manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git' |
| 239 | manifest-branch: 'master' |
| 240 | |
Andrea Campanella | 0d3110c | 2021-01-20 12:25:45 +0100 | [diff] [blame] | 241 | oltAdapterAppLabel: 'adapter-open-olt' |
| 242 | |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 243 | parameters: |
| 244 | - string: |
| 245 | name: buildNode |
| 246 | default: '{build-node}' |
| 247 | description: 'Name of the Jenkins executor node to run the job on' |
| 248 | |
| 249 | - string: |
| 250 | name: TestNodeName |
| 251 | default: '{build-node}' |
| 252 | description: 'DEPRECATED - use buildNode instead' |
| 253 | |
| 254 | - string: |
| 255 | name: cordRepoUrl |
| 256 | default: '{gerrit-server-url}' |
| 257 | description: 'The URL of the CORD Project repository' |
| 258 | |
| 259 | - string: |
| 260 | name: configBaseDir |
| 261 | default: 'pod-configs' |
| 262 | description: 'The directory inside the POD configs repository' |
| 263 | |
| 264 | - string: |
| 265 | name: configDeploymentDir |
| 266 | default: 'deployment-configs' |
| 267 | description: 'The deployment configs folder' |
| 268 | |
| 269 | - string: |
| 270 | name: configKubernetesDir |
| 271 | default: 'kubernetes-configs' |
| 272 | description: 'The kubernetes config folder' |
| 273 | |
| 274 | - string: |
| 275 | name: configToscaDir |
| 276 | default: 'tosca-configs' |
| 277 | description: 'The tosca config folder' |
| 278 | |
| 279 | - string: |
| 280 | name: configFileName |
| 281 | default: '{config-pod}' |
| 282 | description: 'The config file' |
| 283 | |
| 284 | - string: |
| 285 | name: profile |
| 286 | default: '{profile}' |
| 287 | description: 'Technology Profile pushed to the ETCD' |
| 288 | |
| 289 | - string: |
| 290 | name: branch |
| 291 | default: '{branch}' |
| 292 | description: 'Branch of the test libraries to check out' |
| 293 | |
| 294 | - string: |
| 295 | name: manifestUrl |
| 296 | default: '{manifest-url}' |
| 297 | description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)' |
| 298 | |
| 299 | - string: |
| 300 | name: manifestBranch |
| 301 | default: '{manifest-branch}' |
| 302 | description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)' |
| 303 | |
| 304 | - string: |
| 305 | name: workFlow |
| 306 | default: '{work-flow}' |
| 307 | description: 'Installs and uses the specified work flow on the POD' |
| 308 | |
| 309 | - bool: |
| 310 | name: powerSwitch |
| 311 | default: '{power-switch}' |
| 312 | description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely" |
| 313 | |
Andrea Campanella | 6ea6227 | 2020-09-16 11:10:52 +0200 | [diff] [blame] | 314 | - string: |
Andrea Campanella | 0d3110c | 2021-01-20 12:25:45 +0100 | [diff] [blame] | 315 | name: oltAdapterAppLabel |
| 316 | default: '{oltAdapterAppLabel}' |
| 317 | description: 'OLT adapter pod name' |
| 318 | |
| 319 | - string: |
Andrea Campanella | 6ea6227 | 2020-09-16 11:10:52 +0200 | [diff] [blame] | 320 | name: volthaSystemTestsChange |
| 321 | default: '{volthaSystemTestsChange}' |
| 322 | description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"' |
| 323 | |
| 324 | - string: |
| 325 | name: kindVolthaChange |
| 326 | default: '{kindVolthaChange}' |
| 327 | description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"' |
| 328 | |
| 329 | - string: |
| 330 | name: cordTesterChange |
| 331 | default: '{cordTesterChange}' |
| 332 | description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"' |
| 333 | |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 334 | concurrent: true |
| 335 | |
| 336 | project-type: pipeline |
| 337 | dsl: !include-raw-escape: ../pipeline/{pipeline-script} |
| 338 | |
| 339 | triggers: |
| 340 | - reverse: |
| 341 | jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}' |
| 342 | result: 'success' |
Suchitra Vemuri | 0921c75 | 2020-08-31 22:58:50 -0700 | [diff] [blame] | 343 | |
| 344 | |
| 345 | # VOLTHA Test Job |
| 346 | # This job is automatically triggered after a build job has successfully completed |
| 347 | - job-template: |
| 348 | name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test' |
| 349 | id: build_voltha_pod_soak_test |
Andrea Campanella | b54cabe | 2020-11-26 14:48:11 +0100 | [diff] [blame] | 350 | disabled: '{disable-job}' |
Suchitra Vemuri | 0921c75 | 2020-08-31 22:58:50 -0700 | [diff] [blame] | 351 | description: | |
| 352 | Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br /> |
| 353 | Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br /> |
| 354 | Created by Suchitra Vemuri, suchitra@opennetworking.org <br /> |
| 355 | Copyright (c) 2017 Open Networking Foundation (ONF) |
| 356 | |
| 357 | <<: *voltha-pipe-job-boiler-plate |
| 358 | pipeline-script: 'voltha-physical-functional-tests.groovy' |
| 359 | manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git' |
| 360 | manifest-branch: 'master' |
| 361 | |
Andrea Campanella | 0d3110c | 2021-01-20 12:25:45 +0100 | [diff] [blame] | 362 | oltAdapterAppLabel: 'adapter-open-olt' |
| 363 | |
Suchitra Vemuri | 0921c75 | 2020-08-31 22:58:50 -0700 | [diff] [blame] | 364 | parameters: |
| 365 | - string: |
| 366 | name: buildNode |
| 367 | default: '{build-node}' |
| 368 | description: 'Name of the Jenkins executor node to run the job on' |
| 369 | |
| 370 | - string: |
| 371 | name: TestNodeName |
| 372 | default: '{build-node}' |
| 373 | description: 'DEPRECATED - use buildNode instead' |
| 374 | |
| 375 | - string: |
| 376 | name: cordRepoUrl |
| 377 | default: '{gerrit-server-url}' |
| 378 | description: 'The URL of the CORD Project repository' |
| 379 | |
| 380 | - string: |
| 381 | name: configBaseDir |
| 382 | default: 'pod-configs' |
| 383 | description: 'The directory inside the POD configs repository' |
| 384 | |
| 385 | - string: |
| 386 | name: configDeploymentDir |
| 387 | default: 'deployment-configs' |
| 388 | description: 'The deployment configs folder' |
| 389 | |
| 390 | - string: |
| 391 | name: configKubernetesDir |
| 392 | default: 'kubernetes-configs' |
| 393 | description: 'The kubernetes config folder' |
| 394 | |
| 395 | - string: |
| 396 | name: configToscaDir |
| 397 | default: 'tosca-configs' |
| 398 | description: 'The tosca config folder' |
| 399 | |
| 400 | - string: |
| 401 | name: configFileName |
| 402 | default: '{config-pod}' |
| 403 | description: 'The config file' |
| 404 | |
| 405 | - string: |
| 406 | name: profile |
| 407 | default: '{profile}' |
| 408 | description: 'Technology Profile pushed to the ETCD' |
| 409 | |
| 410 | - string: |
| 411 | name: branch |
| 412 | default: '{branch}' |
| 413 | description: 'Branch of the test libraries to check out' |
| 414 | |
| 415 | - string: |
| 416 | name: manifestUrl |
| 417 | default: '{manifest-url}' |
| 418 | description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)' |
| 419 | |
| 420 | - string: |
| 421 | name: manifestBranch |
| 422 | default: '{manifest-branch}' |
| 423 | description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)' |
| 424 | |
| 425 | - string: |
| 426 | name: workFlow |
| 427 | default: '{work-flow}' |
| 428 | description: 'Installs and uses the specified work flow on the POD' |
| 429 | |
| 430 | - bool: |
| 431 | name: powerSwitch |
| 432 | default: '{power-switch}' |
| 433 | description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely" |
| 434 | |
Suchitra Vemuri | e662522 | 2020-09-01 17:12:56 -0700 | [diff] [blame] | 435 | - string: |
Andrea Campanella | 0d3110c | 2021-01-20 12:25:45 +0100 | [diff] [blame] | 436 | name: oltAdapterAppLabel |
| 437 | default: '{oltAdapterAppLabel}' |
| 438 | description: 'OLT adapter pod name' |
| 439 | |
| 440 | - string: |
Suchitra Vemuri | e662522 | 2020-09-01 17:12:56 -0700 | [diff] [blame] | 441 | name: testType |
| 442 | default: '{test-type}' |
| 443 | description: 'Passes the required test category to the groovy script' |
| 444 | |
Suchitra Vemuri | e3bb90d | 2020-09-15 17:15:50 -0700 | [diff] [blame] | 445 | - string: |
| 446 | name: volthaSystemTestsChange |
| 447 | default: '{volthaSystemTestsChange}' |
| 448 | description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"' |
| 449 | |
| 450 | - string: |
| 451 | name: kindVolthaChange |
| 452 | default: '{kindVolthaChange}' |
| 453 | description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"' |
| 454 | |
| 455 | - string: |
| 456 | name: cordTesterChange |
| 457 | default: '{cordTesterChange}' |
| 458 | description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"' |
Suchitra Vemuri | 0921c75 | 2020-08-31 22:58:50 -0700 | [diff] [blame] | 459 | concurrent: true |
| 460 | |
| 461 | project-type: pipeline |
| 462 | dsl: !include-raw-escape: ../pipeline/{pipeline-script} |
| 463 | |
| 464 | triggers: |
| 465 | - timed: | |
| 466 | TZ=America/Los_Angeles |
| 467 | {time-trigger} |