blob: 32b5190139333e692801286e9505c384abcb1145 [file] [log] [blame]
Matteo Scandolo9973c652020-08-07 15:23:35 -07001---
2# list of parameters for the VOLTHA Jobs,
3# used as anchor so that can be shared across multiple jobs
4# to use in a job: `parameters: *voltha-build-job-parameters`
5- voltha-build-job-parameters: &voltha-build-job-parameters
6 name: voltha-build-job-parameters
7 parameters:
8 - string:
9 name: buildNode
10 default: '{build-node}'
11 description: 'Name of the Jenkins executor node to run the job on'
12
13 - string:
14 name: TestNodeName
15 default: '{build-node}'
16 description: 'DEPRECATED - use buildNode instead'
17
18 - string:
19 name: cordRepoUrl
20 default: '{gerrit-server-url}'
21 description: 'The URL of the CORD Project repository'
22
23 - string:
24 name: configBaseDir
25 default: 'pod-configs'
26 description: 'The directory inside the POD configs repository'
27
28 - string:
29 name: configDeploymentDir
30 default: 'deployment-configs'
31 description: 'The deployment configs folder'
32
33 - string:
34 name: configKubernetesDir
35 default: 'kubernetes-configs'
36 description: 'The kubernetes config folder'
37
38 - string:
39 name: configToscaDir
40 default: 'tosca-configs'
41 description: 'The tosca config folder'
42
43 - string:
44 name: configFileName
45 default: '{config-pod}'
46 description: 'The config file'
47
48 - string:
49 name: profile
50 default: '{profile}'
51 description: 'Technology Profile pushed to the ETCD'
52
53 - string:
54 name: helmRepoUrl
55 default: 'https://charts.opencord.org'
56 description: 'URL where helm-charts are published'
57
58 - string:
59 name: branch
60 default: '{branch}'
61
62 - string:
63 name: notificationEmail
64 default: 'you@opennetworking.org, suchitra@opennetworking.org'
65 description: ''
66
67 - string:
68 name: workFlow
69 default: '{work-flow}'
70 description: 'Installs and uses the specified work flow on the POD'
71
72 - string:
73 name: NumOfOpenOnu
74 default: '{num-of-openonu}'
75 description: 'Installs the specified Number of OpenOnu Adapters'
76
77 - string:
78 name: NumOfOnos
79 default: '{num-of-onos}'
80 description: 'Installs the specified Number of ONOS instances'
81
82 - string:
83 name: NumOfAtomix
84 default: '{num-of-atomix}'
85 description: 'Installs the specified Number of Atomix Instances'
86
87 - bool:
88 name: configurePod
89 default: true
90 description: "Configure POD via TOSCA post build"
91
92 - bool:
93 name: reinstallOlt
94 default: '{reinstall-olt}'
95 description: "Re-install olt software bringing up CORD"
96
97 - bool:
98 name: withKind
99 default: '{with-kind}'
100 description: "The pods uses kind and a physical fabric thus port forward to the management is needed"
101
102 - string:
103 name: VolthaEtcdPort
104 default: '{VolthaEtcdPort}'
105 description: 'Localhost port that is forwarded to VOLTHA etcd'
106
107 - bool:
108 name: inBandManagement
109 default: '{in-band-management}'
110 description: 'Indicates whether POD is configured for in band management'
111
112# defualt properties for the VOLTHA scale jobs
113- voltha-pipe-job-boiler-plate: &voltha-pipe-job-boiler-plate
114 name: voltha-pipe-job-boiler-plate
115
116 project-type: pipeline
117
118 sandbox: true
119
120 properties:
121 - cord-infra-properties:
122 build-days-to-keep: 30
123 artifact-num-to-keep: 15
124
125# VOLTHA Build Jobs
126- job-template:
127 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
128 id: build_voltha_pod_release_timer
Suchitra Vemuri26fe2432020-09-14 19:51:32 -0700129 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700130 description: |
131 Manual Build on POD {config-pod}, using {Jenkinsfile} in {gerrit-server-url}/voltha-system-tests' <br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700132 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700133 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
134 Copyright (c) 2018 Open Networking Foundation (ONF)
135
136 <<: *voltha-pipe-job-boiler-plate
137 VolthaEtcdPort: '2379'
138
139 <<: *voltha-build-job-parameters
140
141 concurrent: true
142
143 pipeline-scm:
144 script-path: '{Jenkinsfile}'
145 scm:
146 - git:
147 url: '{gerrit-server-url}/voltha-system-tests'
148 branches:
149 - '{branch}'
150
151 triggers:
152 - timed: |
153 TZ=America/Los_Angeles
154 H {time} * * *
155
156- job-template:
157 name: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
158 id: build_voltha_pod_release_dependent
159 description: |
160 Automatic Build on POD {config-pod}, using {Jenkinsfile} in {gerrit-server-url}/voltha-system-tests' <br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700161 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700162 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
163 This job is triggered upon completion of a dependent _test job <br />
164 Copyright (c) 2020 Open Networking Foundation (ONF)
165
166 <<: *voltha-pipe-job-boiler-plate
167 VolthaEtcdPort: '2379'
168
169 <<: *voltha-build-job-parameters
170
171 concurrent: true
172
173 pipeline-scm:
174 script-path: '{Jenkinsfile}'
175 scm:
176 - git:
177 url: '{gerrit-server-url}/voltha-system-tests'
178 branches:
179 - '{branch}'
180 triggers:
181 - reverse:
182 jobs: '{trigger-after}'
183 result: 'success'
184
185# VOLTHA Test Job
186# This job is automatically triggered after a build job has successfully completed
187- job-template:
188 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
189 id: build_voltha_pod_test
190 description: |
191 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700192 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700193 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
194 Copyright (c) 2017 Open Networking Foundation (ONF)
195
196 <<: *voltha-pipe-job-boiler-plate
197 pipeline-script: 'voltha-physical-functional-tests.groovy'
198 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
199 manifest-branch: 'master'
200
201 parameters:
202 - string:
203 name: buildNode
204 default: '{build-node}'
205 description: 'Name of the Jenkins executor node to run the job on'
206
207 - string:
208 name: TestNodeName
209 default: '{build-node}'
210 description: 'DEPRECATED - use buildNode instead'
211
212 - string:
213 name: cordRepoUrl
214 default: '{gerrit-server-url}'
215 description: 'The URL of the CORD Project repository'
216
217 - string:
218 name: configBaseDir
219 default: 'pod-configs'
220 description: 'The directory inside the POD configs repository'
221
222 - string:
223 name: configDeploymentDir
224 default: 'deployment-configs'
225 description: 'The deployment configs folder'
226
227 - string:
228 name: configKubernetesDir
229 default: 'kubernetes-configs'
230 description: 'The kubernetes config folder'
231
232 - string:
233 name: configToscaDir
234 default: 'tosca-configs'
235 description: 'The tosca config folder'
236
237 - string:
238 name: configFileName
239 default: '{config-pod}'
240 description: 'The config file'
241
242 - string:
243 name: profile
244 default: '{profile}'
245 description: 'Technology Profile pushed to the ETCD'
246
247 - string:
248 name: branch
249 default: '{branch}'
250 description: 'Branch of the test libraries to check out'
251
252 - string:
253 name: manifestUrl
254 default: '{manifest-url}'
255 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
256
257 - string:
258 name: manifestBranch
259 default: '{manifest-branch}'
260 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
261
262 - string:
263 name: workFlow
264 default: '{work-flow}'
265 description: 'Installs and uses the specified work flow on the POD'
266
267 - bool:
268 name: powerSwitch
269 default: '{power-switch}'
270 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
271
272 concurrent: true
273
274 project-type: pipeline
275 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
276
277 triggers:
278 - reverse:
279 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
280 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700281
282
283# VOLTHA Test Job
284# This job is automatically triggered after a build job has successfully completed
285- job-template:
286 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
287 id: build_voltha_pod_soak_test
288 description: |
289 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
290 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
291 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
292 Copyright (c) 2017 Open Networking Foundation (ONF)
293
294 <<: *voltha-pipe-job-boiler-plate
295 pipeline-script: 'voltha-physical-functional-tests.groovy'
296 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
297 manifest-branch: 'master'
298
299 parameters:
300 - string:
301 name: buildNode
302 default: '{build-node}'
303 description: 'Name of the Jenkins executor node to run the job on'
304
305 - string:
306 name: TestNodeName
307 default: '{build-node}'
308 description: 'DEPRECATED - use buildNode instead'
309
310 - string:
311 name: cordRepoUrl
312 default: '{gerrit-server-url}'
313 description: 'The URL of the CORD Project repository'
314
315 - string:
316 name: configBaseDir
317 default: 'pod-configs'
318 description: 'The directory inside the POD configs repository'
319
320 - string:
321 name: configDeploymentDir
322 default: 'deployment-configs'
323 description: 'The deployment configs folder'
324
325 - string:
326 name: configKubernetesDir
327 default: 'kubernetes-configs'
328 description: 'The kubernetes config folder'
329
330 - string:
331 name: configToscaDir
332 default: 'tosca-configs'
333 description: 'The tosca config folder'
334
335 - string:
336 name: configFileName
337 default: '{config-pod}'
338 description: 'The config file'
339
340 - string:
341 name: profile
342 default: '{profile}'
343 description: 'Technology Profile pushed to the ETCD'
344
345 - string:
346 name: branch
347 default: '{branch}'
348 description: 'Branch of the test libraries to check out'
349
350 - string:
351 name: manifestUrl
352 default: '{manifest-url}'
353 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
354
355 - string:
356 name: manifestBranch
357 default: '{manifest-branch}'
358 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
359
360 - string:
361 name: workFlow
362 default: '{work-flow}'
363 description: 'Installs and uses the specified work flow on the POD'
364
365 - bool:
366 name: powerSwitch
367 default: '{power-switch}'
368 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
369
Suchitra Vemurie6625222020-09-01 17:12:56 -0700370 - string:
371 name: testType
372 default: '{test-type}'
373 description: 'Passes the required test category to the groovy script'
374
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700375 concurrent: true
376
377 project-type: pipeline
378 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
379
380 triggers:
381 - timed: |
382 TZ=America/Los_Angeles
383 {time-trigger}