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