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