blob: 999ddc5179e5499f84cba34dafdb73d76b51e59d [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
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700159 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700160 description: |
161 Automatic Build on POD {config-pod}, using {Jenkinsfile} in {gerrit-server-url}/voltha-system-tests' <br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700162 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700163 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
164 This job is triggered upon completion of a dependent _test job <br />
165 Copyright (c) 2020 Open Networking Foundation (ONF)
166
167 <<: *voltha-pipe-job-boiler-plate
168 VolthaEtcdPort: '2379'
169
170 <<: *voltha-build-job-parameters
171
172 concurrent: true
173
174 pipeline-scm:
175 script-path: '{Jenkinsfile}'
176 scm:
177 - git:
178 url: '{gerrit-server-url}/voltha-system-tests'
179 branches:
180 - '{branch}'
181 triggers:
182 - reverse:
183 jobs: '{trigger-after}'
184 result: 'success'
185
186# VOLTHA Test Job
187# This job is automatically triggered after a build job has successfully completed
188- job-template:
189 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
190 id: build_voltha_pod_test
Matteo Scandolo38a00b02020-09-15 13:27:06 -0700191 disabled: '{disable-job}'
Matteo Scandolo9973c652020-08-07 15:23:35 -0700192 description: |
193 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
Matteo Scandolo16090cd2020-08-12 15:42:42 -0700194 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
Matteo Scandolo9973c652020-08-07 15:23:35 -0700195 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
196 Copyright (c) 2017 Open Networking Foundation (ONF)
197
198 <<: *voltha-pipe-job-boiler-plate
199 pipeline-script: 'voltha-physical-functional-tests.groovy'
200 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
201 manifest-branch: 'master'
202
203 parameters:
204 - string:
205 name: buildNode
206 default: '{build-node}'
207 description: 'Name of the Jenkins executor node to run the job on'
208
209 - string:
210 name: TestNodeName
211 default: '{build-node}'
212 description: 'DEPRECATED - use buildNode instead'
213
214 - string:
215 name: cordRepoUrl
216 default: '{gerrit-server-url}'
217 description: 'The URL of the CORD Project repository'
218
219 - string:
220 name: configBaseDir
221 default: 'pod-configs'
222 description: 'The directory inside the POD configs repository'
223
224 - string:
225 name: configDeploymentDir
226 default: 'deployment-configs'
227 description: 'The deployment configs folder'
228
229 - string:
230 name: configKubernetesDir
231 default: 'kubernetes-configs'
232 description: 'The kubernetes config folder'
233
234 - string:
235 name: configToscaDir
236 default: 'tosca-configs'
237 description: 'The tosca config folder'
238
239 - string:
240 name: configFileName
241 default: '{config-pod}'
242 description: 'The config file'
243
244 - string:
245 name: profile
246 default: '{profile}'
247 description: 'Technology Profile pushed to the ETCD'
248
249 - string:
250 name: branch
251 default: '{branch}'
252 description: 'Branch of the test libraries to check out'
253
254 - string:
255 name: manifestUrl
256 default: '{manifest-url}'
257 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
258
259 - string:
260 name: manifestBranch
261 default: '{manifest-branch}'
262 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
263
264 - string:
265 name: workFlow
266 default: '{work-flow}'
267 description: 'Installs and uses the specified work flow on the POD'
268
269 - bool:
270 name: powerSwitch
271 default: '{power-switch}'
272 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
273
274 concurrent: true
275
276 project-type: pipeline
277 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
278
279 triggers:
280 - reverse:
281 jobs: 'build_{config-pod}_{profile}{name-extension}_voltha_{release}'
282 result: 'success'
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700283
284
285# VOLTHA Test Job
286# This job is automatically triggered after a build job has successfully completed
287- job-template:
288 name: 'build_{config-pod}_{profile}_voltha{name-extension}_{release}_test'
289 id: build_voltha_pod_soak_test
290 description: |
291 Post Tests on {config-pod} triggered by build_{config-pod}_{branch}, using {pipeline-script}<br /><br />
292 Created from job-template {id} from ci-management/jjb/voltha-test/voltha-nightly-jobs.yaml <br />
293 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
294 Copyright (c) 2017 Open Networking Foundation (ONF)
295
296 <<: *voltha-pipe-job-boiler-plate
297 pipeline-script: 'voltha-physical-functional-tests.groovy'
298 manifest-url: 'https://gerrit.opencord.org/voltha-test-manifest.git'
299 manifest-branch: 'master'
300
301 parameters:
302 - string:
303 name: buildNode
304 default: '{build-node}'
305 description: 'Name of the Jenkins executor node to run the job on'
306
307 - string:
308 name: TestNodeName
309 default: '{build-node}'
310 description: 'DEPRECATED - use buildNode instead'
311
312 - string:
313 name: cordRepoUrl
314 default: '{gerrit-server-url}'
315 description: 'The URL of the CORD Project repository'
316
317 - string:
318 name: configBaseDir
319 default: 'pod-configs'
320 description: 'The directory inside the POD configs repository'
321
322 - string:
323 name: configDeploymentDir
324 default: 'deployment-configs'
325 description: 'The deployment configs folder'
326
327 - string:
328 name: configKubernetesDir
329 default: 'kubernetes-configs'
330 description: 'The kubernetes config folder'
331
332 - string:
333 name: configToscaDir
334 default: 'tosca-configs'
335 description: 'The tosca config folder'
336
337 - string:
338 name: configFileName
339 default: '{config-pod}'
340 description: 'The config file'
341
342 - string:
343 name: profile
344 default: '{profile}'
345 description: 'Technology Profile pushed to the ETCD'
346
347 - string:
348 name: branch
349 default: '{branch}'
350 description: 'Branch of the test libraries to check out'
351
352 - string:
353 name: manifestUrl
354 default: '{manifest-url}'
355 description: 'Repo manifest URL for code checkout (so we can display changes in Jenkins)'
356
357 - string:
358 name: manifestBranch
359 default: '{manifest-branch}'
360 description: 'Repo manifest branch for code checkout (so we can display changes in Jenkins)'
361
362 - string:
363 name: workFlow
364 default: '{work-flow}'
365 description: 'Installs and uses the specified work flow on the POD'
366
367 - bool:
368 name: powerSwitch
369 default: '{power-switch}'
370 description: "Indicate whether POD has power switch to reboot ONUs/OLT remotely"
371
Suchitra Vemurie6625222020-09-01 17:12:56 -0700372 - string:
373 name: testType
374 default: '{test-type}'
375 description: 'Passes the required test category to the groovy script'
376
Suchitra Vemuri0921c752020-08-31 22:58:50 -0700377 concurrent: true
378
379 project-type: pipeline
380 dsl: !include-raw-escape: ../pipeline/{pipeline-script}
381
382 triggers:
383 - timed: |
384 TZ=America/Los_Angeles
385 {time-trigger}