blob: 566906faa9a188338fb483b05809538d0461065a [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
24
Devin Lim49200ec2018-01-19 16:17:41 -080025- test-pipe-init-procedure-plate: &test-pipe-init-procedure-plate
26 name: test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -080027 project: OnosSystemTest
28 stream: 'master'
29 jenkins-path: 'TestON/JenkinsFile'
30
31- job-version-plate: &job-version-plate
32 name: job-version-plate
33 version:
34 - '1.11'
35 - '1.12'
36 - 'master'
37 - 'manually'
38
39- job-type-plate: &job-type-plate
40 name: job-type-plate
41 type:
42 - 'FUNC'
43 - 'HA'
44 - 'SCPF'
45 - 'USECASE'
46
Devin Lim74cf6cb2018-01-12 15:03:34 -080047- job-template:
Devin Lim38d14062018-01-11 17:08:00 -080048 name: all-pipeline-trigger
49
50 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -080051 <<: *test-pipe-job-boiler-plate
Devin Lim38d14062018-01-11 17:08:00 -080052
Devin Lim7a877872018-01-16 14:50:57 -080053 parameters:
Devin Lim74cf6cb2018-01-12 15:03:34 -080054
Devin Lim38d14062018-01-11 17:08:00 -080055 - bool:
56 name: manual_run
57 default: false
58 description: |
59 Check this option if you are manually running this job (you most likely are).
60 You must specify which tests to run in the text field below.
61
62 - bool:
63 name: PostResult
64 default: false
65 description: |
66 Check this option if you want to update the results on the wiki.
67 When manually run, this will update the wiki pages corresponding to the tests that were run.
68 This option will always be selected during nightly builds.
69
70 - bool:
71 name: isOldFlow
72 default: false
73 description: |
74 Check this option if you prefer to run the old flow rule over the new one.
75 * This only applies to SCPF tests.
76
77 - choice:
78 name: ONOSVersion
79 choices:
80 - 'master'
81 - '1.12'
82 - '1.11'
83 description: "ONOS and TestON versions to run on."
84
85 - string:
86 name: ONOSJVMHeap
Devin Lim7a877872018-01-16 14:50:57 -080087 default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\""
Devin Lim38d14062018-01-11 17:08:00 -080088 description: 'ONOS cell JVM heap size setting.'
89
Devin Lim74cf6cb2018-01-12 15:03:34 -080090 - text:
Devin Lim38d14062018-01-11 17:08:00 -080091 name: Tests
Devin Lim7a877872018-01-16 14:50:57 -080092 default: |
93 {FUNC}
94 {HA}
95 {SCPF}
96 {USECASE}
Devin Lim38d14062018-01-11 17:08:00 -080097 description: 'Specify the tests you want to run, if manual_run is selected.'
98
Devin Lim7a877872018-01-16 14:50:57 -080099 - lf-infra-parameters:
100 project: 'OnosSystemTest'
101 branch: 'master'
102 stream: 'master'
103 lftools-version: '<1.0.0'
104
Devin Lim38d14062018-01-11 17:08:00 -0800105 concurrent: false
106
Devin Lim9c8fa3e2018-01-24 16:47:15 -0800107# triggers:
108# - timed: |
109# 30 19 * * 1,2,3,4,5
110# 30 11 * * 6,7
Devin Lim38d14062018-01-11 17:08:00 -0800111
112 pipeline-scm:
Devin Lim7a877872018-01-16 14:50:57 -0800113 script-path: '{jenkins-path}/JenkinsfileTrigger'
114 scm:
115 - git:
116 url: '$GIT_URL/$GERRIT_PROJECT'
117 credentials-id: '{jenkins-ssh-credential}'
118 branches:
119 - 'master'
120
121- job-template:
122 name: '{type}-pipeline-{version}'
123
Devin Lim49200ec2018-01-19 16:17:41 -0800124 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800125
126 parameters:
127
128 - string:
129 name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE
130 default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE'
131 description: |
132 <a href=https://onos-jenkins.onlab.us/job/ALL_Pipeline_Trigger/>ALL_Pipeline_Trigger</a> triggers this pipeline automatically.
133
134 - lf-infra-parameters:
135 project: 'OnosSystemTest'
136 branch: 'master'
137 stream: 'master'
138 lftools-version: '<1.0.0'
139
140 concurrent: false
141
142 pipeline-scm:
143 script-path: '{jenkins-path}/{type}JenkinsFile'
144 scm:
145 - git:
146 url: '$GIT_URL/$GERRIT_PROJECT'
147 credentials-id: '{jenkins-ssh-credential}'
148 branches:
149 - 'master'
150
151- job-template:
152 name: 'manual-graph-generator-SCPF'
153
154 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800155 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800156
157 parameters:
158
Devin Lim7a877872018-01-16 14:50:57 -0800159 - choice:
160 name: ONOSbranch
161 choices:
162 - 'master'
163 - 'onos-1.12'
164 - 'onos-1.11'
165 description: "Possible branches (may vary depending on test)"
166
167 - bool:
168 name: isOldFlows
169 default: false
170 description: 'Check if it is using the old flow rules'
171
172 - text:
173 name: Test
174 default: '{SCPF}'
175 description: 'List of the tests to generate.'
176
177 - lf-infra-parameters:
178 project: 'OnosSystemTest'
179 branch: 'master'
180 stream: 'master'
181 lftools-version: '<1.0.0'
182
183 pipeline-scm:
184 script-path: '{jenkins-path}/SCPF_Graph_Generator'
185 scm:
186 - git:
187 url: '$GIT_URL/$GERRIT_PROJECT'
188 credentials-id: '{jenkins-ssh-credential}'
189 branches:
190 - 'master'
191
192- job-template:
193 name: 'manual-graph-generator-trend'
194
195 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800196 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800197
198 parameters:
199
200 - choice:
201 name: ONOSbranch
202 choices:
203 - 'master'
204 - 'onos-1.12'
205 - 'onos-1.11'
206 description: "Possible branches (may vary depending on test)"
207
208 - choice:
209 name: NodeCluster
210 choices:
211 - VM
212 - BM
213 description: |
214 Node cluster where the test graphs in the list are located.
215 List of the tests will be refreshed depends on the node cluster.
216
217 - text:
218 name: Test
219 default: |
220 VM:
221 {FUNC}
222 {HA}
223 BM:
224 {USECASE}
225 description: 'List of the tests to generate.'
226
227 - string:
228 name: Builds
Devin Lim49200ec2018-01-19 16:17:41 -0800229 deafult: '20'
Devin Lim7a877872018-01-16 14:50:57 -0800230 description: 'Builds to show in the graph.'
231
232 - lf-infra-parameters:
233 project: 'OnosSystemTest'
234 branch: 'master'
235 stream: 'master'
236 lftools-version: '<1.0.0'
237
238 pipeline-scm:
239 script-path: '{jenkins-path}/Trend_Graph_Generator'
Devin Lim38d14062018-01-11 17:08:00 -0800240 scm:
241 - git:
242 url: '$GIT_URL/$GERRIT_PROJECT'
243 credentials-id: '{jenkins-ssh-credential}'
244 branches:
Devin Lim74cf6cb2018-01-12 15:03:34 -0800245 - 'master'
Devin Lim38d14062018-01-11 17:08:00 -0800246
247- project:
248 name: all-pipeline-trigger
249 project-name: all-pipeline-trigger
Devin Lim7a877872018-01-16 14:50:57 -0800250
Devin Lim49200ec2018-01-19 16:17:41 -0800251 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800252
Devin Lim38d14062018-01-11 17:08:00 -0800253 # can we use this node or master ?
254 build-node: 'ubuntu16.04-basebuild-8c-15g'
255 jobs:
256 - 'all-pipeline-trigger'
Devin Lim7a877872018-01-16 14:50:57 -0800257
258- project:
259 name: build-pipeline
260
261 <<: *job-type-plate
262
263 project-name: '{type}-pipeline'
264
Devin Lim49200ec2018-01-19 16:17:41 -0800265 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800266 <<: *job-version-plate
267
268 jobs:
269 - '{type}-pipeline-{version}'
270
271- project:
272 name: graph-generator
273
274 project-name: 'graph-generator'
275
Devin Lim49200ec2018-01-19 16:17:41 -0800276 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800277
278 jobs:
279 - 'manual-graph-generator-SCPF'
280 - 'manual-graph-generator-trend'