Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 1 | --- |
| 2 | # device-management tests |
| 3 | |
| 4 | - project: |
| 5 | name: device-management-e2e |
| 6 | |
| 7 | project-name: '{name}' |
| 8 | |
| 9 | jobs: |
| 10 | # Per-patchset Pod builds on Tucson pod |
| 11 | - 'verify_physical_device-management_patchset_manual': |
| 12 | name: 'verify_physical_device-management_patchset_manual' |
| 13 | testvm: 'tucson-pod' |
| 14 | config-pod: 'tucson-pod' |
| 15 | branch: 'master' |
Girish Gowdra | b6015cf | 2021-03-18 12:55:20 -0700 | [diff] [blame] | 16 | oltDebVersion: 'openolt_asfvolt16-3.3.3-1a5d68b50d8bcc5ba6cb1630d3294c30c37cd2f5-40G-NNI.deb' |
Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 17 | profile: 'Default' |
Scott Baker | f21f8b8 | 2020-05-05 17:33:13 -0700 | [diff] [blame] | 18 | time-trigger: "@daily" |
Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 19 | |
| 20 | - job-template: |
| 21 | id: 'device-management-patch-test' |
| 22 | name: 'verify_{project}_sanity-test{name-extension}' |
| 23 | extra-helm-flags: '' |
| 24 | skip-vote: false |
Matteo Scandolo | 37f168b | 2021-04-15 16:20:46 -0700 | [diff] [blame] | 25 | volthaSystemTestsChange: '' |
| 26 | volthaHelmChartsChange: '' |
Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 27 | |
| 28 | description: | |
| 29 | <!-- Managed by Jenkins Job Builder --> |
| 30 | Created by {id} job-template from ci-management/jjb/device-management.yaml <br /><br /> |
| 31 | Validation for device-management using mock redfish servers |
| 32 | |
| 33 | properties: |
| 34 | - cord-infra-properties: |
| 35 | build-days-to-keep: '{build-days-to-keep}' |
| 36 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 37 | |
| 38 | wrappers: |
| 39 | - lf-infra-wrappers: |
| 40 | build-timeout: '{build-timeout}' |
| 41 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 42 | |
| 43 | parameters: |
| 44 | - string: |
| 45 | name: buildNode |
| 46 | default: 'ubuntu16.04-basebuild-4c-8g' |
| 47 | description: 'Name of the Jenkins node to run the job on' |
| 48 | |
| 49 | - string: |
Matteo Scandolo | 37f168b | 2021-04-15 16:20:46 -0700 | [diff] [blame] | 50 | name: branch |
Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 51 | default: 'master' |
| 52 | description: 'Name of the repo branch to use' |
| 53 | |
| 54 | - string: |
| 55 | name: gerritProject |
| 56 | default: '$GERRIT_PROJECT' |
| 57 | description: 'Name of the Gerrit project' |
| 58 | |
| 59 | - string: |
Matteo Scandolo | 37f168b | 2021-04-15 16:20:46 -0700 | [diff] [blame] | 60 | name: gerritRefspec |
| 61 | default: '$GERRIT_REFSPEC' |
| 62 | description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"' |
Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 63 | |
| 64 | - string: |
| 65 | name: extraHelmFlags |
| 66 | default: '{extra-helm-flags}' |
| 67 | description: 'Helm flags to pass to ./voltha up' |
| 68 | |
Matteo Scandolo | 37f168b | 2021-04-15 16:20:46 -0700 | [diff] [blame] | 69 | - string: |
| 70 | name: volthaSystemTestsChange |
| 71 | default: '{volthaSystemTestsChange}' |
| 72 | description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"' |
| 73 | |
| 74 | - string: |
| 75 | name: volthaHelmChartsChange |
| 76 | default: '{volthaHelmChartsChange}' |
| 77 | description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/79/18779/13"' |
| 78 | |
Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 79 | project-type: pipeline |
| 80 | concurrent: true |
| 81 | |
| 82 | dsl: !include-raw-escape: pipeline/{pipeline-script} |
| 83 | |
| 84 | triggers: |
| 85 | - gerrit: |
| 86 | server-name: '{gerrit-server-name}' |
| 87 | dependency-jobs: '{dependency-jobs}' |
| 88 | silent-start: true |
| 89 | trigger-on: |
| 90 | - patchset-created-event: |
| 91 | exclude-drafts: true |
| 92 | exclude-trivial-rebase: false |
| 93 | exclude-no-code-change: true |
| 94 | - draft-published-event |
| 95 | - comment-added-contains-event: |
| 96 | comment-contains-value: '(?i)^.*recheck$' |
| 97 | projects: |
| 98 | - project-compare-type: REG_EXP |
| 99 | project-pattern: '^device-management$' |
| 100 | branches: |
| 101 | - branch-compare-type: REG_EXP |
| 102 | branch-pattern: '{branch-regexp}' |
| 103 | file-paths: |
| 104 | - compare-type: REG_EXP |
| 105 | pattern: '{all-files-regexp}' |
| 106 | skip-vote: |
| 107 | successful: '{skip-vote}' |
| 108 | failed: '{skip-vote}' |
| 109 | unstable: '{skip-vote}' |
| 110 | notbuilt: '{skip-vote}' |
| 111 | |
| 112 | # POD Per Patchset Pipeline Jobs |
| 113 | |
| 114 | - job-template: |
| 115 | name: '{name}' |
| 116 | id: verify_physical_device-management_patchset_manual |
| 117 | description: | |
| 118 | <!-- Managed by Jenkins Job Builder --> |
| 119 | Automated build on POD {config-pod} using {pipeline-script} <br /><br /> |
| 120 | Created from job-template {id} from ci-management/jjb/device-management.yaml <br /> |
| 121 | Created by Andy Bavier, andy@opennetworking.org <br /> |
| 122 | Copyright (c) 2019 Open Networking Foundation (ONF) |
| 123 | sandbox: true |
| 124 | pipeline-script: 'device-management-physical-build-and-tests.groovy' |
| 125 | |
| 126 | properties: |
| 127 | - cord-infra-properties: |
| 128 | build-days-to-keep: '{build-days-to-keep}' |
| 129 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 130 | |
| 131 | parameters: |
| 132 | - string: |
| 133 | name: buildNode |
| 134 | default: '{testvm}' |
| 135 | description: 'Pod management node' |
| 136 | |
| 137 | - string: |
| 138 | name: manifestUrl |
| 139 | default: '{gerrit-server-url}/{voltha-test-manifest-repo}' |
| 140 | description: 'URL to the repo manifest' |
| 141 | |
| 142 | - string: |
| 143 | name: manifestBranch |
| 144 | default: master |
| 145 | description: 'Name of the repo branch to use' |
| 146 | |
| 147 | - string: |
| 148 | name: gerritProject |
Scott Baker | f21f8b8 | 2020-05-05 17:33:13 -0700 | [diff] [blame] | 149 | default: 'device-management' |
Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 150 | description: 'Name of the Gerrit project' |
| 151 | |
| 152 | - string: |
Scott Baker | f21f8b8 | 2020-05-05 17:33:13 -0700 | [diff] [blame] | 153 | name: gerritRefSpec |
| 154 | default: '$GERRIT_REFSPEC' |
| 155 | description: 'Refspec for the Gerrit patchset' |
Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 156 | |
| 157 | - string: |
Scott Baker | f21f8b8 | 2020-05-05 17:33:13 -0700 | [diff] [blame] | 158 | name: gerritEventCommentText |
| 159 | default: '$GERRIT_EVENT_COMMENT_TEXT' |
| 160 | description: 'Comment text from gerrit commit' |
Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 161 | |
| 162 | - string: |
| 163 | name: cordRepoUrl |
| 164 | default: '{gerrit-server-url}' |
| 165 | description: 'The URL of the CORD Project repository' |
| 166 | |
| 167 | - string: |
| 168 | name: podName |
| 169 | default: '{config-pod}' |
| 170 | |
| 171 | - string: |
| 172 | name: deploymentConfigFile |
| 173 | default: 'pod-configs/deployment-configs/{config-pod}.yaml' |
| 174 | description: 'Path of deployment config file' |
| 175 | |
| 176 | - string: |
| 177 | name: kindVolthaValuesFile |
| 178 | default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml' |
| 179 | description: 'Path of kind-voltha values override file' |
| 180 | |
| 181 | - string: |
| 182 | name: sadisConfigFile |
| 183 | default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json' |
| 184 | description: 'Path of SADIS config to load' |
| 185 | |
| 186 | - string: |
| 187 | name: localConfigDir |
| 188 | default: null |
| 189 | description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE' |
| 190 | |
| 191 | - string: |
| 192 | name: configRepo |
| 193 | default: 'pod-configs' |
| 194 | description: 'A repository containing the config files, will be checked out if specified' |
| 195 | |
| 196 | - string: |
| 197 | name: oltDebVersion |
| 198 | default: '{oltDebVersion}' |
| 199 | description: 'OLT Software version to install' |
| 200 | |
| 201 | - string: |
| 202 | name: branch |
| 203 | default: '{branch}' |
| 204 | |
| 205 | - string: |
| 206 | name: profile |
| 207 | default: '{profile}' |
| 208 | description: 'Technology Profile pushed to the ETCD' |
| 209 | |
| 210 | - string: |
| 211 | name: notificationEmail |
| 212 | default: 'andy@opennetworking.org' |
| 213 | description: '' |
| 214 | |
| 215 | - bool: |
| 216 | name: reinstallOlt |
| 217 | default: true |
| 218 | description: "Re-install OLT software" |
| 219 | |
Scott Baker | ff88771 | 2020-04-29 13:39:41 -0700 | [diff] [blame] | 220 | - string: |
| 221 | name: extraRobotArgs |
| 222 | default: '-i sanity' |
| 223 | description: 'Arguments to pass to robot' |
| 224 | |
| 225 | project-type: pipeline |
| 226 | concurrent: true |
| 227 | |
| 228 | dsl: !include-raw-escape: pipeline/{pipeline-script} |
| 229 | |
| 230 | triggers: |
| 231 | - gerrit: |
| 232 | server-name: '{gerrit-server-name}' |
| 233 | dependency-jobs: '{dependency-jobs}' |
| 234 | silent-start: false |
| 235 | successful-message: "PASSED hardware test" |
| 236 | failure-message: "FAILED hardware test" |
| 237 | unstable-message: "UNSTABLE hardware test" |
| 238 | trigger-on: |
| 239 | - comment-added-contains-event: |
| 240 | comment-contains-value: '^hardware test$' |
| 241 | - comment-added-contains-event: |
| 242 | comment-contains-value: '^hardware test with delay$' |
| 243 | projects: |
| 244 | - project-compare-type: REG_EXP |
| 245 | project-pattern: '^device-management$' |
| 246 | branches: |
| 247 | - branch-compare-type: PLAIN |
| 248 | branch-pattern: 'master' |
Scott Baker | 9866dd6 | 2020-05-14 11:27:53 -0700 | [diff] [blame] | 249 | - timed: | |
| 250 | TZ=America/Los_Angeles |
| 251 | {time-trigger} |