blob: f7b06a846f247c26cfe4d8d5b2f7b0c438cb4876 [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
13- job-boiler-plate: &job-boiler-plate
14 name: job-boiler-plate
15
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 Lim7a877872018-01-16 14:50:57 -080025- init-procedure-plate: &init-procedure-plate
26 name: init-procedure-plate
27 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
51 <<: *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
107 triggers:
108 - timed: |
109 30 19 * * 1,2,3,4,5
110 30 11 * * 6,7
111
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
124 <<: *job-boiler-plate
125
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
155 <<: *job-boiler-plate
156
157 parameters:
158
159 - lf-infra-parameters:
160 project: 'OnosSystemTest'
161 branch: 'master'
162 stream: 'master'
163 lftools-version: '<1.0.0'
164
165 - choice:
166 name: ONOSbranch
167 choices:
168 - 'master'
169 - 'onos-1.12'
170 - 'onos-1.11'
171 description: "Possible branches (may vary depending on test)"
172
173 - bool:
174 name: isOldFlows
175 default: false
176 description: 'Check if it is using the old flow rules'
177
178 - text:
179 name: Test
180 default: '{SCPF}'
181 description: 'List of the tests to generate.'
182
183 - lf-infra-parameters:
184 project: 'OnosSystemTest'
185 branch: 'master'
186 stream: 'master'
187 lftools-version: '<1.0.0'
188
189 pipeline-scm:
190 script-path: '{jenkins-path}/SCPF_Graph_Generator'
191 scm:
192 - git:
193 url: '$GIT_URL/$GERRIT_PROJECT'
194 credentials-id: '{jenkins-ssh-credential}'
195 branches:
196 - 'master'
197
198- job-template:
199 name: 'manual-graph-generator-trend'
200
201 <<: *var-init-boiler-plate
202 <<: *job-boiler-plate
203
204 parameters:
205
206 - choice:
207 name: ONOSbranch
208 choices:
209 - 'master'
210 - 'onos-1.12'
211 - 'onos-1.11'
212 description: "Possible branches (may vary depending on test)"
213
214 - choice:
215 name: NodeCluster
216 choices:
217 - VM
218 - BM
219 description: |
220 Node cluster where the test graphs in the list are located.
221 List of the tests will be refreshed depends on the node cluster.
222
223 - text:
224 name: Test
225 default: |
226 VM:
227 {FUNC}
228 {HA}
229 BM:
230 {USECASE}
231 description: 'List of the tests to generate.'
232
233 - string:
234 name: Builds
235 deafult: 20
236 description: 'Builds to show in the graph.'
237
238 - lf-infra-parameters:
239 project: 'OnosSystemTest'
240 branch: 'master'
241 stream: 'master'
242 lftools-version: '<1.0.0'
243
244 pipeline-scm:
245 script-path: '{jenkins-path}/Trend_Graph_Generator'
Devin Lim38d14062018-01-11 17:08:00 -0800246 scm:
247 - git:
248 url: '$GIT_URL/$GERRIT_PROJECT'
249 credentials-id: '{jenkins-ssh-credential}'
250 branches:
Devin Lim74cf6cb2018-01-12 15:03:34 -0800251 - 'master'
Devin Lim38d14062018-01-11 17:08:00 -0800252
253- project:
254 name: all-pipeline-trigger
255 project-name: all-pipeline-trigger
Devin Lim7a877872018-01-16 14:50:57 -0800256
257 <<: *init-procedure-plate
258
Devin Lim38d14062018-01-11 17:08:00 -0800259 # can we use this node or master ?
260 build-node: 'ubuntu16.04-basebuild-8c-15g'
261 jobs:
262 - 'all-pipeline-trigger'
Devin Lim7a877872018-01-16 14:50:57 -0800263
264- project:
265 name: build-pipeline
266
267 <<: *job-type-plate
268
269 project-name: '{type}-pipeline'
270
271 <<: *init-procedure-plate
272 <<: *job-version-plate
273
274 jobs:
275 - '{type}-pipeline-{version}'
276
277- project:
278 name: graph-generator
279
280 project-name: 'graph-generator'
281
282 <<: *init-procedure-plate
283
284 jobs:
285 - 'manual-graph-generator-SCPF'
286 - 'manual-graph-generator-trend'