blob: d6133dd9a69da71afab437d8d3b40deaa1dc843b [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"
11 USECASE: "FUNCbgpls\nFUNCvirNetNB\nPLATdockertest\nVPLSBasic\nVPLSfailsafe\nUSECASE_SdnipFunction\nUSECASE_SdnipFunctionCluster\nSRClusterRestart\nSRDynamic\nSRHighAvailability\nSRLinkFailure\nSROnosFailure\nSRSanity\nSRSwitchFailure"
12
Devin Lim49200ec2018-01-19 16:17:41 -080013- test-pipe-job-boiler-plate: &test-pipe-job-boiler-plate
14 name: test-pipe-job-boiler-plate
Devin Lim38d14062018-01-11 17:08:00 -080015
16 project-type: pipeline
17
18 sandbox: true
19
Devin Lim38d14062018-01-11 17:08:00 -080020 properties:
21
22 - build-discarder:
23 num-to-keep: 20
Devin Limca864a12018-02-09 11:25:30 -080024 gitURL: https://gerrit.onosproject.org/OnosSystemTest
Devin Lim38d14062018-01-11 17:08:00 -080025
Devin Lim49200ec2018-01-19 16:17:41 -080026- test-pipe-init-procedure-plate: &test-pipe-init-procedure-plate
27 name: test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -080028 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 Lim323c9872018-01-30 19:57:58 -080047 - 'SR'
Devin Lim7a877872018-01-16 14:50:57 -080048
Devin Lim74cf6cb2018-01-12 15:03:34 -080049- job-template:
Devin Lim38d14062018-01-11 17:08:00 -080050 name: all-pipeline-trigger
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -080051 description: |
52 <!-- Managed by Jenkins Job Builder -->
Devin Lim1c4753e2018-03-23 15:31:38 -070053 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 -080054 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 Lim38d14062018-01-11 17:08:00 -080060
61 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -080062 <<: *test-pipe-job-boiler-plate
Devin Lim38d14062018-01-11 17:08:00 -080063
Devin Lim7a877872018-01-16 14:50:57 -080064 parameters:
Devin Lim74cf6cb2018-01-12 15:03:34 -080065
Devin Lim38d14062018-01-11 17:08:00 -080066 - bool:
67 name: manual_run
68 default: false
69 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -080070 Check this option if you are manually running this job (you most likely are). <br />
Devin Lim38d14062018-01-11 17:08:00 -080071 You must specify which tests to run in the text field below.
72
73 - bool:
74 name: PostResult
75 default: false
76 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -080077 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 Lim38d14062018-01-11 17:08:00 -080079 This option will always be selected during nightly builds.
80
81 - bool:
82 name: isOldFlow
Devin Lim491d92b2018-02-09 10:41:45 -080083 default: true
Devin Lim38d14062018-01-11 17:08:00 -080084 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -080085 Check this option if you prefer to run the old flow rule over the new one. <br />
Devin Lim38d14062018-01-11 17:08:00 -080086 * 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 Lim7a877872018-01-16 14:50:57 -080098 default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\""
Devin Lim38d14062018-01-11 17:08:00 -080099 description: 'ONOS cell JVM heap size setting.'
100
Devin Lim72caaba2018-03-02 15:15:46 -0800101 - string:
102 name: ONOSTag
103 default: ''
104 desciption: 'specific branch trying to checkout'
105
Devin Lim74cf6cb2018-01-12 15:03:34 -0800106 - text:
Devin Lim38d14062018-01-11 17:08:00 -0800107 name: Tests
Devin Lim7a877872018-01-16 14:50:57 -0800108 default: |
109 {FUNC}
110 {HA}
111 {SCPF}
112 {USECASE}
Devin Lim38d14062018-01-11 17:08:00 -0800113 description: 'Specify the tests you want to run, if manual_run is selected.'
114
Devin Lim7a877872018-01-16 14:50:57 -0800115 - lf-infra-parameters:
116 project: 'OnosSystemTest'
117 branch: 'master'
118 stream: 'master'
119 lftools-version: '<1.0.0'
120
Devin Lim38d14062018-01-11 17:08:00 -0800121 concurrent: false
122
Devin Lim2b5ef2e2018-02-27 14:05:08 -0800123 triggers:
124 - timed: |
Devin Lime2415162018-02-27 21:35:19 -0800125 30 03 * * 2,3,4,5,6
126 30 19 * * 6,7
Devin Lim38d14062018-01-11 17:08:00 -0800127
128 pipeline-scm:
Devin Lim7a877872018-01-16 14:50:57 -0800129 script-path: '{jenkins-path}/JenkinsfileTrigger'
130 scm:
131 - git:
Devin Limca864a12018-02-09 11:25:30 -0800132 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800133 branches:
134 - 'master'
135
136- job-template:
Devin Lim1c4753e2018-03-23 15:31:38 -0700137 name: SR-pipeline-trigger
138 description: |
139 <!-- Managed by Jenkins Job Builder -->
140 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 />
141 This pipeline is triggered by timer for the nightly builds. <br />
142 You may manually trigger this pipeline as well - provide the tests to run and the branch of ONOS and TestON. <br /> <br />
143 Note: <i>The console output for this job does <b>not</b> contain any test result logs.</i><br />
144 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 />
145 Created by Devin Lim - devin@opennetworking.org<br />
146 Copyright (c) 2017 Open Networking Foundation (ONF)
147
148 <<: *var-init-boiler-plate
149 <<: *test-pipe-job-boiler-plate
150
151 parameters:
152
153 - bool:
154 name: manual_run
155 default: false
156 description: |
157 Check this option if you are manually running this job (you most likely are). <br />
158 You must specify which tests to run in the text field below.
159
160 - bool:
161 name: PostResult
162 default: false
163 description: |
164 Check this option if you want to update the results on the wiki. <br />
165 When manually run, this will update the wiki pages corresponding to the tests that were run. <br />
166 This option will always be selected during nightly builds.
167
168 - bool:
169 name: isOldFlow
170 default: true
171 description: |
172 Check this option if you prefer to run the old flow rule over the new one. <br />
173 * This only applies to SCPF tests.
174
175 - choice:
176 name: ONOSVersion
177 choices:
178 - 'master'
179 - '1.12'
180 - '1.11'
181 description: "ONOS and TestON versions to run on."
182
183 - string:
184 name: ONOSJVMHeap
185 default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\""
186 description: 'ONOS cell JVM heap size setting.'
187
188 - string:
189 name: ONOSTag
190 default: ''
191 desciption: 'specific branch trying to checkout'
192
193 - text:
194 name: Tests
195 default: |
196
197 description: 'Specify the tests you want to run, if manual_run is selected.'
198
199 - lf-infra-parameters:
200 project: 'OnosSystemTest'
201 branch: 'master'
202 stream: 'master'
203 lftools-version: '<1.0.0'
204
205 concurrent: false
206
207 triggers:
208 - timed: |
209 00 08 * * 1,2,3,4,5,6,7
210
211 pipeline-scm:
212 script-path: '{jenkins-path}/SRJenkinsfileTrigger'
213 scm:
214 - git:
215 url: '{gitURL}'
216 branches:
217 - 'master'
218
219- job-template:
Devin Lim7a877872018-01-16 14:50:57 -0800220 name: '{type}-pipeline-{version}'
Jeremy Ronquilloae3c7692018-03-05 08:47:05 -0800221 description: '<!-- Managed by Jenkins Job Builder -->
222 This pipeline contains the test results and logs of {type} on ONOS {version}. <br /><br />
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800223 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 />
224 <font color="red">Unless debugging, DO NOT MANUALLY BUILD THIS PIPELINE.</font><br /><br />
225 Created by Devin Lim - devin@opennetworking.org<br />
Jeremy Ronquilloae3c7692018-03-05 08:47:05 -0800226 Copyright (c) 2017 Open Networking Foundation (ONF)'
Devin Lim7a877872018-01-16 14:50:57 -0800227
Devin Lim49200ec2018-01-19 16:17:41 -0800228 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800229
230 parameters:
231
232 - string:
233 name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE
234 default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE'
235 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800236 <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 -0800237
238 - lf-infra-parameters:
239 project: 'OnosSystemTest'
240 branch: 'master'
241 stream: 'master'
242 lftools-version: '<1.0.0'
243
244 concurrent: false
245
246 pipeline-scm:
247 script-path: '{jenkins-path}/{type}JenkinsFile'
248 scm:
249 - git:
Devin Limca864a12018-02-09 11:25:30 -0800250 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800251 branches:
252 - 'master'
253
254- job-template:
255 name: 'manual-graph-generator-SCPF'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800256 description: |
257 <!-- Managed by Jenkins Job Builder -->
258 Refresh the wiki graphs here. Useful when there is a change in the graph scripts.<br />
259 <br />
260 You may also generate a graph trend that displays any number of builds here.<br />
261 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 >
262 <br >
263 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 -0800264
265 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800266 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800267
268 parameters:
269
Devin Lim7a877872018-01-16 14:50:57 -0800270 - choice:
271 name: ONOSbranch
272 choices:
273 - 'master'
274 - 'onos-1.12'
275 - 'onos-1.11'
276 description: "Possible branches (may vary depending on test)"
277
278 - bool:
279 name: isOldFlows
280 default: false
281 description: 'Check if it is using the old flow rules'
282
283 - text:
284 name: Test
285 default: '{SCPF}'
286 description: 'List of the tests to generate.'
287
288 - lf-infra-parameters:
289 project: 'OnosSystemTest'
290 branch: 'master'
291 stream: 'master'
292 lftools-version: '<1.0.0'
293
294 pipeline-scm:
295 script-path: '{jenkins-path}/SCPF_Graph_Generator'
296 scm:
297 - git:
Devin Limca864a12018-02-09 11:25:30 -0800298 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800299 branches:
300 - 'master'
301
302- job-template:
303 name: 'manual-graph-generator-trend'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800304 description: |
305 <!-- Managed by Jenkins Job Builder -->
306 Refresh the trend graphs here. Useful when there is a change in the graph scripts. <br />
307 Graphs are stored in their respective Postjob pipeline.
308
Devin Lim7a877872018-01-16 14:50:57 -0800309
310 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800311 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800312
313 parameters:
314
315 - choice:
316 name: ONOSbranch
317 choices:
318 - 'master'
319 - 'onos-1.12'
320 - 'onos-1.11'
321 description: "Possible branches (may vary depending on test)"
322
323 - choice:
324 name: NodeCluster
325 choices:
326 - VM
327 - BM
328 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800329 Node cluster where the test graphs in the list are located. <br />
Devin Lim7a877872018-01-16 14:50:57 -0800330 List of the tests will be refreshed depends on the node cluster.
331
332 - text:
333 name: Test
334 default: |
335 VM:
336 {FUNC}
337 {HA}
338 BM:
339 {USECASE}
340 description: 'List of the tests to generate.'
341
342 - string:
343 name: Builds
Devin Lim72caaba2018-03-02 15:15:46 -0800344 default: '20'
Devin Lim7a877872018-01-16 14:50:57 -0800345 description: 'Builds to show in the graph.'
346
347 - lf-infra-parameters:
348 project: 'OnosSystemTest'
349 branch: 'master'
350 stream: 'master'
351 lftools-version: '<1.0.0'
352
353 pipeline-scm:
354 script-path: '{jenkins-path}/Trend_Graph_Generator'
Devin Lim38d14062018-01-11 17:08:00 -0800355 scm:
356 - git:
Devin Limca864a12018-02-09 11:25:30 -0800357 url: '{gitURL}'
Devin Lim38d14062018-01-11 17:08:00 -0800358 branches:
Devin Lim74cf6cb2018-01-12 15:03:34 -0800359 - 'master'
Devin Lim38d14062018-01-11 17:08:00 -0800360
Jeremy Ronquillo3dbd8e82018-03-05 10:23:25 -0800361- job-template:
362 name: 'manual-graph-generator-overall'
363 description: |
364 <!-- Managed by Jenkins Job Builder -->
365 Refresh the overall graphs here. Useful when there is a change in the graph scripts. <br />
366 Graphs are stored in pipeline-postjob-vm.
367
368 <<: *test-pipe-job-boiler-plate
369
370 parameters:
371 - choice:
372 name: ONOSbranch
373 choices:
374 - 'master'
375 - 'onos-1.12'
376 - 'onos-1.11'
377 description: "Possible branches (may vary depending on test)"
378
379 - lf-infra-parameters:
380 project: 'OnosSystemTest'
381 branch: 'master'
382 stream: 'master'
383 lftools-version: '<1.0.0'
384
385 pipeline-scm:
386 script-path: '{jenkins-path}/Overall_Graph_Generator'
387 scm:
388 - git:
389 url: '{gitURL}'
390 branches:
391 - 'master'
392
Devin Lim38d14062018-01-11 17:08:00 -0800393- project:
Devin Lim1c4753e2018-03-23 15:31:38 -0700394 name: pipeline-trigger
395 project-name: pipeline-trigger
Devin Lim7a877872018-01-16 14:50:57 -0800396
Devin Lim49200ec2018-01-19 16:17:41 -0800397 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800398
Devin Lim38d14062018-01-11 17:08:00 -0800399 build-node: 'ubuntu16.04-basebuild-8c-15g'
400 jobs:
401 - 'all-pipeline-trigger'
Devin Lim1c4753e2018-03-23 15:31:38 -0700402 - 'SR-pipeline-trigger'
Devin Lim7a877872018-01-16 14:50:57 -0800403
404- project:
405 name: build-pipeline
406
407 <<: *job-type-plate
408
409 project-name: '{type}-pipeline'
410
Devin Lim49200ec2018-01-19 16:17:41 -0800411 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800412 <<: *job-version-plate
413
414 jobs:
415 - '{type}-pipeline-{version}'
416
417- project:
418 name: graph-generator
419
420 project-name: 'graph-generator'
421
Devin Lim49200ec2018-01-19 16:17:41 -0800422 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800423
424 jobs:
425 - 'manual-graph-generator-SCPF'
426 - 'manual-graph-generator-trend'
Jeremy Ronquillo3dbd8e82018-03-05 10:23:25 -0800427 - 'manual-graph-generator-overall'