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' |
Hardik Windlass | 6d2c696 | 2021-02-10 06:58:00 +0000 | [diff] [blame] | 223 | - reverse: |
| 224 | jobs: '{trigger-after}' |
| 225 | result: 'failure' |
| 226 | - reverse: |
| 227 | jobs: '{trigger-after}' |
| 228 | result: 'unstable' |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 229 | |
| 230 | # VOLTHA Test Job |
| 231 | # This job is automatically triggered after a build job has successfully completed |
| 232 | - job-template: |
| 233 | name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test' |
| 234 | id: build_voltha_pod_test |
Matteo Scandolo | 38a00b0 | 2020-09-15 13:27:06 -0700 | [diff] [blame] | 235 | disabled: '{disable-job}' |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 236 | description: | |
| 237 | 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] | 238 | 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] | 239 | Created by Suchitra Vemuri, suchitra@opennetworking.org <br /> |
| 240 | Copyright (c) 2017 Open Networking Foundation (ONF) |
| 241 | |
| 242 | <<: *voltha-pipe-job-boiler-plate |
| 243 | pipeline-script: 'voltha-physical-functional-tests.groovy' |
| 244 | manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git' |
| 245 | manifest-branch: 'master' |
| 246 | |
Andrea Campanella | 0d3110c | 2021-01-20 12:25:45 +0100 | [diff] [blame] | 247 | oltAdapterAppLabel: 'adapter-open-olt' |
| 248 | |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 249 | parameters: |
| 250 | - string: |
| 251 | name: buildNode |
| 252 | default: '{build-node}' |
| 253 | description: 'Name of the Jenkins executor node to run the job on' |
| 254 | |
| 255 | - string: |
| 256 | name: TestNodeName |
| 257 | default: '{build-node}' |
| 258 | description: 'DEPRECATED - use buildNode instead' |
| 259 | |
| 260 | - string: |
| 261 | name: cordRepoUrl |
| 262 | default: '{gerrit-server-url}' |
| 263 | description: 'The URL of the CORD Project repository' |
| 264 | |
| 265 | - string: |
| 266 | name: configBaseDir |
| 267 | default: 'pod-configs' |
| 268 | description: 'The directory inside the POD configs repository' |
| 269 | |
| 270 | - string: |
| 271 | name: configDeploymentDir |
| 272 | default: 'deployment-configs' |
| 273 | description: 'The deployment configs folder' |
| 274 | |
| 275 | - string: |
| 276 | name: configKubernetesDir |
| 277 | default: 'kubernetes-configs' |
| 278 | description: 'The kubernetes config folder' |
| 279 | |
| 280 | - string: |
| 281 | name: configToscaDir |
| 282 | default: 'tosca-configs' |
| 283 | description: 'The tosca config folder' |
| 284 | |
| 285 | - string: |
| 286 | name: configFileName |
| 287 | default: '{config-pod}' |
| 288 | description: 'The config file' |
| 289 | |
| 290 | - string: |
| 291 | name: profile |
| 292 | default: '{profile}' |
| 293 | description: 'Technology Profile pushed to the ETCD' |
| 294 | |
| 295 | - string: |
| 296 | name: branch |
| 297 | default: '{branch}' |
| 298 | description: 'Branch of the test libraries to check out' |
| 299 | |
| 300 | - string: |
| 301 | name: manifestUrl |
| 302 | default: '{manifest-url}' |
| 303 | description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)' |
| 304 | |
| 305 | - string: |
| 306 | name: manifestBranch |
| 307 | default: '{manifest-branch}' |
| 308 | description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)' |
| 309 | |
| 310 | - string: |
| 311 | name: workFlow |
| 312 | default: '{work-flow}' |
| 313 | description: 'Installs and uses the specified work flow on the POD' |
| 314 | |
| 315 | - bool: |
| 316 | name: powerSwitch |
| 317 | default: '{power-switch}' |
| 318 | description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely" |
| 319 | |
Andrea Campanella | 6ea6227 | 2020-09-16 11:10:52 +0200 | [diff] [blame] | 320 | - string: |
Andrea Campanella | 0d3110c | 2021-01-20 12:25:45 +0100 | [diff] [blame] | 321 | name: oltAdapterAppLabel |
| 322 | default: '{oltAdapterAppLabel}' |
| 323 | description: 'OLT adapter pod name' |
| 324 | |
| 325 | - string: |
Andrea Campanella | 6ea6227 | 2020-09-16 11:10:52 +0200 | [diff] [blame] | 326 | name: volthaSystemTestsChange |
| 327 | default: '{volthaSystemTestsChange}' |
| 328 | description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"' |
| 329 | |
| 330 | - string: |
| 331 | name: kindVolthaChange |
| 332 | default: '{kindVolthaChange}' |
| 333 | description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"' |
| 334 | |
| 335 | - string: |
| 336 | name: cordTesterChange |
| 337 | default: '{cordTesterChange}' |
| 338 | description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"' |
| 339 | |
Matteo Scandolo | 9973c65 | 2020-08-07 15:23:35 -0700 | [diff] [blame] | 340 | concurrent: true |
| 341 | |
| 342 | project-type: pipeline |
| 343 | dsl: !include-raw-escape: ../pipeline/{pipeline-script} |
| 344 | |
| 345 | triggers: |
| 346 | - reverse: |
| 347 | jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}' |
| 348 | result: 'success' |
Suchitra Vemuri | 0921c75 | 2020-08-31 22:58:50 -0700 | [diff] [blame] | 349 | |
| 350 | |
| 351 | # VOLTHA Test Job |
| 352 | # This job is automatically triggered after a build job has successfully completed |
| 353 | - job-template: |
| 354 | name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test' |
| 355 | id: build_voltha_pod_soak_test |
Andrea Campanella | b54cabe | 2020-11-26 14:48:11 +0100 | [diff] [blame] | 356 | disabled: '{disable-job}' |
Suchitra Vemuri | 0921c75 | 2020-08-31 22:58:50 -0700 | [diff] [blame] | 357 | description: | |
| 358 | Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br /> |
| 359 | Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br /> |
| 360 | Created by Suchitra Vemuri, suchitra@opennetworking.org <br /> |
| 361 | Copyright (c) 2017 Open Networking Foundation (ONF) |
| 362 | |
| 363 | <<: *voltha-pipe-job-boiler-plate |
| 364 | pipeline-script: 'voltha-physical-functional-tests.groovy' |
| 365 | manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git' |
| 366 | manifest-branch: 'master' |
| 367 | |
Andrea Campanella | 0d3110c | 2021-01-20 12:25:45 +0100 | [diff] [blame] | 368 | oltAdapterAppLabel: 'adapter-open-olt' |
| 369 | |
Suchitra Vemuri | 0921c75 | 2020-08-31 22:58:50 -0700 | [diff] [blame] | 370 | parameters: |
| 371 | - string: |
| 372 | name: buildNode |
| 373 | default: '{build-node}' |
| 374 | description: 'Name of the Jenkins executor node to run the job on' |
| 375 | |
| 376 | - string: |
| 377 | name: TestNodeName |
| 378 | default: '{build-node}' |
| 379 | description: 'DEPRECATED - use buildNode instead' |
| 380 | |
| 381 | - string: |
| 382 | name: cordRepoUrl |
| 383 | default: '{gerrit-server-url}' |
| 384 | description: 'The URL of the CORD Project repository' |
| 385 | |
| 386 | - string: |
| 387 | name: configBaseDir |
| 388 | default: 'pod-configs' |
| 389 | description: 'The directory inside the POD configs repository' |
| 390 | |
| 391 | - string: |
| 392 | name: configDeploymentDir |
| 393 | default: 'deployment-configs' |
| 394 | description: 'The deployment configs folder' |
| 395 | |
| 396 | - string: |
| 397 | name: configKubernetesDir |
| 398 | default: 'kubernetes-configs' |
| 399 | description: 'The kubernetes config folder' |
| 400 | |
| 401 | - string: |
| 402 | name: configToscaDir |
| 403 | default: 'tosca-configs' |
| 404 | description: 'The tosca config folder' |
| 405 | |
| 406 | - string: |
| 407 | name: configFileName |
| 408 | default: '{config-pod}' |
| 409 | description: 'The config file' |
| 410 | |
| 411 | - string: |
| 412 | name: profile |
| 413 | default: '{profile}' |
| 414 | description: 'Technology Profile pushed to the ETCD' |
| 415 | |
| 416 | - string: |
| 417 | name: branch |
| 418 | default: '{branch}' |
| 419 | description: 'Branch of the test libraries to check out' |
| 420 | |
| 421 | - string: |
| 422 | name: manifestUrl |
| 423 | default: '{manifest-url}' |
| 424 | description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)' |
| 425 | |
| 426 | - string: |
| 427 | name: manifestBranch |
| 428 | default: '{manifest-branch}' |
| 429 | description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)' |
| 430 | |
| 431 | - string: |
| 432 | name: workFlow |
| 433 | default: '{work-flow}' |
| 434 | description: 'Installs and uses the specified work flow on the POD' |
| 435 | |
| 436 | - bool: |
| 437 | name: powerSwitch |
| 438 | default: '{power-switch}' |
| 439 | description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely" |
| 440 | |
Suchitra Vemuri | e662522 | 2020-09-01 17:12:56 -0700 | [diff] [blame] | 441 | - string: |
Andrea Campanella | 0d3110c | 2021-01-20 12:25:45 +0100 | [diff] [blame] | 442 | name: oltAdapterAppLabel |
| 443 | default: '{oltAdapterAppLabel}' |
| 444 | description: 'OLT adapter pod name' |
| 445 | |
| 446 | - string: |
Suchitra Vemuri | e662522 | 2020-09-01 17:12:56 -0700 | [diff] [blame] | 447 | name: testType |
| 448 | default: '{test-type}' |
| 449 | description: 'Passes the required test category to the groovy script' |
| 450 | |
Suchitra Vemuri | e3bb90d | 2020-09-15 17:15:50 -0700 | [diff] [blame] | 451 | - string: |
| 452 | name: volthaSystemTestsChange |
| 453 | default: '{volthaSystemTestsChange}' |
| 454 | description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"' |
| 455 | |
| 456 | - string: |
| 457 | name: kindVolthaChange |
| 458 | default: '{kindVolthaChange}' |
| 459 | description: 'Download a change for gerrit in the kind-voltha repo, example value: "refs/changes/32/19132/1"' |
| 460 | |
| 461 | - string: |
| 462 | name: cordTesterChange |
| 463 | default: '{cordTesterChange}' |
| 464 | 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] | 465 | concurrent: true |
| 466 | |
| 467 | project-type: pipeline |
| 468 | dsl: !include-raw-escape: ../pipeline/{pipeline-script} |
| 469 | |
| 470 | triggers: |
| 471 | - timed: | |
| 472 | TZ=America/Los_Angeles |
| 473 | {time-trigger} |