Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 1 | --- |
| 2 | # ONOS System Test Pipeline jobs |
| 3 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 4 | |
| 5 | - test-free-job-boiler-plate: &test-free-job-boiler-plate |
| 6 | name: test-free-job-boiler-plate |
| 7 | |
| 8 | project-type: freestyle |
| 9 | |
| 10 | - init-station-plate: &init-station-plate |
| 11 | name: init-station-plate |
| 12 | station-type: |
| 13 | - 'VM' |
| 14 | - 'BM' |
Devin Lim | 1c4753e | 2018-03-23 15:31:38 -0700 | [diff] [blame] | 15 | - 'Fabric' |
Devin Lim | a5019ff | 2018-04-06 12:50:15 -0700 | [diff] [blame] | 16 | - 'Fabric2' |
| 17 | - 'Fabric3' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 18 | |
Devin Lim | a008a21 | 2018-04-09 16:01:55 -0700 | [diff] [blame] | 19 | - init-station-plate-clean: &init-station-plate-clean |
| 20 | name: init-station-plate-clean |
| 21 | clean-station-type: |
| 22 | - 'BM' |
| 23 | - 'Fabric' |
| 24 | - 'Fabric2' |
| 25 | - 'Fabric3' |
| 26 | - 'Fabric4' |
| 27 | - 'Fabric5' |
| 28 | |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 29 | - job-free-version-plate: &job-free-version-plate |
| 30 | name: job-free-version-plate |
| 31 | version: |
| 32 | - '1.11' |
| 33 | - '1.12' |
| 34 | - 'master' |
| 35 | - 'manually' |
| 36 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 37 | - test-free-init-procedure-plate: &test-free-init-procedure-plate |
| 38 | name: test-free-init-procedure-plate |
| 39 | project: OnosSystemTest |
| 40 | stream: 'master' |
| 41 | |
| 42 | - inject-env-variable-plate: &inject-env-variable-plate |
| 43 | name: inject-env-variable-plate |
| 44 | wrappers: |
| 45 | - inject: |
| 46 | properties-file: '/var/jenkins/TestONOS.property' |
| 47 | script-content: | |
| 48 | echo "ONOSBranch=$ONOSBranch" > /var/jenkins/TestONOS.property |
| 49 | echo "TestONBranch=$TestONBranch" >> /var/jenkins/TestONOS.property |
| 50 | echo "ONOSTag=$ONOSTag" >> /var/jenkins/TestONOS.property |
| 51 | echo "WikiPrefix=$WikiPrefix" >> /var/jenkins/TestONOS.property |
| 52 | override-build-parameters: true |
| 53 | |
| 54 | # post_Job |
| 55 | - job-template: |
| 56 | name: postjob-{station-type} |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 57 | description: | |
| 58 | <!-- Managed by Jenkins Job Builder --> |
| 59 | Click on the "Last Successful Artifacts" to view all of the graphs (also accessible when logged out).<br /> |
| 60 | <font color="red">Unless debugging, DO NOT MANUALLY BUILD THIS PIPELINE.</font><br /> |
| 61 | <br /> |
| 62 | Created by Devin Lim - devin@opennetworking.org<br /> |
| 63 | Copyright (c) 2017 Open Networking Foundation (ONF) |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 64 | |
| 65 | <<: *test-free-job-boiler-plate |
| 66 | |
| 67 | properties: |
| 68 | |
| 69 | - build-discarder: |
| 70 | num-to-keep: 1 |
| 71 | |
| 72 | parameters: |
| 73 | |
| 74 | - lf-infra-parameters: |
| 75 | project: '{project}' |
| 76 | branch: '{stream}' |
| 77 | stream: '{stream}' |
| 78 | lftools-version: '{lftools-version}' |
| 79 | |
| 80 | node: 'TestStation-{station-type}s' |
| 81 | |
| 82 | publishers: |
| 83 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 84 | - image-gallery: |
| 85 | - gallery-type: archived-images-gallery |
| 86 | title: 'Test result' |
| 87 | includes: '*.jpg' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 88 | |
| 89 | - archive: |
| 90 | artifacts: '*.jpg' |
| 91 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 92 | - job-template: |
| 93 | name: test-station-log-cleanup-VM |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 94 | description: | |
| 95 | <!-- Managed by Jenkins Job Builder --> |
| 96 | clean up periodically ~/OnosSystemTest/TestON/logs - delete logs older than $DAYS_OLD days. |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 97 | |
| 98 | <<: *test-free-job-boiler-plate |
| 99 | <<: *inject-env-variable-plate |
| 100 | properties: |
| 101 | |
| 102 | - build-discarder: |
| 103 | num-to-keep: 30 |
| 104 | |
| 105 | parameters: |
| 106 | |
| 107 | - string: |
| 108 | name: 'DAYS_OLD' |
| 109 | default: '15' |
| 110 | |
| 111 | - lf-infra-parameters: |
| 112 | project: '{project}' |
| 113 | branch: '{stream}' |
| 114 | stream: '{stream}' |
| 115 | lftools-version: '{lftools-version}' |
| 116 | |
| 117 | node: 'TestStation-VMs' |
| 118 | |
Devin Lim | 2b5ef2e | 2018-02-27 14:05:08 -0800 | [diff] [blame] | 119 | triggers: |
| 120 | - timed: '01 08 1,15 * *' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 121 | builders: |
| 122 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 123 | - shell: !include-raw-escape: vm-bm-clean-up.sh |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 124 | |
| 125 | - job-template: |
Devin Lim | a008a21 | 2018-04-09 16:01:55 -0700 | [diff] [blame] | 126 | name: test-station-log-cleanup-{clean-station-type} |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 127 | description: | |
| 128 | <!-- Managed by Jenkins Job Builder --> |
| 129 | clean up periodically ~/OnosSystemTest/TestON/logs - delete logs older than $DAYS_OLD days. |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 130 | |
| 131 | <<: *test-free-job-boiler-plate |
| 132 | <<: *inject-env-variable-plate |
| 133 | properties: |
| 134 | |
| 135 | - build-discarder: |
| 136 | num-to-keep: 30 |
| 137 | |
| 138 | parameters: |
| 139 | |
| 140 | - string: |
| 141 | name: 'DAYS_OLD' |
| 142 | default: '30' |
| 143 | |
| 144 | - lf-infra-parameters: |
| 145 | project: '{project}' |
| 146 | branch: '{stream}' |
| 147 | stream: '{stream}' |
| 148 | lftools-version: '{lftools-version}' |
| 149 | |
Devin Lim | a008a21 | 2018-04-09 16:01:55 -0700 | [diff] [blame] | 150 | node: 'TestStation-{clean-station-type}s' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 151 | |
Devin Lim | 2b5ef2e | 2018-02-27 14:05:08 -0800 | [diff] [blame] | 152 | triggers: |
| 153 | - timed: '01 08 1 * *' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 154 | |
| 155 | builders: |
| 156 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 157 | - shell: !include-raw-escape: vm-bm-clean-up.sh |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 158 | |
| 159 | - job-template: |
| 160 | name: test-station-log-cleanup-CHO |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 161 | description: | |
| 162 | <!-- Managed by Jenkins Job Builder --> |
| 163 | |
| 164 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 165 | |
| 166 | <<: *test-free-job-boiler-plate |
Devin Lim | c284c98 | 2018-03-30 12:13:00 -0700 | [diff] [blame] | 167 | wrappers: |
| 168 | - inject: |
| 169 | properties-file: '/var/lib/jenkins/TestONOS.property' |
| 170 | script-content: | |
| 171 | echo "ONOSBranch=$ONOSBranch" > /var/lib/jenkins/TestONOS.property |
| 172 | echo "TestONBranch=$TestONBranch" >> /var/lib/jenkins/TestONOS.property |
| 173 | echo "ONOSTag=$ONOSTag" >> /var/lib/jenkins/TestONOS.property |
| 174 | echo "WikiPrefix=$WikiPrefix" >> /var/lib/jenkins/TestONOS.property |
| 175 | override-build-parameters: true |
| 176 | |
| 177 | # post_Job |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 178 | properties: |
| 179 | |
| 180 | - build-discarder: |
| 181 | num-to-keep: 15 |
| 182 | |
| 183 | parameters: |
| 184 | |
| 185 | - string: |
| 186 | name: 'DAYS_OLD' |
| 187 | default: '15' |
| 188 | |
| 189 | - lf-infra-parameters: |
| 190 | project: '{project}' |
| 191 | branch: '{stream}' |
| 192 | stream: '{stream}' |
| 193 | lftools-version: '{lftools-version}' |
| 194 | |
| 195 | node: 'TestStation-CHOs' |
| 196 | |
Devin Lim | 2b5ef2e | 2018-02-27 14:05:08 -0800 | [diff] [blame] | 197 | triggers: |
| 198 | - timed: '@daily' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 199 | builders: |
| 200 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 201 | - shell: !include-raw-escape: cho-clean-up.sh |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 202 | |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 203 | - job-template: |
| 204 | name: QA-check-style |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 205 | description: | |
| 206 | <!-- Managed by Jenkins Job Builder --> |
| 207 | <h3>ONOS QA Code Style:</h3> |
| 208 | At Open Networking Foundation, we have adopted the <a href="https://github.com/mininet/mininet/wiki/Mininet-Python-Style">Mininet Python Style</a> for our drivers and testcases. The one exception is that TestON does not correctly parse multiline comments in testcases when the ending triple double quotes are on the same line as the comment. Therefore, in the testcases, the ending triple double quotes must be on it's own line.<br /> |
| 209 | All .py files that are in the most recent patchset will be style checked.<br /> |
| 210 | <br /> |
| 211 | Jenkins User will give +1 if all files pass the style check, -1 if there is at least one style check failure.<br /> |
| 212 | Jenkins will not comment on Gerrit if there are no .py files to test. This is caused by failing the job with exit code 2.<br /> |
| 213 | <br /> |
| 214 | Click on the link in the Gerrit patchset comment to view the results of the style check.<br /> |
| 215 | Alternatively, you can check the console output to view the files checked and style check raw output.<br /> |
| 216 | <br /> |
| 217 | You may also manually run this job by selecting "Build with Parameters", then providing the 5-digit change number from Gerrit.<br /> |
| 218 | <br /> |
| 219 | <h3>Important Notes:</h3> |
| 220 | A build that is "Unstable" has failed the style check. A build with state "Error" means that there were no .py files to check.<br /> |
| 221 | Build numbers that are 1 build apart may NOT necessarily correspond to the same patchset!<br /> |
| 222 | Manually running this job will NOT leave a comment after the most recent patchset in Gerrit.<br /> |
| 223 | <br /> |
| 224 | <h3>Style Check PEP8 Exclusions:</h3> |
| 225 | This job mainly follows PEP8 style check, but excludes many errors and warnings.<br /> |
| 226 | The following errors and warnings are excluded from the PEP8 check portion of the job: |
| 227 | <ul> |
| 228 | <li>E251</li> |
| 229 | <li>E201</li> |
| 230 | <li>E302</li> |
| 231 | <li>E202</li> |
| 232 | <li>E126</li> |
| 233 | <li>E127</li> |
| 234 | <li>E203</li> |
| 235 | <li>E226</li> |
| 236 | <li>E501</li> |
| 237 | <li>W391</li> |
| 238 | </ul> |
| 239 | <h3>Credits:</h3> |
| 240 | This job is modeled from <a href="https://jenkins.onosproject.org/view/all/job/onos-master-release-build-verify/">onos-master-release-build-verify</a><br /> |
| 241 | The check style portion of the job is modeled from "HA-Jobs/codecheck_test"<br /> |
| 242 | Created by Jeremy Ronquillo: jeremyr@opennetworking.org or j_ronquillo@u.pacific.edu<br /> |
| 243 | <br /> |
| 244 | Copyright (c) 2017 Open Networking Foundation (ONF) |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 245 | |
| 246 | <<: *test-free-job-boiler-plate |
| 247 | properties: |
| 248 | |
| 249 | - build-discarder: |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 250 | num-to-keep: 100 |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 251 | |
| 252 | parameters: |
| 253 | |
| 254 | - string: |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 255 | name: 'GERRIT_CHANGE_NUMBER' |
| 256 | default: '' |
| 257 | description: '5-digit number that corresponds to the patch set change on Gerrit.' |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 258 | |
| 259 | - lf-infra-parameters: |
| 260 | project: '{project}' |
| 261 | branch: '{stream}' |
| 262 | stream: '{stream}' |
| 263 | lftools-version: '{lftools-version}' |
| 264 | |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 265 | concurrent: true |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 266 | |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 267 | node: 'TestStation-Jeremys' |
| 268 | |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 269 | triggers: |
| 270 | - gerrit: |
Devin Lim | 491d92b | 2018-02-09 10:41:45 -0800 | [diff] [blame] | 271 | server-name: 'OnosSystemTest Project Gerrit' |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 272 | trigger-on: |
| 273 | - patchset-created-event: |
| 274 | exclude-drafts: false |
| 275 | exclude-trivial-rebase: false |
| 276 | exclude-no-code-change: false |
| 277 | - draft-published-event |
| 278 | - comment-added-contains-event: |
| 279 | comment-contains-value: '(?i)^.*recheck$' |
| 280 | projects: |
| 281 | - project-compare-type: PLAIN |
| 282 | project-pattern: '{project}' |
| 283 | branches: |
| 284 | - branch-compare-type: ANT |
Devin Lim | 491d92b | 2018-02-09 10:41:45 -0800 | [diff] [blame] | 285 | branch-pattern: '**/master' |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 286 | - branch-compare-type: ANT |
Devin Lim | 491d92b | 2018-02-09 10:41:45 -0800 | [diff] [blame] | 287 | branch-pattern: '**/onos-1.[11-20]' |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 288 | wrappers: |
| 289 | - lf-infra-wrappers: |
| 290 | build-timeout: 1800 |
| 291 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 292 | |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 293 | builders: |
Devin Lim | e65e71c | 2018-02-09 15:01:33 -0800 | [diff] [blame] | 294 | - shell: !include-raw-escape: check-style.sh |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 295 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 296 | publishers: |
| 297 | - warnings: |
| 298 | workspace-file-scanners: |
| 299 | - file-pattern: pep8Result.txt |
| 300 | scanner: Pep8 |
Devin Lim | e65e71c | 2018-02-09 15:01:33 -0800 | [diff] [blame] | 301 | total-thresholds: |
| 302 | unstable: |
| 303 | total-all: 1 |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 304 | |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 305 | - job-template: |
| 306 | name: delta-nightly |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 307 | description: | |
| 308 | <!-- Managed by Jenkins Job Builder --> |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 309 | |
| 310 | <<: *test-free-job-boiler-plate |
| 311 | properties: |
| 312 | |
| 313 | - build-discarder: |
| 314 | num-to-keep: 30 |
| 315 | |
| 316 | parameters: |
| 317 | |
| 318 | - string: |
| 319 | name: 'NIGHTLY_FILE_NAME' |
| 320 | default: '' |
| 321 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 322 | Name of ONOS nightly build file <br /> |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 323 | will be set to the latest file if not specified here |
| 324 | |
| 325 | - string: |
| 326 | name: 'ONOS_VERSION' |
| 327 | default: '1.11.0' |
| 328 | description: 'Version number in ONOS nightly build file' |
| 329 | |
| 330 | - string: |
| 331 | name: 'DELTA_PATH' |
| 332 | default: '/home/sdn' |
| 333 | description: 'Path of DELTA project' |
| 334 | |
| 335 | - string: |
| 336 | name: 'WIKI_PREFIX' |
| 337 | default: 'master' |
| 338 | |
| 339 | - bool: |
| 340 | name: 'CLEANUP' |
| 341 | default: true |
| 342 | |
| 343 | - lf-infra-parameters: |
| 344 | project: '{project}' |
| 345 | branch: '{stream}' |
| 346 | stream: '{stream}' |
| 347 | lftools-version: '{lftools-version}' |
| 348 | |
| 349 | node: 'TestStation-BMs' |
| 350 | |
| 351 | wrappers: |
| 352 | - inject: |
| 353 | properties-file: '/var/jenkins/TestONOS.property' |
| 354 | |
| 355 | builders: |
| 356 | |
| 357 | - shell: !include-raw-escape: delta-script.sh |
| 358 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 359 | publishers: |
| 360 | - plot: |
| 361 | - title: 'DELTA Test Results for master' |
| 362 | group: 'DELTA-nightly' |
| 363 | yaxis: 'Number of test cases' |
| 364 | style: line |
| 365 | series: |
| 366 | - file: 'DELTA-nightly.csv' |
| 367 | format: 'csv' |
| 368 | |
| 369 | # Todo : add confluence ( use pipeline for post build ..? ) |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 370 | |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 371 | - job-template: |
| 372 | name: init-CHO |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 373 | description: | |
| 374 | <!-- Managed by Jenkins Job Builder --> |
| 375 | 1) Set a specific onos branch to test; <br /> |
| 376 | 2) pull and checkout the branch; <br /> |
| 377 | 3) build onos and package to tar.gz <br /> |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 378 | |
| 379 | <<: *test-free-job-boiler-plate |
| 380 | properties: |
| 381 | |
| 382 | - build-discarder: |
| 383 | num-to-keep: 30 |
| 384 | |
| 385 | parameters: |
| 386 | |
| 387 | - string: |
| 388 | name: 'ONOSBranch' |
| 389 | default: 'master' |
| 390 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 391 | set onos branch to test. default to "master", <br /> |
| 392 | but can also be set at "onos-1.2", etc. <br /> |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 393 | This parameter is also use to trigger where the test results to be posted |
| 394 | |
| 395 | - string: |
| 396 | name: 'ONOSJVMHeap' |
| 397 | default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\"" |
| 398 | description: 'onos cell jvm heap size setting' |
| 399 | |
| 400 | - string: |
| 401 | name: 'TestONBranch' |
| 402 | default: 'master' |
| 403 | description: 'sets TestON branch' |
| 404 | |
| 405 | - string: |
| 406 | name: 'ONOSTag' |
| 407 | default: '' |
| 408 | |
| 409 | - lf-infra-parameters: |
| 410 | project: '{project}' |
| 411 | branch: '{stream}' |
| 412 | stream: '{stream}' |
| 413 | lftools-version: '{lftools-version}' |
| 414 | |
| 415 | node: 'TestStation-CHOs' |
| 416 | |
| 417 | wrappers: |
| 418 | - inject: |
| 419 | properties-file: '/var/lib/jenkins/TestONOS.property' |
| 420 | script-content: | |
| 421 | echo "ONOSBranch=$ONOSBranch" > /var/lib/jenkins/TestONOS.property |
| 422 | echo "TestONBranch=$TestONBranch" >> /var/lib/jenkins/TestONOS.property |
| 423 | echo "ONOSTag=$ONOSTag" >> /var/lib/jenkins/TestONOS.property |
| 424 | |
| 425 | override-build-parameters: true |
| 426 | |
| 427 | builders: |
| 428 | |
| 429 | - shell: !include-raw-escape: cho-init.sh |
| 430 | |
| 431 | - job-template: |
| 432 | name: running-CHO |
| 433 | |
| 434 | <<: *test-free-job-boiler-plate |
| 435 | properties: |
| 436 | |
| 437 | - build-discarder: |
| 438 | num-to-keep: 30 |
| 439 | |
| 440 | parameters: |
| 441 | |
| 442 | - lf-infra-parameters: |
| 443 | project: '{project}' |
| 444 | branch: '{stream}' |
| 445 | stream: '{stream}' |
| 446 | lftools-version: '{lftools-version}' |
| 447 | |
| 448 | node: 'TestStation-CHOs' |
| 449 | triggers: |
| 450 | - reverse: |
| 451 | jobs: 'init-CHO' |
| 452 | result: 'failure' |
| 453 | |
| 454 | builders: |
| 455 | |
| 456 | - shell: !include-raw-escape: running-cho.sh |
| 457 | |
| 458 | - job-template: |
| 459 | name: post-CHO-master |
| 460 | |
| 461 | <<: *test-free-job-boiler-plate |
| 462 | properties: |
| 463 | - lf-infra-properties: |
| 464 | project: '{project}' |
| 465 | build-days-to-keep: 7 |
| 466 | |
| 467 | parameters: |
| 468 | |
| 469 | - lf-infra-parameters: |
| 470 | project: '{project}' |
| 471 | branch: '{stream}' |
| 472 | stream: '{stream}' |
| 473 | lftools-version: '{lftools-version}' |
| 474 | |
| 475 | node: 'TestStation-CHOs' |
Devin Lim | 2b5ef2e | 2018-02-27 14:05:08 -0800 | [diff] [blame] | 476 | triggers: |
| 477 | - timed: 'H/60 * * * *' |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 478 | wrappers: |
| 479 | - inject: |
| 480 | properties-file: '/var/lib/jenkins/TestONOS.property' |
| 481 | builders: |
| 482 | |
| 483 | - shell: !include-raw-escape: cho-post.sh |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 484 | publishers: |
| 485 | - plot: |
| 486 | - title: 'Network, Application and ONOS Events (per hour)' |
| 487 | group: 'CHOTestMonkey' |
| 488 | num-builds: '72' |
| 489 | yaxis: 'Number of Events' |
| 490 | style: line |
| 491 | logarithmic-yaxis: true |
| 492 | series: |
| 493 | - file: 'event.csv' |
| 494 | format: 'csv' |
| 495 | - title: 'Failed Checks (per hour)' |
| 496 | group: 'CHOTestMonkey' |
| 497 | num-builds: '72' |
| 498 | yaxis: 'Number of Failed Checks' |
| 499 | style: line |
| 500 | logarithmic-yaxis: true |
| 501 | series: |
| 502 | - file: 'failure.csv' |
| 503 | format: 'csv' |
| 504 | - title: 'Warnings, Errors and Exceptions from Logs (per hour)' |
| 505 | group: 'CHOTestMonkey' |
| 506 | num-builds: '72' |
| 507 | yaxis: 'Number of Warnings or Errors' |
| 508 | style: line |
| 509 | logarithmic-yaxis: true |
| 510 | series: |
| 511 | - file: 'error.csv' |
| 512 | format: 'csv' |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 513 | |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 514 | - job-template: |
| 515 | name: 'SR-log-{version}' |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 516 | |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 517 | <<: *test-free-job-boiler-plate |
| 518 | properties: |
| 519 | |
| 520 | - build-discarder: |
Devin Lim | 1c4753e | 2018-03-23 15:31:38 -0700 | [diff] [blame] | 521 | num-to-keep: 50 |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 522 | |
| 523 | parameters: |
| 524 | |
| 525 | - lf-infra-parameters: |
| 526 | project: '{project}' |
| 527 | branch: '{stream}' |
| 528 | stream: '{stream}' |
| 529 | lftools-version: '{lftools-version}' |
| 530 | |
Devin Lim | dc298c9 | 2018-03-24 13:47:08 -0700 | [diff] [blame] | 531 | node: 'TestStation-Fabrics' |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 532 | publishers: |
| 533 | |
| 534 | - archive: |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 535 | artifacts: '*' |
| 536 | |
| 537 | - job-template: |
| 538 | name: test-HA |
| 539 | |
| 540 | <<: *test-free-job-boiler-plate |
| 541 | properties: |
| 542 | |
| 543 | - build-discarder: |
| 544 | |
| 545 | days-to-keep: 5 |
| 546 | num-to-keep: 100 |
| 547 | |
| 548 | parameters: |
| 549 | |
| 550 | - string: |
| 551 | name: 'TEST_NAME' |
| 552 | default: 'HAbackupRecover' |
| 553 | description: 'The name of the TestON test suite' |
| 554 | |
| 555 | - lf-infra-parameters: |
| 556 | project: '{project}' |
| 557 | branch: '{stream}' |
| 558 | stream: '{stream}' |
| 559 | lftools-version: '{lftools-version}' |
| 560 | |
| 561 | node: 'TestStation-Jons' |
| 562 | triggers: |
| 563 | - reverse: |
| 564 | jobs: 'test-HA' |
| 565 | result: 'failure' |
| 566 | |
| 567 | builders: |
| 568 | |
| 569 | - shell: !include-raw-escape: test-ha.sh |
| 570 | |
| 571 | publishers: |
| 572 | - plot: |
| 573 | - title: 'Test job results' |
| 574 | group: 'Test-HA' |
| 575 | yaxis: 'Number of test cases' |
| 576 | style: line |
| 577 | series: |
| 578 | - file: 'results.csv' |
| 579 | format: 'csv' |
| 580 | |
| 581 | - title: 'Timers' |
| 582 | group: 'Test-HA' |
| 583 | yaxis: 'Time in seconds' |
| 584 | style: line |
| 585 | series: |
| 586 | - file: 'Timers.csv' |
| 587 | format: 'csv' |
| 588 | |
| 589 | - post-tasks: |
| 590 | - escalate-status: true |
| 591 | script: | |
| 592 | if [ -e ${{WORKSPACE}}/${{TEST_NAME##*/}}Wiki.txt ] && ! grep -q "FAIL" ${{WORKSPACE}}/${{TEST_NAME##*/}}Wiki.txt |
| 593 | then |
| 594 | exit 0 |
| 595 | else |
| 596 | exit 1 |
| 597 | fi |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 598 | |
| 599 | - project: |
| 600 | name: post-result-jobs |
| 601 | project-name: post-result-jobs |
| 602 | |
| 603 | <<: *test-free-init-procedure-plate |
| 604 | <<: *init-station-plate |
| 605 | jobs: |
| 606 | - 'postjob-{station-type}' |
| 607 | |
| 608 | - project: |
| 609 | name: cleanup-jobs |
| 610 | project-name: cleanup-jobs |
| 611 | |
| 612 | <<: *test-free-init-procedure-plate |
| 613 | <<: *init-station-plate |
Devin Lim | a008a21 | 2018-04-09 16:01:55 -0700 | [diff] [blame] | 614 | <<: *init-station-plate-clean |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 615 | jobs: |
| 616 | - 'test-station-log-cleanup-VM' |
Devin Lim | a008a21 | 2018-04-09 16:01:55 -0700 | [diff] [blame] | 617 | - 'test-station-log-cleanup-{clean-station-type}' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 618 | - 'test-station-log-cleanup-CHO' |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 619 | |
| 620 | - project: |
| 621 | name: check-style |
| 622 | project-name: check-style |
| 623 | |
| 624 | <<: *test-free-init-procedure-plate |
| 625 | jobs: |
| 626 | - 'QA-check-style' |
| 627 | |
| 628 | - project: |
| 629 | name: delta-test |
| 630 | project-name: delta-test |
| 631 | |
| 632 | <<: *test-free-init-procedure-plate |
| 633 | jobs: |
| 634 | - 'delta-nightly' |
Devin Lim | 7d7cd99 | 2018-01-25 14:12:40 -0800 | [diff] [blame] | 635 | |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 636 | - project: |
| 637 | name: cho-tests |
| 638 | project-name: cho-tests |
| 639 | |
| 640 | <<: *test-free-init-procedure-plate |
| 641 | jobs: |
| 642 | - 'init-CHO' |
| 643 | - 'running-CHO' |
| 644 | - 'post-CHO-master' |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 645 | |
| 646 | |
| 647 | - project: |
| 648 | name: log-pipeline |
| 649 | |
| 650 | <<: *job-free-version-plate |
| 651 | |
| 652 | project-name: 'log-pipeline' |
| 653 | |
| 654 | <<: *test-free-init-procedure-plate |
| 655 | |
| 656 | jobs: |
| 657 | - 'SR-log-{version}' |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 658 | |
| 659 | - project: |
| 660 | name: personnel-station |
| 661 | |
| 662 | project-name: 'log-pipeline' |
| 663 | |
| 664 | <<: *test-free-init-procedure-plate |
| 665 | |
| 666 | jobs: |
| 667 | - 'test-HA' |
Devin Lim | 157404d | 2018-02-09 16:44:19 -0800 | [diff] [blame] | 668 | |