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