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 | |
| 13 | - job-boiler-plate: &job-boiler-plate |
| 14 | name: job-boiler-plate |
| 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 |
| 24 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame^] | 25 | - init-procedure-plate: &init-procedure-plate |
| 26 | name: init-procedure-plate |
| 27 | project: OnosSystemTest |
| 28 | stream: 'master' |
| 29 | jenkins-path: 'TestON/JenkinsFile' |
| 30 | |
| 31 | - job-version-plate: &job-version-plate |
| 32 | name: job-version-plate |
| 33 | version: |
| 34 | - '1.11' |
| 35 | - '1.12' |
| 36 | - 'master' |
| 37 | - 'manually' |
| 38 | |
| 39 | - job-type-plate: &job-type-plate |
| 40 | name: job-type-plate |
| 41 | type: |
| 42 | - 'FUNC' |
| 43 | - 'HA' |
| 44 | - 'SCPF' |
| 45 | - 'USECASE' |
| 46 | |
Devin Lim | 74cf6cb | 2018-01-12 15:03:34 -0800 | [diff] [blame] | 47 | - job-template: |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 48 | name: all-pipeline-trigger |
| 49 | |
| 50 | <<: *var-init-boiler-plate |
| 51 | <<: *job-boiler-plate |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 52 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame^] | 53 | parameters: |
Devin Lim | 74cf6cb | 2018-01-12 15:03:34 -0800 | [diff] [blame] | 54 | |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 55 | - bool: |
| 56 | name: manual_run |
| 57 | default: false |
| 58 | description: | |
| 59 | Check this option if you are manually running this job (you most likely are). |
| 60 | You must specify which tests to run in the text field below. |
| 61 | |
| 62 | - bool: |
| 63 | name: PostResult |
| 64 | default: false |
| 65 | description: | |
| 66 | Check this option if you want to update the results on the wiki. |
| 67 | When manually run, this will update the wiki pages corresponding to the tests that were run. |
| 68 | This option will always be selected during nightly builds. |
| 69 | |
| 70 | - bool: |
| 71 | name: isOldFlow |
| 72 | default: false |
| 73 | description: | |
| 74 | Check this option if you prefer to run the old flow rule over the new one. |
| 75 | * This only applies to SCPF tests. |
| 76 | |
| 77 | - choice: |
| 78 | name: ONOSVersion |
| 79 | choices: |
| 80 | - 'master' |
| 81 | - '1.12' |
| 82 | - '1.11' |
| 83 | description: "ONOS and TestON versions to run on." |
| 84 | |
| 85 | - string: |
| 86 | name: ONOSJVMHeap |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame^] | 87 | default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\"" |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 88 | description: 'ONOS cell JVM heap size setting.' |
| 89 | |
Devin Lim | 74cf6cb | 2018-01-12 15:03:34 -0800 | [diff] [blame] | 90 | - text: |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 91 | name: Tests |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame^] | 92 | default: | |
| 93 | {FUNC} |
| 94 | {HA} |
| 95 | {SCPF} |
| 96 | {USECASE} |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 97 | description: 'Specify the tests you want to run, if manual_run is selected.' |
| 98 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame^] | 99 | - lf-infra-parameters: |
| 100 | project: 'OnosSystemTest' |
| 101 | branch: 'master' |
| 102 | stream: 'master' |
| 103 | lftools-version: '<1.0.0' |
| 104 | |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 105 | concurrent: false |
| 106 | |
| 107 | triggers: |
| 108 | - timed: | |
| 109 | 30 19 * * 1,2,3,4,5 |
| 110 | 30 11 * * 6,7 |
| 111 | |
| 112 | pipeline-scm: |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame^] | 113 | script-path: '{jenkins-path}/JenkinsfileTrigger' |
| 114 | scm: |
| 115 | - git: |
| 116 | url: '$GIT_URL/$GERRIT_PROJECT' |
| 117 | credentials-id: '{jenkins-ssh-credential}' |
| 118 | branches: |
| 119 | - 'master' |
| 120 | |
| 121 | - job-template: |
| 122 | name: '{type}-pipeline-{version}' |
| 123 | |
| 124 | <<: *job-boiler-plate |
| 125 | |
| 126 | parameters: |
| 127 | |
| 128 | - string: |
| 129 | name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE |
| 130 | default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE' |
| 131 | description: | |
| 132 | <a href=https://onos-jenkins.onlab.us/job/ALL_Pipeline_Trigger/>ALL_Pipeline_Trigger</a> triggers this pipeline automatically. |
| 133 | |
| 134 | - lf-infra-parameters: |
| 135 | project: 'OnosSystemTest' |
| 136 | branch: 'master' |
| 137 | stream: 'master' |
| 138 | lftools-version: '<1.0.0' |
| 139 | |
| 140 | concurrent: false |
| 141 | |
| 142 | pipeline-scm: |
| 143 | script-path: '{jenkins-path}/{type}JenkinsFile' |
| 144 | scm: |
| 145 | - git: |
| 146 | url: '$GIT_URL/$GERRIT_PROJECT' |
| 147 | credentials-id: '{jenkins-ssh-credential}' |
| 148 | branches: |
| 149 | - 'master' |
| 150 | |
| 151 | - job-template: |
| 152 | name: 'manual-graph-generator-SCPF' |
| 153 | |
| 154 | <<: *var-init-boiler-plate |
| 155 | <<: *job-boiler-plate |
| 156 | |
| 157 | parameters: |
| 158 | |
| 159 | - lf-infra-parameters: |
| 160 | project: 'OnosSystemTest' |
| 161 | branch: 'master' |
| 162 | stream: 'master' |
| 163 | lftools-version: '<1.0.0' |
| 164 | |
| 165 | - choice: |
| 166 | name: ONOSbranch |
| 167 | choices: |
| 168 | - 'master' |
| 169 | - 'onos-1.12' |
| 170 | - 'onos-1.11' |
| 171 | description: "Possible branches (may vary depending on test)" |
| 172 | |
| 173 | - bool: |
| 174 | name: isOldFlows |
| 175 | default: false |
| 176 | description: 'Check if it is using the old flow rules' |
| 177 | |
| 178 | - text: |
| 179 | name: Test |
| 180 | default: '{SCPF}' |
| 181 | description: 'List of the tests to generate.' |
| 182 | |
| 183 | - lf-infra-parameters: |
| 184 | project: 'OnosSystemTest' |
| 185 | branch: 'master' |
| 186 | stream: 'master' |
| 187 | lftools-version: '<1.0.0' |
| 188 | |
| 189 | pipeline-scm: |
| 190 | script-path: '{jenkins-path}/SCPF_Graph_Generator' |
| 191 | scm: |
| 192 | - git: |
| 193 | url: '$GIT_URL/$GERRIT_PROJECT' |
| 194 | credentials-id: '{jenkins-ssh-credential}' |
| 195 | branches: |
| 196 | - 'master' |
| 197 | |
| 198 | - job-template: |
| 199 | name: 'manual-graph-generator-trend' |
| 200 | |
| 201 | <<: *var-init-boiler-plate |
| 202 | <<: *job-boiler-plate |
| 203 | |
| 204 | parameters: |
| 205 | |
| 206 | - choice: |
| 207 | name: ONOSbranch |
| 208 | choices: |
| 209 | - 'master' |
| 210 | - 'onos-1.12' |
| 211 | - 'onos-1.11' |
| 212 | description: "Possible branches (may vary depending on test)" |
| 213 | |
| 214 | - choice: |
| 215 | name: NodeCluster |
| 216 | choices: |
| 217 | - VM |
| 218 | - BM |
| 219 | description: | |
| 220 | Node cluster where the test graphs in the list are located. |
| 221 | List of the tests will be refreshed depends on the node cluster. |
| 222 | |
| 223 | - text: |
| 224 | name: Test |
| 225 | default: | |
| 226 | VM: |
| 227 | {FUNC} |
| 228 | {HA} |
| 229 | BM: |
| 230 | {USECASE} |
| 231 | description: 'List of the tests to generate.' |
| 232 | |
| 233 | - string: |
| 234 | name: Builds |
| 235 | deafult: 20 |
| 236 | description: 'Builds to show in the graph.' |
| 237 | |
| 238 | - lf-infra-parameters: |
| 239 | project: 'OnosSystemTest' |
| 240 | branch: 'master' |
| 241 | stream: 'master' |
| 242 | lftools-version: '<1.0.0' |
| 243 | |
| 244 | pipeline-scm: |
| 245 | script-path: '{jenkins-path}/Trend_Graph_Generator' |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 246 | scm: |
| 247 | - git: |
| 248 | url: '$GIT_URL/$GERRIT_PROJECT' |
| 249 | credentials-id: '{jenkins-ssh-credential}' |
| 250 | branches: |
Devin Lim | 74cf6cb | 2018-01-12 15:03:34 -0800 | [diff] [blame] | 251 | - 'master' |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 252 | |
| 253 | - project: |
| 254 | name: all-pipeline-trigger |
| 255 | project-name: all-pipeline-trigger |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame^] | 256 | |
| 257 | <<: *init-procedure-plate |
| 258 | |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 259 | # can we use this node or master ? |
| 260 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 261 | jobs: |
| 262 | - 'all-pipeline-trigger' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame^] | 263 | |
| 264 | - project: |
| 265 | name: build-pipeline |
| 266 | |
| 267 | <<: *job-type-plate |
| 268 | |
| 269 | project-name: '{type}-pipeline' |
| 270 | |
| 271 | <<: *init-procedure-plate |
| 272 | <<: *job-version-plate |
| 273 | |
| 274 | jobs: |
| 275 | - '{type}-pipeline-{version}' |
| 276 | |
| 277 | - project: |
| 278 | name: graph-generator |
| 279 | |
| 280 | project-name: 'graph-generator' |
| 281 | |
| 282 | <<: *init-procedure-plate |
| 283 | |
| 284 | jobs: |
| 285 | - 'manual-graph-generator-SCPF' |
| 286 | - 'manual-graph-generator-trend' |