blob: adf5b4e0ebb7bab31da96a16f6b507ceab4b3a0c [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'
Devin Lim323c9872018-01-30 19:57:58 -080046 - 'SR'
Devin Lim7a877872018-01-16 14:50:57 -080047
Devin Lim74cf6cb2018-01-12 15:03:34 -080048- job-template:
Devin Lim38d14062018-01-11 17:08:00 -080049 name: all-pipeline-trigger
50
51 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -080052 <<: *test-pipe-job-boiler-plate
Devin Lim38d14062018-01-11 17:08:00 -080053
Devin Lim7a877872018-01-16 14:50:57 -080054 parameters:
Devin Lim74cf6cb2018-01-12 15:03:34 -080055
Devin Lim38d14062018-01-11 17:08:00 -080056 - bool:
57 name: manual_run
58 default: false
59 description: |
60 Check this option if you are manually running this job (you most likely are).
61 You must specify which tests to run in the text field below.
62
63 - bool:
64 name: PostResult
65 default: false
66 description: |
67 Check this option if you want to update the results on the wiki.
68 When manually run, this will update the wiki pages corresponding to the tests that were run.
69 This option will always be selected during nightly builds.
70
71 - bool:
72 name: isOldFlow
Devin Lim491d92b2018-02-09 10:41:45 -080073 default: true
Devin Lim38d14062018-01-11 17:08:00 -080074 description: |
75 Check this option if you prefer to run the old flow rule over the new one.
76 * This only applies to SCPF tests.
77
78 - choice:
79 name: ONOSVersion
80 choices:
81 - 'master'
82 - '1.12'
83 - '1.11'
84 description: "ONOS and TestON versions to run on."
85
86 - string:
87 name: ONOSJVMHeap
Devin Lim7a877872018-01-16 14:50:57 -080088 default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G}}\""
Devin Lim38d14062018-01-11 17:08:00 -080089 description: 'ONOS cell JVM heap size setting.'
90
Devin Lim74cf6cb2018-01-12 15:03:34 -080091 - text:
Devin Lim38d14062018-01-11 17:08:00 -080092 name: Tests
Devin Lim7a877872018-01-16 14:50:57 -080093 default: |
94 {FUNC}
95 {HA}
96 {SCPF}
97 {USECASE}
Devin Lim38d14062018-01-11 17:08:00 -080098 description: 'Specify the tests you want to run, if manual_run is selected.'
99
Devin Lim7a877872018-01-16 14:50:57 -0800100 - lf-infra-parameters:
101 project: 'OnosSystemTest'
102 branch: 'master'
103 stream: 'master'
104 lftools-version: '<1.0.0'
105
Devin Lim38d14062018-01-11 17:08:00 -0800106 concurrent: false
107
Devin Lim9c8fa3e2018-01-24 16:47:15 -0800108# triggers:
109# - timed: |
110# 30 19 * * 1,2,3,4,5
111# 30 11 * * 6,7
Devin Lim38d14062018-01-11 17:08:00 -0800112
113 pipeline-scm:
Devin Lim7a877872018-01-16 14:50:57 -0800114 script-path: '{jenkins-path}/JenkinsfileTrigger'
115 scm:
116 - git:
117 url: '$GIT_URL/$GERRIT_PROJECT'
118 credentials-id: '{jenkins-ssh-credential}'
119 branches:
120 - 'master'
121
122- job-template:
123 name: '{type}-pipeline-{version}'
124
Devin Lim49200ec2018-01-19 16:17:41 -0800125 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800126
127 parameters:
128
129 - string:
130 name: TRIGGER_ONLY_WHEN_PREVIOUS_JOB_WAS_BUILT_HERE
131 default: 'DO_NOT_MANUALLY_TRIGGER_A_BUILD_HERE'
132 description: |
133 <a href=https://onos-jenkins.onlab.us/job/ALL_Pipeline_Trigger/>ALL_Pipeline_Trigger</a> triggers this pipeline automatically.
134
135 - lf-infra-parameters:
136 project: 'OnosSystemTest'
137 branch: 'master'
138 stream: 'master'
139 lftools-version: '<1.0.0'
140
141 concurrent: false
142
143 pipeline-scm:
144 script-path: '{jenkins-path}/{type}JenkinsFile'
145 scm:
146 - git:
147 url: '$GIT_URL/$GERRIT_PROJECT'
148 credentials-id: '{jenkins-ssh-credential}'
149 branches:
150 - 'master'
151
152- job-template:
153 name: 'manual-graph-generator-SCPF'
154
155 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800156 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800157
158 parameters:
159
Devin Lim7a877872018-01-16 14:50:57 -0800160 - choice:
161 name: ONOSbranch
162 choices:
163 - 'master'
164 - 'onos-1.12'
165 - 'onos-1.11'
166 description: "Possible branches (may vary depending on test)"
167
168 - bool:
169 name: isOldFlows
170 default: false
171 description: 'Check if it is using the old flow rules'
172
173 - text:
174 name: Test
175 default: '{SCPF}'
176 description: 'List of the tests to generate.'
177
178 - lf-infra-parameters:
179 project: 'OnosSystemTest'
180 branch: 'master'
181 stream: 'master'
182 lftools-version: '<1.0.0'
183
184 pipeline-scm:
185 script-path: '{jenkins-path}/SCPF_Graph_Generator'
186 scm:
187 - git:
188 url: '$GIT_URL/$GERRIT_PROJECT'
189 credentials-id: '{jenkins-ssh-credential}'
190 branches:
191 - 'master'
192
193- job-template:
194 name: 'manual-graph-generator-trend'
195
196 <<: *var-init-boiler-plate
Devin Lim49200ec2018-01-19 16:17:41 -0800197 <<: *test-pipe-job-boiler-plate
Devin Lim7a877872018-01-16 14:50:57 -0800198
199 parameters:
200
201 - choice:
202 name: ONOSbranch
203 choices:
204 - 'master'
205 - 'onos-1.12'
206 - 'onos-1.11'
207 description: "Possible branches (may vary depending on test)"
208
209 - choice:
210 name: NodeCluster
211 choices:
212 - VM
213 - BM
214 description: |
215 Node cluster where the test graphs in the list are located.
216 List of the tests will be refreshed depends on the node cluster.
217
218 - text:
219 name: Test
220 default: |
221 VM:
222 {FUNC}
223 {HA}
224 BM:
225 {USECASE}
226 description: 'List of the tests to generate.'
227
228 - string:
229 name: Builds
Devin Lim49200ec2018-01-19 16:17:41 -0800230 deafult: '20'
Devin Lim7a877872018-01-16 14:50:57 -0800231 description: 'Builds to show in the graph.'
232
233 - lf-infra-parameters:
234 project: 'OnosSystemTest'
235 branch: 'master'
236 stream: 'master'
237 lftools-version: '<1.0.0'
238
239 pipeline-scm:
240 script-path: '{jenkins-path}/Trend_Graph_Generator'
Devin Lim38d14062018-01-11 17:08:00 -0800241 scm:
242 - git:
243 url: '$GIT_URL/$GERRIT_PROJECT'
244 credentials-id: '{jenkins-ssh-credential}'
245 branches:
Devin Lim74cf6cb2018-01-12 15:03:34 -0800246 - 'master'
Devin Lim38d14062018-01-11 17:08:00 -0800247
248- project:
249 name: all-pipeline-trigger
250 project-name: all-pipeline-trigger
Devin Lim7a877872018-01-16 14:50:57 -0800251
Devin Lim49200ec2018-01-19 16:17:41 -0800252 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800253
Devin Lim38d14062018-01-11 17:08:00 -0800254 # can we use this node or master ?
255 build-node: 'ubuntu16.04-basebuild-8c-15g'
256 jobs:
257 - 'all-pipeline-trigger'
Devin Lim7a877872018-01-16 14:50:57 -0800258
259- project:
260 name: build-pipeline
261
262 <<: *job-type-plate
263
264 project-name: '{type}-pipeline'
265
Devin Lim49200ec2018-01-19 16:17:41 -0800266 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800267 <<: *job-version-plate
268
269 jobs:
270 - '{type}-pipeline-{version}'
271
272- project:
273 name: graph-generator
274
275 project-name: 'graph-generator'
276
Devin Lim49200ec2018-01-19 16:17:41 -0800277 <<: *test-pipe-init-procedure-plate
Devin Lim7a877872018-01-16 14:50:57 -0800278
279 jobs:
280 - 'manual-graph-generator-SCPF'
281 - 'manual-graph-generator-trend'