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 |
| 24 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame^] | 25 | - test-pipe-init-procedure-plate: &test-pipe-init-procedure-plate |
| 26 | name: test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 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 |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame^] | 51 | <<: *test-pipe-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 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame^] | 124 | <<: *test-pipe-job-boiler-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 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 |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame^] | 155 | <<: *test-pipe-job-boiler-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 156 | |
| 157 | parameters: |
| 158 | |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 159 | - choice: |
| 160 | name: ONOSbranch |
| 161 | choices: |
| 162 | - 'master' |
| 163 | - 'onos-1.12' |
| 164 | - 'onos-1.11' |
| 165 | description: "Possible branches (may vary depending on test)" |
| 166 | |
| 167 | - bool: |
| 168 | name: isOldFlows |
| 169 | default: false |
| 170 | description: 'Check if it is using the old flow rules' |
| 171 | |
| 172 | - text: |
| 173 | name: Test |
| 174 | default: '{SCPF}' |
| 175 | description: 'List of the tests to generate.' |
| 176 | |
| 177 | - lf-infra-parameters: |
| 178 | project: 'OnosSystemTest' |
| 179 | branch: 'master' |
| 180 | stream: 'master' |
| 181 | lftools-version: '<1.0.0' |
| 182 | |
| 183 | pipeline-scm: |
| 184 | script-path: '{jenkins-path}/SCPF_Graph_Generator' |
| 185 | scm: |
| 186 | - git: |
| 187 | url: '$GIT_URL/$GERRIT_PROJECT' |
| 188 | credentials-id: '{jenkins-ssh-credential}' |
| 189 | branches: |
| 190 | - 'master' |
| 191 | |
| 192 | - job-template: |
| 193 | name: 'manual-graph-generator-trend' |
| 194 | |
| 195 | <<: *var-init-boiler-plate |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame^] | 196 | <<: *test-pipe-job-boiler-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 197 | |
| 198 | parameters: |
| 199 | |
| 200 | - choice: |
| 201 | name: ONOSbranch |
| 202 | choices: |
| 203 | - 'master' |
| 204 | - 'onos-1.12' |
| 205 | - 'onos-1.11' |
| 206 | description: "Possible branches (may vary depending on test)" |
| 207 | |
| 208 | - choice: |
| 209 | name: NodeCluster |
| 210 | choices: |
| 211 | - VM |
| 212 | - BM |
| 213 | description: | |
| 214 | Node cluster where the test graphs in the list are located. |
| 215 | List of the tests will be refreshed depends on the node cluster. |
| 216 | |
| 217 | - text: |
| 218 | name: Test |
| 219 | default: | |
| 220 | VM: |
| 221 | {FUNC} |
| 222 | {HA} |
| 223 | BM: |
| 224 | {USECASE} |
| 225 | description: 'List of the tests to generate.' |
| 226 | |
| 227 | - string: |
| 228 | name: Builds |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame^] | 229 | deafult: '20' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 230 | description: 'Builds to show in the graph.' |
| 231 | |
| 232 | - lf-infra-parameters: |
| 233 | project: 'OnosSystemTest' |
| 234 | branch: 'master' |
| 235 | stream: 'master' |
| 236 | lftools-version: '<1.0.0' |
| 237 | |
| 238 | pipeline-scm: |
| 239 | script-path: '{jenkins-path}/Trend_Graph_Generator' |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 240 | scm: |
| 241 | - git: |
| 242 | url: '$GIT_URL/$GERRIT_PROJECT' |
| 243 | credentials-id: '{jenkins-ssh-credential}' |
| 244 | branches: |
Devin Lim | 74cf6cb | 2018-01-12 15:03:34 -0800 | [diff] [blame] | 245 | - 'master' |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 246 | |
| 247 | - project: |
| 248 | name: all-pipeline-trigger |
| 249 | project-name: all-pipeline-trigger |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 250 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame^] | 251 | <<: *test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 252 | |
Devin Lim | 38d1406 | 2018-01-11 17:08:00 -0800 | [diff] [blame] | 253 | # can we use this node or master ? |
| 254 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 255 | jobs: |
| 256 | - 'all-pipeline-trigger' |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 257 | |
| 258 | - project: |
| 259 | name: build-pipeline |
| 260 | |
| 261 | <<: *job-type-plate |
| 262 | |
| 263 | project-name: '{type}-pipeline' |
| 264 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame^] | 265 | <<: *test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 266 | <<: *job-version-plate |
| 267 | |
| 268 | jobs: |
| 269 | - '{type}-pipeline-{version}' |
| 270 | |
| 271 | - project: |
| 272 | name: graph-generator |
| 273 | |
| 274 | project-name: 'graph-generator' |
| 275 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame^] | 276 | <<: *test-pipe-init-procedure-plate |
Devin Lim | 7a87787 | 2018-01-16 14:50:57 -0800 | [diff] [blame] | 277 | |
| 278 | jobs: |
| 279 | - 'manual-graph-generator-SCPF' |
| 280 | - 'manual-graph-generator-trend' |