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 | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 138 | description: | |
| 139 | <!-- Managed by Jenkins Job Builder --> |
| 140 | This pipeline contains the test results and logs of the corresponding test category and ONOS version. <br /><br /> |
| 141 | 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 /> |
| 142 | <font color="red">Unless debugging, DO NOT MANUALLY BUILD THIS PIPELINE.</font><br /><br /> |
| 143 | Created by Devin Lim - devin@opennetworking.org<br /> |
| 144 | Copyright (c) 2017 Open Networking Foundation (ONF) |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 145 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 146 | <<: *test-pipe-job-boiler-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 147 | |
| 148 | parameters: |
| 149 | |
| 150 | - string: |
| 151 | name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE |
| 152 | default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE' |
| 153 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 154 | <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] | 155 | |
| 156 | - lf-infra-parameters: |
| 157 | project: 'OnosSystemTest' |
| 158 | branch: 'master' |
| 159 | stream: 'master' |
| 160 | lftools-version: '<1.0.0' |
| 161 | |
| 162 | concurrent: false |
| 163 | |
| 164 | pipeline-scm: |
| 165 | script-path: '{jenkins-path}/{type}JenkinsFile' |
| 166 | scm: |
| 167 | - git: |
Devin Lim | ca864a1 | 2018-02-09 11:25:30 -0800 | [diff] [blame] | 168 | url: '{gitURL}' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 169 | branches: |
| 170 | - 'master' |
| 171 | |
| 172 | - job-template: |
| 173 | name: 'manual-graph-generator-SCPF' |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 174 | description: | |
| 175 | <!-- Managed by Jenkins Job Builder --> |
| 176 | Refresh the wiki graphs here. Useful when there is a change in the graph scripts.<br /> |
| 177 | <br /> |
| 178 | You may also generate a graph trend that displays any number of builds here.<br /> |
| 179 | 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 > |
| 180 | <br > |
| 181 | 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] | 182 | |
| 183 | <<: *var-init-boiler-plate |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 184 | <<: *test-pipe-job-boiler-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 185 | |
| 186 | parameters: |
| 187 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 188 | - choice: |
| 189 | name: ONOSbranch |
| 190 | choices: |
| 191 | - 'master' |
| 192 | - 'onos-1.12' |
| 193 | - 'onos-1.11' |
| 194 | description: "Possible branches (may vary depending on test)" |
| 195 | |
| 196 | - bool: |
| 197 | name: isOldFlows |
| 198 | default: false |
| 199 | description: 'Check if it is using the old flow rules' |
| 200 | |
| 201 | - text: |
| 202 | name: Test |
| 203 | default: '{SCPF}' |
| 204 | description: 'List of the tests to generate.' |
| 205 | |
| 206 | - lf-infra-parameters: |
| 207 | project: 'OnosSystemTest' |
| 208 | branch: 'master' |
| 209 | stream: 'master' |
| 210 | lftools-version: '<1.0.0' |
| 211 | |
| 212 | pipeline-scm: |
| 213 | script-path: '{jenkins-path}/SCPF_Graph_Generator' |
| 214 | scm: |
| 215 | - git: |
Devin Lim | ca864a1 | 2018-02-09 11:25:30 -0800 | [diff] [blame] | 216 | url: '{gitURL}' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 217 | branches: |
| 218 | - 'master' |
| 219 | |
| 220 | - job-template: |
| 221 | name: 'manual-graph-generator-trend' |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 222 | description: | |
| 223 | <!-- Managed by Jenkins Job Builder --> |
| 224 | Refresh the trend graphs here. Useful when there is a change in the graph scripts. <br /> |
| 225 | Graphs are stored in their respective Postjob pipeline. |
| 226 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 227 | |
| 228 | <<: *var-init-boiler-plate |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 229 | <<: *test-pipe-job-boiler-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 230 | |
| 231 | parameters: |
| 232 | |
| 233 | - choice: |
| 234 | name: ONOSbranch |
| 235 | choices: |
| 236 | - 'master' |
| 237 | - 'onos-1.12' |
| 238 | - 'onos-1.11' |
| 239 | description: "Possible branches (may vary depending on test)" |
| 240 | |
| 241 | - choice: |
| 242 | name: NodeCluster |
| 243 | choices: |
| 244 | - VM |
| 245 | - BM |
| 246 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 247 | Node cluster where the test graphs in the list are located. <br /> |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 248 | List of the tests will be refreshed depends on the node cluster. |
| 249 | |
| 250 | - text: |
| 251 | name: Test |
| 252 | default: | |
| 253 | VM: |
| 254 | {FUNC} |
| 255 | {HA} |
| 256 | BM: |
| 257 | {USECASE} |
| 258 | description: 'List of the tests to generate.' |
| 259 | |
| 260 | - string: |
| 261 | name: Builds |
Devin Lim | 72caaba | 2018-03-02 15:15:46 -0800 | [diff] [blame^] | 262 | default: '20' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 263 | description: 'Builds to show in the graph.' |
| 264 | |
| 265 | - lf-infra-parameters: |
| 266 | project: 'OnosSystemTest' |
| 267 | branch: 'master' |
| 268 | stream: 'master' |
| 269 | lftools-version: '<1.0.0' |
| 270 | |
| 271 | pipeline-scm: |
| 272 | script-path: '{jenkins-path}/Trend_Graph_Generator' |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 273 | scm: |
| 274 | - git: |
Devin Lim | ca864a1 | 2018-02-09 11:25:30 -0800 | [diff] [blame] | 275 | url: '{gitURL}' |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 276 | branches: |
Devin Lim | 74cf6cb | 2018-01-12 15:03:34 -0800 | [diff] [blame] | 277 | - 'master' |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 278 | |
| 279 | - project: |
| 280 | name: all-pipeline-trigger |
| 281 | project-name: all-pipeline-trigger |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 282 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 283 | <<: *test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 284 | |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 285 | # can we use this node or master ? |
| 286 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 287 | jobs: |
| 288 | - 'all-pipeline-trigger' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 289 | |
| 290 | - project: |
| 291 | name: build-pipeline |
| 292 | |
| 293 | <<: *job-type-plate |
| 294 | |
| 295 | project-name: '{type}-pipeline' |
| 296 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 297 | <<: *test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 298 | <<: *job-version-plate |
| 299 | |
| 300 | jobs: |
| 301 | - '{type}-pipeline-{version}' |
| 302 | |
| 303 | - project: |
| 304 | name: graph-generator |
| 305 | |
| 306 | project-name: 'graph-generator' |
| 307 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 308 | <<: *test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 309 | |
| 310 | jobs: |
| 311 | - 'manual-graph-generator-SCPF' |
| 312 | - 'manual-graph-generator-trend' |