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