Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 1 | --- |
| 2 | # ONOS System Test Pipeline jobs |
| 3 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 4 | # TODO: for some reason, lf-* types of macro cannot access to the variable. I think it is typical problem to pipeline job type. |
| 5 | |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 6 | - var-init-boiler-plate: &var-init-boiler-plate |
| 7 | name: var-init-boiler-plate |
| 8 | FUNC: "FUNCgroup\nFUNCflow\nFUNCintent\nFUNCintentRest\nFUNCipv6Intent\nFUNCnetCfg\nFUNCnetconf\nFUNCoptical\nFUNCovsdbtest\nFUNCformCluster" |
| 9 | HA: "HAclusterRestart\nHAfullNetPartition\nHAkillNodes\nHAsanity\nHAscaling\nHAsingleInstanceRestart\nHAstopNodes\nHAswapNodes\nHAupgrade\nHAupgradeRollback" |
| 10 | SCPF: "SCPFcbench\nSCPFflowTp1g\nSCPFhostLat\nSCPFintentEventTp\nSCPFintentInstallWithdrawLat\nSCPFintentRerouteLat\nSCPFmastershipFailoverLat\nSCPFbatchFlowResp\nSCPFportLat\nSCPFscaleTopo\nSCPFscalingMaxIntents\nSCPFswitchLat\nSCPFflowTp1gWithFlowObj\nSCPFintentEventTpWithFlowObj\nSCPFintentRerouteLatWithFlowObj\nSCPFscalingMaxIntentsWithFlowObj\nSCPFintentInstallWithdrawLatWithFlowObj" |
| 11 | USECASE: "FUNCbgpls\nFUNCvirNetNB\nPLATdockertest\nVPLSBasic\nVPLSfailsafe\nUSECASE_SdnipFunction\nUSECASE_SdnipFunctionCluster\nSRClusterRestart\nSRDynamic\nSRHighAvailability\nSRLinkFailure\nSROnosFailure\nSRSanity\nSRSwitchFailure" |
| 12 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 13 | - test-pipe-job-boiler-plate: &test-pipe-job-boiler-plate |
| 14 | name: test-pipe-job-boiler-plate |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 15 | |
| 16 | project-type: pipeline |
| 17 | |
| 18 | sandbox: true |
| 19 | |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 20 | properties: |
| 21 | |
| 22 | - build-discarder: |
| 23 | num-to-keep: 20 |
Devin Lim | ca864a1 | 2018-02-09 11:25:30 -0800 | [diff] [blame] | 24 | gitURL: https://gerrit.onosproject.org/OnosSystemTest |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 25 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 26 | - test-pipe-init-procedure-plate: &test-pipe-init-procedure-plate |
| 27 | name: test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 28 | project: OnosSystemTest |
| 29 | stream: 'master' |
| 30 | jenkins-path: 'TestON/JenkinsFile' |
| 31 | |
| 32 | - job-version-plate: &job-version-plate |
| 33 | name: job-version-plate |
| 34 | version: |
| 35 | - '1.11' |
| 36 | - '1.12' |
| 37 | - 'master' |
| 38 | - 'manually' |
| 39 | |
| 40 | - job-type-plate: &job-type-plate |
| 41 | name: job-type-plate |
| 42 | type: |
| 43 | - 'FUNC' |
| 44 | - 'HA' |
| 45 | - 'SCPF' |
| 46 | - 'USECASE' |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 47 | - 'SR' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 48 | |
Devin Lim | 74cf6cb | 2018-01-12 15:03:34 -0800 | [diff] [blame] | 49 | - job-template: |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 50 | name: all-pipeline-trigger |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 51 | description: | |
| 52 | <!-- Managed by Jenkins Job Builder --> |
| 53 | All_Pipeline_Trigger can trigger any TestON test on any branch of ONOS and TestON, by running the test category pipeline that contains the test. <br /> |
| 54 | This pipeline is triggered by timer for the nightly builds. <br /> |
| 55 | You may manually trigger this pipeline as well - provide the tests to run and the branch of ONOS and TestON. <br /> <br /> |
| 56 | Note: <i>The console output for this job does <b>not</b> contain any test result logs.</i><br /> |
| 57 | Visit the test category pipelines (such as <a href="https://jenkins.onosproject.org/view/QA/job/FUNC-pipeline-master/">FUNC-pipeline-master</a>) to view the test logs. <br /> <br /> |
| 58 | Created by Devin Lim - devin@opennetworking.org<br /> |
| 59 | Copyright (c) 2017 Open Networking Foundation (ONF) |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 60 | |
| 61 | <<: *var-init-boiler-plate |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 62 | <<: *test-pipe-job-boiler-plate |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 63 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 64 | parameters: |
Devin Lim | 74cf6cb | 2018-01-12 15:03:34 -0800 | [diff] [blame] | 65 | |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 66 | - bool: |
| 67 | name: manual_run |
| 68 | default: false |
| 69 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 70 | Check this option if you are manually running this job (you most likely are). <br /> |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 71 | You must specify which tests to run in the text field below. |
| 72 | |
| 73 | - bool: |
| 74 | name: PostResult |
| 75 | default: false |
| 76 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 77 | Check this option if you want to update the results on the wiki. <br /> |
| 78 | When manually run, this will update the wiki pages corresponding to the tests that were run. <br /> |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 79 | This option will always be selected during nightly builds. |
| 80 | |
| 81 | - bool: |
| 82 | name: isOldFlow |
Devin Lim | 491d92b | 2018-02-09 10:41:45 -0800 | [diff] [blame] | 83 | default: true |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 84 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 85 | Check this option if you prefer to run the old flow rule over the new one. <br /> |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 86 | * This only applies to SCPF tests. |
| 87 | |
| 88 | - choice: |
| 89 | name: ONOSVersion |
| 90 | choices: |
| 91 | - 'master' |
| 92 | - '1.12' |
| 93 | - '1.11' |
| 94 | description: "ONOS and TestON versions to run on." |
| 95 | |
| 96 | - string: |
| 97 | name: ONOSJVMHeap |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 98 | default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\"" |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 99 | description: 'ONOS cell JVM heap size setting.' |
| 100 | |
Devin Lim | 72caaba | 2018-03-02 15:15:46 -0800 | [diff] [blame] | 101 | - string: |
| 102 | name: ONOSTag |
| 103 | default: '' |
| 104 | desciption: 'specific branch trying to checkout' |
| 105 | |
Devin Lim | 74cf6cb | 2018-01-12 15:03:34 -0800 | [diff] [blame] | 106 | - text: |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 107 | name: Tests |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 108 | default: | |
| 109 | {FUNC} |
| 110 | {HA} |
| 111 | {SCPF} |
| 112 | {USECASE} |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 113 | description: 'Specify the tests you want to run, if manual_run is selected.' |
| 114 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 115 | - lf-infra-parameters: |
| 116 | project: 'OnosSystemTest' |
| 117 | branch: 'master' |
| 118 | stream: 'master' |
| 119 | lftools-version: '<1.0.0' |
| 120 | |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 121 | concurrent: false |
| 122 | |
Devin Lim | 2b5ef2e | 2018-02-27 14:05:08 -0800 | [diff] [blame] | 123 | triggers: |
| 124 | - timed: | |
Devin Lim | e241516 | 2018-02-27 21:35:19 -0800 | [diff] [blame] | 125 | 30 03 * * 2,3,4,5,6 |
| 126 | 30 19 * * 6,7 |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 127 | |
| 128 | pipeline-scm: |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 129 | script-path: '{jenkins-path}/JenkinsfileTrigger' |
| 130 | scm: |
| 131 | - git: |
Devin Lim | ca864a1 | 2018-02-09 11:25:30 -0800 | [diff] [blame] | 132 | url: '{gitURL}' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 133 | branches: |
| 134 | - 'master' |
| 135 | |
| 136 | - job-template: |
| 137 | name: '{type}-pipeline-{version}' |
Jeremy Ronquillo | ae3c769 | 2018-03-05 08:47:05 -0800 | [diff] [blame^] | 138 | description: '<!-- Managed by Jenkins Job Builder --> |
| 139 | This pipeline contains the test results and logs of {type} on ONOS {version}. <br /><br /> |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 140 | Visit <a href="https://jenkins.onosproject.org/view/QA/job/all-pipeline-trigger/">all-pipeline-trigger</a> to trigger a build in this pipeline.<br /> |
| 141 | <font color="red">Unless debugging, DO NOT MANUALLY BUILD THIS PIPELINE.</font><br /><br /> |
| 142 | Created by Devin Lim - devin@opennetworking.org<br /> |
Jeremy Ronquillo | ae3c769 | 2018-03-05 08:47:05 -0800 | [diff] [blame^] | 143 | Copyright (c) 2017 Open Networking Foundation (ONF)' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 144 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 145 | <<: *test-pipe-job-boiler-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 146 | |
| 147 | parameters: |
| 148 | |
| 149 | - string: |
| 150 | name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE |
| 151 | default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE' |
| 152 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 153 | <a href="https://jenkins.onosproject.org/view/QA/job/all-pipeline-trigger/">all-pipeline-trigger</a> triggers this pipeline automatically. |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 154 | |
| 155 | - lf-infra-parameters: |
| 156 | project: 'OnosSystemTest' |
| 157 | branch: 'master' |
| 158 | stream: 'master' |
| 159 | lftools-version: '<1.0.0' |
| 160 | |
| 161 | concurrent: false |
| 162 | |
| 163 | pipeline-scm: |
| 164 | script-path: '{jenkins-path}/{type}JenkinsFile' |
| 165 | scm: |
| 166 | - git: |
Devin Lim | ca864a1 | 2018-02-09 11:25:30 -0800 | [diff] [blame] | 167 | url: '{gitURL}' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 168 | branches: |
| 169 | - 'master' |
| 170 | |
| 171 | - job-template: |
| 172 | name: 'manual-graph-generator-SCPF' |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 173 | description: | |
| 174 | <!-- Managed by Jenkins Job Builder --> |
| 175 | Refresh the wiki graphs here. Useful when there is a change in the graph scripts.<br /> |
| 176 | <br /> |
| 177 | You may also generate a graph trend that displays any number of builds here.<br /> |
| 178 | However, keep in mind that only the 50 build graphs will be displayed on the wiki, unless they are manually changed on the wiki.<br > |
| 179 | <br > |
| 180 | Graphs are stored in the <a href="https://jenkins.onosproject.org/view/QA/job/postjob-BM/">postjob-BM<a> workspace. |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 181 | |
| 182 | <<: *var-init-boiler-plate |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 183 | <<: *test-pipe-job-boiler-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 184 | |
| 185 | parameters: |
| 186 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 187 | - choice: |
| 188 | name: ONOSbranch |
| 189 | choices: |
| 190 | - 'master' |
| 191 | - 'onos-1.12' |
| 192 | - 'onos-1.11' |
| 193 | description: "Possible branches (may vary depending on test)" |
| 194 | |
| 195 | - bool: |
| 196 | name: isOldFlows |
| 197 | default: false |
| 198 | description: 'Check if it is using the old flow rules' |
| 199 | |
| 200 | - text: |
| 201 | name: Test |
| 202 | default: '{SCPF}' |
| 203 | description: 'List of the tests to generate.' |
| 204 | |
| 205 | - lf-infra-parameters: |
| 206 | project: 'OnosSystemTest' |
| 207 | branch: 'master' |
| 208 | stream: 'master' |
| 209 | lftools-version: '<1.0.0' |
| 210 | |
| 211 | pipeline-scm: |
| 212 | script-path: '{jenkins-path}/SCPF_Graph_Generator' |
| 213 | scm: |
| 214 | - git: |
Devin Lim | ca864a1 | 2018-02-09 11:25:30 -0800 | [diff] [blame] | 215 | url: '{gitURL}' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 216 | branches: |
| 217 | - 'master' |
| 218 | |
| 219 | - job-template: |
| 220 | name: 'manual-graph-generator-trend' |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 221 | description: | |
| 222 | <!-- Managed by Jenkins Job Builder --> |
| 223 | Refresh the trend graphs here. Useful when there is a change in the graph scripts. <br /> |
| 224 | Graphs are stored in their respective Postjob pipeline. |
| 225 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 226 | |
| 227 | <<: *var-init-boiler-plate |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 228 | <<: *test-pipe-job-boiler-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 229 | |
| 230 | parameters: |
| 231 | |
| 232 | - choice: |
| 233 | name: ONOSbranch |
| 234 | choices: |
| 235 | - 'master' |
| 236 | - 'onos-1.12' |
| 237 | - 'onos-1.11' |
| 238 | description: "Possible branches (may vary depending on test)" |
| 239 | |
| 240 | - choice: |
| 241 | name: NodeCluster |
| 242 | choices: |
| 243 | - VM |
| 244 | - BM |
| 245 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 246 | Node cluster where the test graphs in the list are located. <br /> |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 247 | List of the tests will be refreshed depends on the node cluster. |
| 248 | |
| 249 | - text: |
| 250 | name: Test |
| 251 | default: | |
| 252 | VM: |
| 253 | {FUNC} |
| 254 | {HA} |
| 255 | BM: |
| 256 | {USECASE} |
| 257 | description: 'List of the tests to generate.' |
| 258 | |
| 259 | - string: |
| 260 | name: Builds |
Devin Lim | 72caaba | 2018-03-02 15:15:46 -0800 | [diff] [blame] | 261 | default: '20' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 262 | description: 'Builds to show in the graph.' |
| 263 | |
| 264 | - lf-infra-parameters: |
| 265 | project: 'OnosSystemTest' |
| 266 | branch: 'master' |
| 267 | stream: 'master' |
| 268 | lftools-version: '<1.0.0' |
| 269 | |
| 270 | pipeline-scm: |
| 271 | script-path: '{jenkins-path}/Trend_Graph_Generator' |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 272 | scm: |
| 273 | - git: |
Devin Lim | ca864a1 | 2018-02-09 11:25:30 -0800 | [diff] [blame] | 274 | url: '{gitURL}' |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 275 | branches: |
Devin Lim | 74cf6cb | 2018-01-12 15:03:34 -0800 | [diff] [blame] | 276 | - 'master' |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 277 | |
| 278 | - project: |
| 279 | name: all-pipeline-trigger |
| 280 | project-name: all-pipeline-trigger |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 281 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 282 | <<: *test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 283 | |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 284 | # can we use this node or master ? |
| 285 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 286 | jobs: |
| 287 | - 'all-pipeline-trigger' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 288 | |
| 289 | - project: |
| 290 | name: build-pipeline |
| 291 | |
| 292 | <<: *job-type-plate |
| 293 | |
| 294 | project-name: '{type}-pipeline' |
| 295 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 296 | <<: *test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 297 | <<: *job-version-plate |
| 298 | |
| 299 | jobs: |
| 300 | - '{type}-pipeline-{version}' |
| 301 | |
| 302 | - project: |
| 303 | name: graph-generator |
| 304 | |
| 305 | project-name: 'graph-generator' |
| 306 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 307 | <<: *test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 308 | |
| 309 | jobs: |
| 310 | - 'manual-graph-generator-SCPF' |
| 311 | - 'manual-graph-generator-trend' |