blob: 5d0f7844bf008342e316c567ac11c6c74c77e7d7 [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 -->
53 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 />
54 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:
137 name: '{type}-pipeline-{version}'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800138 description: |
139 <!-- Managed by Jenkins Job Builder -->
140 This pipeline contains the test results and logs of the corresponding test category and ONOS version. <br /><br />
141 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 />
142 <font color="red">Unless debugging, DO NOT MANUALLY BUILD THIS PIPELINE.</font><br /><br />
143 Created by Devin Lim - devin@opennetworking.org<br />
144 Copyright (c) 2017 Open Networking Foundation (ONF)
Devin Lim7a877872018-01-16 14:50:57 -0800145
Devin Lim49200ec2018-01-19 16:17:41 -0800146 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800147
148 parameters:
149
150 - string:
151 name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE
152 default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE'
153 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800154 <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 -0800155
156 - lf-infra-parameters:
157 project: 'OnosSystemTest'
158 branch: 'master'
159 stream: 'master'
160 lftools-version: '<1.0.0'
161
162 concurrent: false
163
164 pipeline-scm:
165 script-path: '{jenkins-path}/{type}JenkinsFile'
166 scm:
167 - git:
Devin Limca864a12018-02-09 11:25:30 -0800168 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800169 branches:
170 - 'master'
171
172- job-template:
173 name: 'manual-graph-generator-SCPF'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800174 description: |
175 <!-- Managed by Jenkins Job Builder -->
176 Refresh the wiki graphs here. Useful when there is a change in the graph scripts.<br />
177 <br />
178 You may also generate a graph trend that displays any number of builds here.<br />
179 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 >
180 <br >
181 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 -0800182
183 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800184 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800185
186 parameters:
187
Devin Lim7a877872018-01-16 14:50:57 -0800188 - choice:
189 name: ONOSbranch
190 choices:
191 - 'master'
192 - 'onos-1.12'
193 - 'onos-1.11'
194 description: "Possible branches (may vary depending on test)"
195
196 - bool:
197 name: isOldFlows
198 default: false
199 description: 'Check if it is using the old flow rules'
200
201 - text:
202 name: Test
203 default: '{SCPF}'
204 description: 'List of the tests to generate.'
205
206 - lf-infra-parameters:
207 project: 'OnosSystemTest'
208 branch: 'master'
209 stream: 'master'
210 lftools-version: '<1.0.0'
211
212 pipeline-scm:
213 script-path: '{jenkins-path}/SCPF_Graph_Generator'
214 scm:
215 - git:
Devin Limca864a12018-02-09 11:25:30 -0800216 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800217 branches:
218 - 'master'
219
220- job-template:
221 name: 'manual-graph-generator-trend'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800222 description: |
223 <!-- Managed by Jenkins Job Builder -->
224 Refresh the trend graphs here. Useful when there is a change in the graph scripts. <br />
225 Graphs are stored in their respective Postjob pipeline.
226
Devin Lim7a877872018-01-16 14:50:57 -0800227
228 <<: *var-init-boiler-plate
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 - choice:
234 name: ONOSbranch
235 choices:
236 - 'master'
237 - 'onos-1.12'
238 - 'onos-1.11'
239 description: "Possible branches (may vary depending on test)"
240
241 - choice:
242 name: NodeCluster
243 choices:
244 - VM
245 - BM
246 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800247 Node cluster where the test graphs in the list are located. <br />
Devin Lim7a877872018-01-16 14:50:57 -0800248 List of the tests will be refreshed depends on the node cluster.
249
250 - text:
251 name: Test
252 default: |
253 VM:
254 {FUNC}
255 {HA}
256 BM:
257 {USECASE}
258 description: 'List of the tests to generate.'
259
260 - string:
261 name: Builds
Devin Lim72caaba2018-03-02 15:15:46 -0800262 default: '20'
Devin Lim7a877872018-01-16 14:50:57 -0800263 description: 'Builds to show in the graph.'
264
265 - lf-infra-parameters:
266 project: 'OnosSystemTest'
267 branch: 'master'
268 stream: 'master'
269 lftools-version: '<1.0.0'
270
271 pipeline-scm:
272 script-path: '{jenkins-path}/Trend_Graph_Generator'
Devin Lim38d14062018-01-11 17:08:00 -0800273 scm:
274 - git:
Devin Limca864a12018-02-09 11:25:30 -0800275 url: '{gitURL}'
Devin Lim38d14062018-01-11 17:08:00 -0800276 branches:
Devin Lim74cf6cb2018-01-12 15:03:34 -0800277 - 'master'
Devin Lim38d14062018-01-11 17:08:00 -0800278
279- project:
280 name: all-pipeline-trigger
281 project-name: all-pipeline-trigger
Devin Lim7a877872018-01-16 14:50:57 -0800282
Devin Lim49200ec2018-01-19 16:17:41 -0800283 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800284
Devin Lim38d14062018-01-11 17:08:00 -0800285 # can we use this node or master ?
286 build-node: 'ubuntu16.04-basebuild-8c-15g'
287 jobs:
288 - 'all-pipeline-trigger'
Devin Lim7a877872018-01-16 14:50:57 -0800289
290- project:
291 name: build-pipeline
292
293 <<: *job-type-plate
294
295 project-name: '{type}-pipeline'
296
Devin Lim49200ec2018-01-19 16:17:41 -0800297 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800298 <<: *job-version-plate
299
300 jobs:
301 - '{type}-pipeline-{version}'
302
303- project:
304 name: graph-generator
305
306 project-name: 'graph-generator'
307
Devin Lim49200ec2018-01-19 16:17:41 -0800308 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800309
310 jobs:
311 - 'manual-graph-generator-SCPF'
312 - 'manual-graph-generator-trend'