blob: 8fdd0ab12b943c745a7a71e46b0b369fadbb5e08 [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 Ronquilloae3c7692018-03-05 08:47:05 -0800138 description: '<!-- Managed by Jenkins Job Builder -->
139 This pipeline contains the test results and logs of {type} on ONOS {version}. <br /><br />
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800140 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 />
141 <font color="red">Unless debugging, DO NOT MANUALLY BUILD THIS PIPELINE.</font><br /><br />
142 Created by Devin Lim - devin@opennetworking.org<br />
Jeremy Ronquilloae3c7692018-03-05 08:47:05 -0800143 Copyright (c) 2017 Open Networking Foundation (ONF)'
Devin Lim7a877872018-01-16 14:50:57 -0800144
Devin Lim49200ec2018-01-19 16:17:41 -0800145 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800146
147 parameters:
148
149 - string:
150 name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE
151 default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE'
152 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800153 <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 -0800154
155 - lf-infra-parameters:
156 project: 'OnosSystemTest'
157 branch: 'master'
158 stream: 'master'
159 lftools-version: '<1.0.0'
160
161 concurrent: false
162
163 pipeline-scm:
164 script-path: '{jenkins-path}/{type}JenkinsFile'
165 scm:
166 - git:
Devin Limca864a12018-02-09 11:25:30 -0800167 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800168 branches:
169 - 'master'
170
171- job-template:
172 name: 'manual-graph-generator-SCPF'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800173 description: |
174 <!-- Managed by Jenkins Job Builder -->
175 Refresh the wiki graphs here. Useful when there is a change in the graph scripts.<br />
176 <br />
177 You may also generate a graph trend that displays any number of builds here.<br />
178 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 >
179 <br >
180 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 -0800181
182 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800183 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800184
185 parameters:
186
Devin Lim7a877872018-01-16 14:50:57 -0800187 - choice:
188 name: ONOSbranch
189 choices:
190 - 'master'
191 - 'onos-1.12'
192 - 'onos-1.11'
193 description: "Possible branches (may vary depending on test)"
194
195 - bool:
196 name: isOldFlows
197 default: false
198 description: 'Check if it is using the old flow rules'
199
200 - text:
201 name: Test
202 default: '{SCPF}'
203 description: 'List of the tests to generate.'
204
205 - lf-infra-parameters:
206 project: 'OnosSystemTest'
207 branch: 'master'
208 stream: 'master'
209 lftools-version: '<1.0.0'
210
211 pipeline-scm:
212 script-path: '{jenkins-path}/SCPF_Graph_Generator'
213 scm:
214 - git:
Devin Limca864a12018-02-09 11:25:30 -0800215 url: '{gitURL}'
Devin Lim7a877872018-01-16 14:50:57 -0800216 branches:
217 - 'master'
218
219- job-template:
220 name: 'manual-graph-generator-trend'
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800221 description: |
222 <!-- Managed by Jenkins Job Builder -->
223 Refresh the trend graphs here. Useful when there is a change in the graph scripts. <br />
224 Graphs are stored in their respective Postjob pipeline.
225
Devin Lim7a877872018-01-16 14:50:57 -0800226
227 <<: *var-init-boiler-plate
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 - choice:
233 name: ONOSbranch
234 choices:
235 - 'master'
236 - 'onos-1.12'
237 - 'onos-1.11'
238 description: "Possible branches (may vary depending on test)"
239
240 - choice:
241 name: NodeCluster
242 choices:
243 - VM
244 - BM
245 description: |
Jeremy Ronquillo34e993b2018-02-07 10:43:15 -0800246 Node cluster where the test graphs in the list are located. <br />
Devin Lim7a877872018-01-16 14:50:57 -0800247 List of the tests will be refreshed depends on the node cluster.
248
249 - text:
250 name: Test
251 default: |
252 VM:
253 {FUNC}
254 {HA}
255 BM:
256 {USECASE}
257 description: 'List of the tests to generate.'
258
259 - string:
260 name: Builds
Devin Lim72caaba2018-03-02 15:15:46 -0800261 default: '20'
Devin Lim7a877872018-01-16 14:50:57 -0800262 description: 'Builds to show in the graph.'
263
264 - lf-infra-parameters:
265 project: 'OnosSystemTest'
266 branch: 'master'
267 stream: 'master'
268 lftools-version: '<1.0.0'
269
270 pipeline-scm:
271 script-path: '{jenkins-path}/Trend_Graph_Generator'
Devin Lim38d14062018-01-11 17:08:00 -0800272 scm:
273 - git:
Devin Limca864a12018-02-09 11:25:30 -0800274 url: '{gitURL}'
Devin Lim38d14062018-01-11 17:08:00 -0800275 branches:
Devin Lim74cf6cb2018-01-12 15:03:34 -0800276 - 'master'
Devin Lim38d14062018-01-11 17:08:00 -0800277
278- project:
279 name: all-pipeline-trigger
280 project-name: all-pipeline-trigger
Devin Lim7a877872018-01-16 14:50:57 -0800281
Devin Lim49200ec2018-01-19 16:17:41 -0800282 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800283
Devin Lim38d14062018-01-11 17:08:00 -0800284 # can we use this node or master ?
285 build-node: 'ubuntu16.04-basebuild-8c-15g'
286 jobs:
287 - 'all-pipeline-trigger'
Devin Lim7a877872018-01-16 14:50:57 -0800288
289- project:
290 name: build-pipeline
291
292 <<: *job-type-plate
293
294 project-name: '{type}-pipeline'
295
Devin Lim49200ec2018-01-19 16:17:41 -0800296 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800297 <<: *job-version-plate
298
299 jobs:
300 - '{type}-pipeline-{version}'
301
302- project:
303 name: graph-generator
304
305 project-name: 'graph-generator'
306
Devin Lim49200ec2018-01-19 16:17:41 -0800307 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800308
309 jobs:
310 - 'manual-graph-generator-SCPF'
311 - 'manual-graph-generator-trend'