blob: 579223bedd7b0dd83fe684067254104e4d5e686f [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 Lime625f9a2018-03-26 12:04:47 -0700126 TZ=America/Los_Angeles
127 30 19 * * 1,2,3,4,5
128 30 11 * * 6,7
Devin Lim38d14062018-01-11 17:08:00 -0800129
130 pipeline-scm:
Devin Lim7a877872018-01-16 14:50:57 -0800131 script-path: '{jenkins-path}/JenkinsfileTrigger'
132 scm:
133 - git:
Devin Limca864a12018-02-09 11:25:30 -0800134 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800135 branches:
136 - 'master'
137
138- job-template:
Devin Lim1c4753e2018-03-23 15:31:38 -0700139 name: SR-pipeline-trigger
140 description: |
141 <!-- Managed by Jenkins Job Builder -->
142 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 />
143 This pipeline is triggered by timer for the nightly builds. <br />
144 You may manually trigger this pipeline as well - provide the tests to run and the branch of ONOS and TestON. <br /> <br />
145 Note: <i>The console output for this job does <b>not</b> contain any test result logs.</i><br />
Devin Lime625f9a2018-03-26 12:04:47 -0700146 Visit the test category pipelines (such as <a href="https://jenkins.onosproject.org/view/QA/job/SR-pipeline-master/">SR-pipeline-master</a>) to view the test logs. <br /> <br />
Devin Lim1c4753e2018-03-23 15:31:38 -0700147 Created by Devin Lim - devin@opennetworking.org<br />
148 Copyright (c) 2017 Open Networking Foundation (ONF)
149
150 <<: *var-init-boiler-plate
151 <<: *test-pipe-job-boiler-plate
152
153 parameters:
154
155 - bool:
156 name: manual_run
157 default: false
158 description: |
159 Check this option if you are manually running this job (you most likely are). <br />
160 You must specify which tests to run in the text field below.
161
162 - bool:
163 name: PostResult
164 default: false
165 description: |
166 Check this option if you want to update the results on the wiki. <br />
167 When manually run, this will update the wiki pages corresponding to the tests that were run. <br />
168 This option will always be selected during nightly builds.
169
170 - bool:
171 name: isOldFlow
172 default: true
173 description: |
174 Check this option if you prefer to run the old flow rule over the new one. <br />
175 * This only applies to SCPF tests.
176
177 - choice:
178 name: ONOSVersion
179 choices:
180 - 'master'
181 - '1.12'
182 - '1.11'
183 description: "ONOS and TestON versions to run on."
184
185 - string:
186 name: ONOSJVMHeap
187 default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\""
188 description: 'ONOS cell JVM heap size setting.'
189
190 - string:
191 name: ONOSTag
192 default: ''
193 desciption: 'specific branch trying to checkout'
194
195 - text:
196 name: Tests
197 default: |
Devin Lime7648e42018-03-24 14:49:21 -0700198 {SR}
Devin Lim1c4753e2018-03-23 15:31:38 -0700199
200 description: 'Specify the tests you want to run, if manual_run is selected.'
201
202 - lf-infra-parameters:
203 project: 'OnosSystemTest'
204 branch: 'master'
205 stream: 'master'
206 lftools-version: '<1.0.0'
207
208 concurrent: false
209
210 triggers:
211 - timed: |
Devin Lime625f9a2018-03-26 12:04:47 -0700212 TZ=America/Los_Angeles
213 30 18 * * 1,2,3,4,5,6,7
Devin Lim1c4753e2018-03-23 15:31:38 -0700214
215 pipeline-scm:
216 script-path: '{jenkins-path}/SRJenkinsfileTrigger'
217 scm:
218 - git:
219 url: '{gitURL}'
220 branches:
221 - 'master'
222
223- job-template:
Devin Lim7a877872018-01-16 14:50:57 -0800224 name: '{type}-pipeline-{version}'
Jeremy Ronquilloae3c7692018-03-05 08:47:05 -0800225 description: '<!-- Managed by Jenkins Job Builder -->
226 This pipeline contains the test results and logs of {type} on ONOS {version}. <br /><br />
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800227 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 />
228 <font color="red">Unless debugging, DO NOT MANUALLY BUILD THIS PIPELINE.</font><br /><br />
229 Created by Devin Lim - devin@opennetworking.org<br />
Jeremy Ronquilloae3c7692018-03-05 08:47:05 -0800230 Copyright (c) 2017 Open Networking Foundation (ONF)'
Devin Lim7a877872018-01-16 14:50:57 -0800231
Devin Lim49200ec2018-01-19 16:17:41 -0800232 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800233
234 parameters:
235
236 - string:
237 name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE
238 default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE'
239 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800240 <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 -0800241
242 - lf-infra-parameters:
243 project: 'OnosSystemTest'
244 branch: 'master'
245 stream: 'master'
246 lftools-version: '<1.0.0'
247
248 concurrent: false
249
250 pipeline-scm:
251 script-path: '{jenkins-path}/{type}JenkinsFile'
252 scm:
253 - git:
Devin Limca864a12018-02-09 11:25:30 -0800254 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800255 branches:
256 - 'master'
257
258- job-template:
259 name: 'manual-graph-generator-SCPF'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800260 description: |
261 <!-- Managed by Jenkins Job Builder -->
262 Refresh the wiki graphs here. Useful when there is a change in the graph scripts.<br />
263 <br />
264 You may also generate a graph trend that displays any number of builds here.<br />
265 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 >
266 <br >
267 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 -0800268
269 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800270 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800271
272 parameters:
273
Devin Lim7a877872018-01-16 14:50:57 -0800274 - choice:
275 name: ONOSbranch
276 choices:
277 - 'master'
278 - 'onos-1.12'
279 - 'onos-1.11'
280 description: "Possible branches (may vary depending on test)"
281
282 - bool:
283 name: isOldFlows
284 default: false
285 description: 'Check if it is using the old flow rules'
286
287 - text:
288 name: Test
289 default: '{SCPF}'
290 description: 'List of the tests to generate.'
291
292 - lf-infra-parameters:
293 project: 'OnosSystemTest'
294 branch: 'master'
295 stream: 'master'
296 lftools-version: '<1.0.0'
297
298 pipeline-scm:
299 script-path: '{jenkins-path}/SCPF_Graph_Generator'
300 scm:
301 - git:
Devin Limca864a12018-02-09 11:25:30 -0800302 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800303 branches:
304 - 'master'
305
306- job-template:
307 name: 'manual-graph-generator-trend'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800308 description: |
309 <!-- Managed by Jenkins Job Builder -->
310 Refresh the trend graphs here. Useful when there is a change in the graph scripts. <br />
311 Graphs are stored in their respective Postjob pipeline.
312
Devin Lim7a877872018-01-16 14:50:57 -0800313
314 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800315 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800316
317 parameters:
318
319 - choice:
320 name: ONOSbranch
321 choices:
322 - 'master'
323 - 'onos-1.12'
324 - 'onos-1.11'
325 description: "Possible branches (may vary depending on test)"
326
327 - choice:
328 name: NodeCluster
329 choices:
330 - VM
331 - BM
Devin Lim80546912018-03-23 17:49:39 -0700332 - Fabric
Devin Lim7a877872018-01-16 14:50:57 -0800333 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800334 Node cluster where the test graphs in the list are located. <br />
Devin Lim7a877872018-01-16 14:50:57 -0800335 List of the tests will be refreshed depends on the node cluster.
336
337 - text:
338 name: Test
339 default: |
340 VM:
341 {FUNC}
342 {HA}
343 BM:
344 {USECASE}
Devin Lim80546912018-03-23 17:49:39 -0700345 Fabric:
346 {SR}
Devin Lim7a877872018-01-16 14:50:57 -0800347 description: 'List of the tests to generate.'
348
349 - string:
350 name: Builds
Devin Lim72caaba2018-03-02 15:15:46 -0800351 default: '20'
Devin Lim7a877872018-01-16 14:50:57 -0800352 description: 'Builds to show in the graph.'
353
354 - lf-infra-parameters:
355 project: 'OnosSystemTest'
356 branch: 'master'
357 stream: 'master'
358 lftools-version: '<1.0.0'
359
360 pipeline-scm:
361 script-path: '{jenkins-path}/Trend_Graph_Generator'
Devin Lim38d14062018-01-11 17:08:00 -0800362 scm:
363 - git:
Devin Limca864a12018-02-09 11:25:30 -0800364 url: '{gitURL}'
Devin Lim38d14062018-01-11 17:08:00 -0800365 branches:
Devin Lim74cf6cb2018-01-12 15:03:34 -0800366 - 'master'
Devin Lim38d14062018-01-11 17:08:00 -0800367
Jeremy Ronquillo3dbd8e82018-03-05 10:23:25 -0800368- job-template:
369 name: 'manual-graph-generator-overall'
370 description: |
371 <!-- Managed by Jenkins Job Builder -->
372 Refresh the overall graphs here. Useful when there is a change in the graph scripts. <br />
373 Graphs are stored in pipeline-postjob-vm.
374
375 <<: *test-pipe-job-boiler-plate
376
377 parameters:
378 - choice:
379 name: ONOSbranch
380 choices:
381 - 'master'
382 - 'onos-1.12'
383 - 'onos-1.11'
384 description: "Possible branches (may vary depending on test)"
385
386 - lf-infra-parameters:
387 project: 'OnosSystemTest'
388 branch: 'master'
389 stream: 'master'
390 lftools-version: '<1.0.0'
391
392 pipeline-scm:
393 script-path: '{jenkins-path}/Overall_Graph_Generator'
394 scm:
395 - git:
396 url: '{gitURL}'
397 branches:
398 - 'master'
399
Devin Lim38d14062018-01-11 17:08:00 -0800400- project:
Devin Lim1c4753e2018-03-23 15:31:38 -0700401 name: pipeline-trigger
402 project-name: pipeline-trigger
Devin Lim7a877872018-01-16 14:50:57 -0800403
Devin Lim49200ec2018-01-19 16:17:41 -0800404 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800405
Devin Lim38d14062018-01-11 17:08:00 -0800406 build-node: 'ubuntu16.04-basebuild-8c-15g'
407 jobs:
408 - 'all-pipeline-trigger'
Devin Lim1c4753e2018-03-23 15:31:38 -0700409 - 'SR-pipeline-trigger'
Devin Lim7a877872018-01-16 14:50:57 -0800410
411- project:
412 name: build-pipeline
413
414 <<: *job-type-plate
415
416 project-name: '{type}-pipeline'
417
Devin Lim49200ec2018-01-19 16:17:41 -0800418 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800419 <<: *job-version-plate
420
421 jobs:
422 - '{type}-pipeline-{version}'
423
424- project:
425 name: graph-generator
426
427 project-name: 'graph-generator'
428
Devin Lim49200ec2018-01-19 16:17:41 -0800429 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800430
431 jobs:
432 - 'manual-graph-generator-SCPF'
433 - 'manual-graph-generator-trend'
Jeremy Ronquillo3dbd8e82018-03-05 10:23:25 -0800434 - 'manual-graph-generator-overall'