blob: 65a5ddbf1b6bea4bef97f7d2fe5d17782fd82781 [file] [log] [blame]
Devin Lim38d14062018-01-11 17:08:00 -08001---
2# ONOS System Test Pipeline jobs
3
Devin Lim7a877872018-01-16 14:50:57 -08004# 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 Lim38d14062018-01-11 17:08:00 -08006- 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"
Devin Lim80546912018-03-23 17:49:39 -070011 USECASE: "FUNCbgpls\nFUNCvirNetNB\nPLATdockertest\nVPLSBasic\nVPLSfailsafe\nUSECASE_SdnipFunction\nUSECASE_SdnipFunctionCluster"
12 SR: "SRRouting\nSRBridging\nSRDhcprelay\nSRDynamicConf\nSRMulticast\nSRClusterRestart\nSRDynamic\nSRHighAvailability\nSRLinkFailure\nSROnosFailure\nSRSanity\nSRSwitchFailure"
Devin Lim38d14062018-01-11 17:08:00 -080013
Devin Lim49200ec2018-01-19 16:17:41 -080014- test-pipe-job-boiler-plate: &test-pipe-job-boiler-plate
15 name: test-pipe-job-boiler-plate
Devin Lim38d14062018-01-11 17:08:00 -080016
17 project-type: pipeline
18
19 sandbox: true
20
Devin Lim38d14062018-01-11 17:08:00 -080021 properties:
22
23 - build-discarder:
24 num-to-keep: 20
Devin Limca864a12018-02-09 11:25:30 -080025 gitURL: https://gerrit.onosproject.org/OnosSystemTest
Devin Lim38d14062018-01-11 17:08:00 -080026
Devin Lim49200ec2018-01-19 16:17:41 -080027- test-pipe-init-procedure-plate: &test-pipe-init-procedure-plate
28 name: test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -080029 project: OnosSystemTest
30 stream: 'master'
31 jenkins-path: 'TestON/JenkinsFile'
32
33- job-version-plate: &job-version-plate
34 name: job-version-plate
35 version:
36 - '1.11'
37 - '1.12'
38 - 'master'
39 - 'manually'
40
41- job-type-plate: &job-type-plate
42 name: job-type-plate
43 type:
44 - 'FUNC'
45 - 'HA'
46 - 'SCPF'
47 - 'USECASE'
Devin Lim323c9872018-01-30 19:57:58 -080048 - 'SR'
Devin Lim7a877872018-01-16 14:50:57 -080049
Devin Lim74cf6cb2018-01-12 15:03:34 -080050- job-template:
Devin Lim38d14062018-01-11 17:08:00 -080051 name: all-pipeline-trigger
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -080052 description: |
53 <!-- Managed by Jenkins Job Builder -->
Devin Lim1c4753e2018-03-23 15:31:38 -070054 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 />
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -080055 This pipeline is triggered by timer for the nightly builds. <br />
56 You may manually trigger this pipeline as well - provide the tests to run and the branch of ONOS and TestON. <br /> <br />
57 Note: <i>The console output for this job does <b>not</b> contain any test result logs.</i><br />
58 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 />
59 Created by Devin Lim - devin@opennetworking.org<br />
60 Copyright (c) 2017 Open Networking Foundation (ONF)
Devin Lim38d14062018-01-11 17:08:00 -080061
62 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -080063 <<: *test-pipe-job-boiler-plate
Devin Lim38d14062018-01-11 17:08:00 -080064
Devin Lim7a877872018-01-16 14:50:57 -080065 parameters:
Devin Lim74cf6cb2018-01-12 15:03:34 -080066
Devin Lim38d14062018-01-11 17:08:00 -080067 - bool:
68 name: manual_run
69 default: false
70 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -080071 Check this option if you are manually running this job (you most likely are). <br />
Devin Lim38d14062018-01-11 17:08:00 -080072 You must specify which tests to run in the text field below.
73
74 - bool:
75 name: PostResult
76 default: false
77 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -080078 Check this option if you want to update the results on the wiki. <br />
79 When manually run, this will update the wiki pages corresponding to the tests that were run. <br />
Devin Lim38d14062018-01-11 17:08:00 -080080 This option will always be selected during nightly builds.
81
82 - bool:
83 name: isOldFlow
Devin Lim491d92b2018-02-09 10:41:45 -080084 default: true
Devin Lim38d14062018-01-11 17:08:00 -080085 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -080086 Check this option if you prefer to run the old flow rule over the new one. <br />
Devin Lim38d14062018-01-11 17:08:00 -080087 * This only applies to SCPF tests.
88
89 - choice:
90 name: ONOSVersion
91 choices:
92 - 'master'
93 - '1.12'
94 - '1.11'
95 description: "ONOS and TestON versions to run on."
96
97 - string:
98 name: ONOSJVMHeap
Devin Lim7a877872018-01-16 14:50:57 -080099 default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\""
Devin Lim38d14062018-01-11 17:08:00 -0800100 description: 'ONOS cell JVM heap size setting.'
101
Devin Lim72caaba2018-03-02 15:15:46 -0800102 - string:
103 name: ONOSTag
104 default: ''
105 desciption: 'specific branch trying to checkout'
106
Devin Lim74cf6cb2018-01-12 15:03:34 -0800107 - text:
Devin Lim38d14062018-01-11 17:08:00 -0800108 name: Tests
Devin Lim7a877872018-01-16 14:50:57 -0800109 default: |
110 {FUNC}
111 {HA}
112 {SCPF}
113 {USECASE}
Devin Lim38d14062018-01-11 17:08:00 -0800114 description: 'Specify the tests you want to run, if manual_run is selected.'
115
Devin Lim7a877872018-01-16 14:50:57 -0800116 - lf-infra-parameters:
117 project: 'OnosSystemTest'
118 branch: 'master'
119 stream: 'master'
120 lftools-version: '<1.0.0'
121
Devin Lim38d14062018-01-11 17:08:00 -0800122 concurrent: false
123
Devin Lim2b5ef2e2018-02-27 14:05:08 -0800124 triggers:
125 - timed: |
Devin Lime2415162018-02-27 21:35:19 -0800126 30 03 * * 2,3,4,5,6
127 30 19 * * 6,7
Devin Lim38d14062018-01-11 17:08:00 -0800128
129 pipeline-scm:
Devin Lim7a877872018-01-16 14:50:57 -0800130 script-path: '{jenkins-path}/JenkinsfileTrigger'
131 scm:
132 - git:
Devin Limca864a12018-02-09 11:25:30 -0800133 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800134 branches:
135 - 'master'
136
137- job-template:
Devin Lim1c4753e2018-03-23 15:31:38 -0700138 name: SR-pipeline-trigger
139 description: |
140 <!-- Managed by Jenkins Job Builder -->
141 SR-pipeline-trigger can trigger Segment Routing TestON test on any branch of ONOS and TestON, by running the test category pipeline that contains the test. <br />
142 This pipeline is triggered by timer for the nightly builds. <br />
143 You may manually trigger this pipeline as well - provide the tests to run and the branch of ONOS and TestON. <br /> <br />
144 Note: <i>The console output for this job does <b>not</b> contain any test result logs.</i><br />
145 Visit the test category pipelines (such as <a href="https://jenkins.onosproject.org/view/QA/job/FUNC-pipeline-master/">SR-pipeline-master</a>) to view the test logs. <br /> <br />
146 Created by Devin Lim - devin@opennetworking.org<br />
147 Copyright (c) 2017 Open Networking Foundation (ONF)
148
149 <<: *var-init-boiler-plate
150 <<: *test-pipe-job-boiler-plate
151
152 parameters:
153
154 - bool:
155 name: manual_run
156 default: false
157 description: |
158 Check this option if you are manually running this job (you most likely are). <br />
159 You must specify which tests to run in the text field below.
160
161 - bool:
162 name: PostResult
163 default: false
164 description: |
165 Check this option if you want to update the results on the wiki. <br />
166 When manually run, this will update the wiki pages corresponding to the tests that were run. <br />
167 This option will always be selected during nightly builds.
168
169 - bool:
170 name: isOldFlow
171 default: true
172 description: |
173 Check this option if you prefer to run the old flow rule over the new one. <br />
174 * This only applies to SCPF tests.
175
176 - choice:
177 name: ONOSVersion
178 choices:
179 - 'master'
180 - '1.12'
181 - '1.11'
182 description: "ONOS and TestON versions to run on."
183
184 - string:
185 name: ONOSJVMHeap
186 default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\""
187 description: 'ONOS cell JVM heap size setting.'
188
189 - string:
190 name: ONOSTag
191 default: ''
192 desciption: 'specific branch trying to checkout'
193
194 - text:
195 name: Tests
196 default: |
197
198 description: 'Specify the tests you want to run, if manual_run is selected.'
199
200 - lf-infra-parameters:
201 project: 'OnosSystemTest'
202 branch: 'master'
203 stream: 'master'
204 lftools-version: '<1.0.0'
205
206 concurrent: false
207
208 triggers:
209 - timed: |
210 00 08 * * 1,2,3,4,5,6,7
211
212 pipeline-scm:
213 script-path: '{jenkins-path}/SRJenkinsfileTrigger'
214 scm:
215 - git:
216 url: '{gitURL}'
217 branches:
218 - 'master'
219
220- job-template:
Devin Lim7a877872018-01-16 14:50:57 -0800221 name: '{type}-pipeline-{version}'
Jeremy Ronquilloae3c7692018-03-05 08:47:05 -0800222 description: '<!-- Managed by Jenkins Job Builder -->
223 This pipeline contains the test results and logs of {type} on ONOS {version}. <br /><br />
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800224 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 />
225 <font color="red">Unless debugging, DO NOT MANUALLY BUILD THIS PIPELINE.</font><br /><br />
226 Created by Devin Lim - devin@opennetworking.org<br />
Jeremy Ronquilloae3c7692018-03-05 08:47:05 -0800227 Copyright (c) 2017 Open Networking Foundation (ONF)'
Devin Lim7a877872018-01-16 14:50:57 -0800228
Devin Lim49200ec2018-01-19 16:17:41 -0800229 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800230
231 parameters:
232
233 - string:
234 name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE
235 default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE'
236 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800237 <a href="https://jenkins.onosproject.org/view/QA/job/all-pipeline-trigger/">all-pipeline-trigger</a> triggers this pipeline automatically.
Devin Lim7a877872018-01-16 14:50:57 -0800238
239 - lf-infra-parameters:
240 project: 'OnosSystemTest'
241 branch: 'master'
242 stream: 'master'
243 lftools-version: '<1.0.0'
244
245 concurrent: false
246
247 pipeline-scm:
248 script-path: '{jenkins-path}/{type}JenkinsFile'
249 scm:
250 - git:
Devin Limca864a12018-02-09 11:25:30 -0800251 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800252 branches:
253 - 'master'
254
255- job-template:
256 name: 'manual-graph-generator-SCPF'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800257 description: |
258 <!-- Managed by Jenkins Job Builder -->
259 Refresh the wiki graphs here. Useful when there is a change in the graph scripts.<br />
260 <br />
261 You may also generate a graph trend that displays any number of builds here.<br />
262 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 >
263 <br >
264 Graphs are stored in the <a href="https://jenkins.onosproject.org/view/QA/job/postjob-BM/">postjob-BM<a> workspace.
Devin Lim7a877872018-01-16 14:50:57 -0800265
266 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800267 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800268
269 parameters:
270
Devin Lim7a877872018-01-16 14:50:57 -0800271 - choice:
272 name: ONOSbranch
273 choices:
274 - 'master'
275 - 'onos-1.12'
276 - 'onos-1.11'
277 description: "Possible branches (may vary depending on test)"
278
279 - bool:
280 name: isOldFlows
281 default: false
282 description: 'Check if it is using the old flow rules'
283
284 - text:
285 name: Test
286 default: '{SCPF}'
287 description: 'List of the tests to generate.'
288
289 - lf-infra-parameters:
290 project: 'OnosSystemTest'
291 branch: 'master'
292 stream: 'master'
293 lftools-version: '<1.0.0'
294
295 pipeline-scm:
296 script-path: '{jenkins-path}/SCPF_Graph_Generator'
297 scm:
298 - git:
Devin Limca864a12018-02-09 11:25:30 -0800299 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800300 branches:
301 - 'master'
302
303- job-template:
304 name: 'manual-graph-generator-trend'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800305 description: |
306 <!-- Managed by Jenkins Job Builder -->
307 Refresh the trend graphs here. Useful when there is a change in the graph scripts. <br />
308 Graphs are stored in their respective Postjob pipeline.
309
Devin Lim7a877872018-01-16 14:50:57 -0800310
311 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800312 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800313
314 parameters:
315
316 - choice:
317 name: ONOSbranch
318 choices:
319 - 'master'
320 - 'onos-1.12'
321 - 'onos-1.11'
322 description: "Possible branches (may vary depending on test)"
323
324 - choice:
325 name: NodeCluster
326 choices:
327 - VM
328 - BM
Devin Lim80546912018-03-23 17:49:39 -0700329 - Fabric
Devin Lim7a877872018-01-16 14:50:57 -0800330 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800331 Node cluster where the test graphs in the list are located. <br />
Devin Lim7a877872018-01-16 14:50:57 -0800332 List of the tests will be refreshed depends on the node cluster.
333
334 - text:
335 name: Test
336 default: |
337 VM:
338 {FUNC}
339 {HA}
340 BM:
341 {USECASE}
Devin Lim80546912018-03-23 17:49:39 -0700342 Fabric:
343 {SR}
Devin Lim7a877872018-01-16 14:50:57 -0800344 description: 'List of the tests to generate.'
345
346 - string:
347 name: Builds
Devin Lim72caaba2018-03-02 15:15:46 -0800348 default: '20'
Devin Lim7a877872018-01-16 14:50:57 -0800349 description: 'Builds to show in the graph.'
350
351 - lf-infra-parameters:
352 project: 'OnosSystemTest'
353 branch: 'master'
354 stream: 'master'
355 lftools-version: '<1.0.0'
356
357 pipeline-scm:
358 script-path: '{jenkins-path}/Trend_Graph_Generator'
Devin Lim38d14062018-01-11 17:08:00 -0800359 scm:
360 - git:
Devin Limca864a12018-02-09 11:25:30 -0800361 url: '{gitURL}'
Devin Lim38d14062018-01-11 17:08:00 -0800362 branches:
Devin Lim74cf6cb2018-01-12 15:03:34 -0800363 - 'master'
Devin Lim38d14062018-01-11 17:08:00 -0800364
Jeremy Ronquillo3dbd8e82018-03-05 10:23:25 -0800365- job-template:
366 name: 'manual-graph-generator-overall'
367 description: |
368 <!-- Managed by Jenkins Job Builder -->
369 Refresh the overall graphs here. Useful when there is a change in the graph scripts. <br />
370 Graphs are stored in pipeline-postjob-vm.
371
372 <<: *test-pipe-job-boiler-plate
373
374 parameters:
375 - choice:
376 name: ONOSbranch
377 choices:
378 - 'master'
379 - 'onos-1.12'
380 - 'onos-1.11'
381 description: "Possible branches (may vary depending on test)"
382
383 - lf-infra-parameters:
384 project: 'OnosSystemTest'
385 branch: 'master'
386 stream: 'master'
387 lftools-version: '<1.0.0'
388
389 pipeline-scm:
390 script-path: '{jenkins-path}/Overall_Graph_Generator'
391 scm:
392 - git:
393 url: '{gitURL}'
394 branches:
395 - 'master'
396
Devin Lim38d14062018-01-11 17:08:00 -0800397- project:
Devin Lim1c4753e2018-03-23 15:31:38 -0700398 name: pipeline-trigger
399 project-name: pipeline-trigger
Devin Lim7a877872018-01-16 14:50:57 -0800400
Devin Lim49200ec2018-01-19 16:17:41 -0800401 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800402
Devin Lim38d14062018-01-11 17:08:00 -0800403 build-node: 'ubuntu16.04-basebuild-8c-15g'
404 jobs:
405 - 'all-pipeline-trigger'
Devin Lim1c4753e2018-03-23 15:31:38 -0700406 - 'SR-pipeline-trigger'
Devin Lim7a877872018-01-16 14:50:57 -0800407
408- project:
409 name: build-pipeline
410
411 <<: *job-type-plate
412
413 project-name: '{type}-pipeline'
414
Devin Lim49200ec2018-01-19 16:17:41 -0800415 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800416 <<: *job-version-plate
417
418 jobs:
419 - '{type}-pipeline-{version}'
420
421- project:
422 name: graph-generator
423
424 project-name: 'graph-generator'
425
Devin Lim49200ec2018-01-19 16:17:41 -0800426 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800427
428 jobs:
429 - 'manual-graph-generator-SCPF'
430 - 'manual-graph-generator-trend'
Jeremy Ronquillo3dbd8e82018-03-05 10:23:25 -0800431 - 'manual-graph-generator-overall'