blob: 6c9b6443f8c668821265765d9079d6a651fb6ce1 [file] [log] [blame]
Kailashbe4dc092019-01-23 09:22:17 -08001---
Zack Williams73c3cf42019-02-25 23:43:22 -07002# omec-ci jobs
Zack Williams5d81f812019-02-27 14:37:09 -07003# Uses github pull request builder to trigger and Jenkinsfiles from this repo
4# https://github.com/omec-project/omec-project-ci
Kailashbe4dc092019-01-23 09:22:17 -08005
Zack Williams320b3142019-03-14 23:10:01 -07006# generic OMEC test-case jobs, shared by other projects and triggered within pipelines
7- project:
8 name: omec
Zack Williamsb3292082019-10-11 17:15:18 -07009 build-node: 'intel-102'
You Wang3111c952020-06-12 17:53:04 -070010 github-organization: 'omec-project'
Zack Williams320b3142019-03-14 23:10:01 -070011
12 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
13 github_pr_org_list:
14 - 'omec-project'
15
16 jobs:
17 - 'omec-tc1'
18 - 'omec-tc2'
You Wang3cc17af2020-06-12 14:56:10 -070019 - 'omec-deploy':
20 pod: 'dev'
21 build-node: 'omec-ci'
22 cp-context: 'dev-central-gcp'
23 dp-context: 'dev-edge-onf-menlo'
24 central-config: 'gcp-dev'
25 edge-config: 'menlo-dev'
26 - 'omec-ng40-test':
27 pod: 'dev'
28 build-node: 'ng40-host-node'
29 ng40-vm: 'ng40@192.168.122.101'
You Wangc8955b12020-06-19 14:22:12 -070030 - 'omec-archive-artifacts':
31 pod: 'dev'
32 build-node: 'omec-ci'
33 cp-context: 'dev-central-gcp'
34 dp-context: 'dev-edge-onf-menlo'
You Wang5c15a7a2020-04-02 11:24:33 -070035 - 'omec-postmerge':
36 project: '{name}'
You Wang40239452020-06-11 20:17:15 -070037 build-node: 'omec-ci'
You Wangb8bfa932020-05-29 16:22:15 -070038 c3po-branch-name: 'master'
You Wangb242ae42020-04-15 12:32:32 -070039 ngic-branch-name: 'central-cp-multi-upfs'
You Wang40239452020-06-11 20:17:15 -070040 nucleus-branch-name: 'master'
You Wange1cbba22020-06-15 21:16:14 -070041 upf-branch-name: 'master'
You Wang5c15a7a2020-04-02 11:24:33 -070042 pipeline-file: 'omec-postmerge.groovy'
Zack Williams320b3142019-03-14 23:10:01 -070043
Zack Williams73c3cf42019-02-25 23:43:22 -070044# for ngic-rtc
Kailashbe4dc092019-01-23 09:22:17 -080045- project:
Zack Williams73c3cf42019-02-25 23:43:22 -070046 name: ngic-rtc
47 project: '{name}'
Kailashbe4dc092019-01-23 09:22:17 -080048
Zack Williamsb3292082019-10-11 17:15:18 -070049 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070050
Zack Williams1e325b22019-07-24 17:52:57 -070051 github-organization: 'omec-project'
52
Zack Williams5d81f812019-02-27 14:37:09 -070053 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
54 github_pr_org_list:
55 - 'omec-project'
56
Kailashbe4dc092019-01-23 09:22:17 -080057 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070058 - 'omec-combined':
59 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang81cc00c2020-06-15 15:32:53 -070060 mme-repo: 'Nucleus'
Zack Williams320b3142019-03-14 23:10:01 -070061 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070062 sub-project: '{name}'
You Wang4cba3612020-04-29 16:47:10 -070063 branch: 'central-cp-multi-upfs'
Zack Williams73c3cf42019-02-25 23:43:22 -070064 pipeline-file: 'Jenkinsfile-omec-install-ngic-rtc-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080065 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080066 pipeline-file: 'omec-fossa-scan.groovy'
67 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080068 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080069 pipeline-file: 'omec-reuse-scan.groovy'
70 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -070071 - 'docker-publish-github':
72 build-timeout: 30
73 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -070074 build-node: 'ubuntu16.04-basebuild-4c-8g'
You Wang3cc17af2020-06-12 14:56:10 -070075 - 'omec-container'
Zack Williams73c3cf42019-02-25 23:43:22 -070076
Zack Williamse306e572019-04-18 07:12:46 -070077# for c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070078- project:
Zack Williamse306e572019-04-18 07:12:46 -070079 name: c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070080 project: '{name}'
81
Zack Williamsb3292082019-10-11 17:15:18 -070082 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070083
Zack Williams1e325b22019-07-24 17:52:57 -070084 github-organization: 'omec-project'
85
Zack Williams5d81f812019-02-27 14:37:09 -070086 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
87 github_pr_org_list:
88 - 'omec-project'
89
Zack Williams73c3cf42019-02-25 23:43:22 -070090 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070091 - 'omec-combined':
92 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang81cc00c2020-06-15 15:32:53 -070093 mme-repo: 'Nucleus'
Zack Williams320b3142019-03-14 23:10:01 -070094 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070095 sub-project: 'c3po-sgx'
You Wang8addd4c2020-04-14 16:25:57 -070096 branch: 'master'
Zack Williams62021452019-04-15 13:23:46 -070097 pipeline-file: 'Jenkinsfile-omec-install-c3po-sgx-vnf.groovy'
Zack Williamse306e572019-04-18 07:12:46 -070098 - 'omec-install':
99 sub-project: 'c3po-hss'
You Wang8addd4c2020-04-14 16:25:57 -0700100 branch: 'master'
Zack Williamse306e572019-04-18 07:12:46 -0700101 pipeline-file: 'Jenkinsfile-omec-install-c3po-hss-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800102 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800103 pipeline-file: 'omec-fossa-scan.groovy'
104 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800105 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800106 pipeline-file: 'omec-reuse-scan.groovy'
107 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -0700108 - 'docker-publish-github':
109 build-timeout: 30
110 docker-repo: 'omecproject'
You Wang715d5fc2020-04-30 16:23:35 -0700111 build-node: 'ubuntu16.04-basebuild-8c-15g'
You Wang3cc17af2020-06-12 14:56:10 -0700112 - 'omec-container'
Zack Williams73c3cf42019-02-25 23:43:22 -0700113
114# for openmme
115- project:
116 name: openmme
117 project: '{name}'
118
Zack Williamsdf7f9d32019-11-05 07:40:20 -0700119 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -0700120
Zack Williams1e325b22019-07-24 17:52:57 -0700121 github-organization: 'omec-project'
122
Zack Williams5d81f812019-02-27 14:37:09 -0700123 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
124 github_pr_org_list:
125 - 'omec-project'
126
Zack Williams73c3cf42019-02-25 23:43:22 -0700127 jobs:
Zack Williams320b3142019-03-14 23:10:01 -0700128 - 'omec-combined':
129 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -0700130 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -0700131 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -0700132 sub-project: '{name}'
You Wanga1dcf252020-05-19 17:22:42 -0700133 branch: 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700134 pipeline-file: 'Jenkinsfile-omec-install-openmme-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800135 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800136 pipeline-file: 'omec-fossa-scan.groovy'
137 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800138 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800139 pipeline-file: 'omec-reuse-scan.groovy'
140 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -0700141 - 'docker-publish-github':
142 build-timeout: 30
143 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -0700144 build-node: 'ubuntu16.04-basebuild-1c-2g'
Zack Williams73c3cf42019-02-25 23:43:22 -0700145
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800146# for nucleus
147- project:
148 name: Nucleus
149 project: '{name}'
150
151 build-node: 'intel-102'
152
153 github-organization: 'omec-project'
154
155 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
156 github_pr_org_list:
157 - 'omec-project'
158
159 jobs:
You Wang83055442020-04-17 14:54:40 -0700160 - 'omec-combined':
161 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
162 mme-repo: 'Nucleus'
163 - 'omec-install':
164 sub-project: '{name}'
165 branch: 'master'
166 pipeline-file: 'Jenkinsfile-omec-install-Nucleus-vnf.groovy'
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800167 - 'omec-fossa':
168 pipeline-file: 'omec-fossa-scan.groovy'
169 build-node: 'omec-qa'
170 - 'omec-reuse':
171 pipeline-file: 'omec-reuse-scan.groovy'
172 build-node: 'omec-qa'
You Wangf5739552020-06-02 16:36:31 -0700173 - 'docker-publish-github':
174 build-timeout: 60
175 docker-repo: 'omecproject'
176 build-node: 'ubuntu16.04-basebuild-1c-2g'
You Wang3cc17af2020-06-12 14:56:10 -0700177 - 'omec-container'
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800178
Jeremy Ronquilloea6d6202020-03-04 10:27:35 -0800179# for freediameter
180- project:
181 name: freediameter
182 project: '{name}'
183
184 build-node: 'intel-102'
185
186 github-organization: 'omec-project'
187
188 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
189 github_pr_org_list:
190 - 'omec-project'
191
192 jobs:
193 - 'omec-fossa':
194 pipeline-file: 'omec-fossa-scan.groovy'
195 build-node: 'omec-qa'
196 - 'omec-reuse':
197 pipeline-file: 'omec-reuse-scan.groovy'
198 build-node: 'omec-qa'
199
Jeremy Ronquillocc302e12020-03-30 11:44:49 -0700200# for ignite
201- project:
202 name: ignite
203 project: '{name}'
204
205 build-node: 'intel-102'
206
207 github-organization: 'omec-project'
208
209 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
210 github_pr_org_list:
211 - 'omec-project'
212
213 jobs:
214 - 'omec-fossa':
215 pipeline-file: 'omec-fossa-scan.groovy'
216 build-node: 'omec-qa'
217 - 'omec-reuse':
218 pipeline-file: 'omec-reuse-scan.groovy'
219 build-node: 'omec-qa'
220
You Wangccc13492020-04-01 11:11:59 -0700221# for upf-epc
222- project:
223 name: upf-epc
224 project: '{name}'
225
226 github-organization: 'omec-project'
227
228 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
229 github_pr_org_list:
230 - 'omec-project'
231
232 jobs:
233 - 'omec-fossa':
234 pipeline-file: 'omec-fossa-scan.groovy'
235 build-node: 'omec-qa'
236 - 'omec-reuse':
237 pipeline-file: 'omec-reuse-scan.groovy'
238 build-node: 'omec-qa'
239 - 'docker-publish-github':
240 build-timeout: 30
241 docker-repo: 'omecproject'
You Wanged3a4c52020-04-04 15:44:29 -0700242 build-node: 'ubuntu16.04-basebuild-2c-4g'
You Wangfe70d412020-05-27 14:28:36 -0700243 extraEnvironmentVars: CPU=haswell
You Wange1cbba22020-06-15 21:16:14 -0700244 - 'omec-container'
You Wangccc13492020-04-01 11:11:59 -0700245
Zack Williams320b3142019-03-14 23:10:01 -0700246# Combined pipeline
Kailashbe4dc092019-01-23 09:22:17 -0800247- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700248 id: 'omec-combined'
249 name: 'omec_{project}_combined'
Kailashbe4dc092019-01-23 09:22:17 -0800250 project-type: pipeline
251
252 description: |
253 <!-- Managed by Jenkins Job Builder -->
Zack Williams73c3cf42019-02-25 23:43:22 -0700254 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
Kailashbe4dc092019-01-23 09:22:17 -0800255
256 properties:
257 - cord-infra-properties:
258 build-days-to-keep: '{build-days-to-keep}'
259 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700260 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700261 url: 'https://github.com/{github-organization}/{project}'
Zack Williams320b3142019-03-14 23:10:01 -0700262 - build-blocker:
263 use-build-blocker: true
264 blocking-jobs:
Zack Williams6af01fe2019-03-15 11:08:53 -0700265 - "omec_.*_combined"
Kailashbe4dc092019-01-23 09:22:17 -0800266
267 wrappers:
268 - lf-infra-wrappers:
269 build-timeout: '{build-timeout}'
270 jenkins-ssh-credential: '{jenkins-ssh-credential}'
271
272 parameters:
273 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700274 name: buildNode
275 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700276 description: 'Name of the Jenkins executor node to run the job on'
Kailashbe4dc092019-01-23 09:22:17 -0800277
278 - string:
hwchiu14f97852019-10-08 10:51:11 -0700279 name: project
280 default: '{project}'
281 description: 'Name of the project'
Kailashbe4dc092019-01-23 09:22:17 -0800282
You Wang83055442020-04-17 14:54:40 -0700283 - string:
284 name: mmeRepo
285 default: '{mme-repo}'
286 description: 'Name of the MME repo to test (openmme/Nucleus)'
287
Zack Williams73c3cf42019-02-25 23:43:22 -0700288 triggers:
Zack Williams5d81f812019-02-27 14:37:09 -0700289 - cord-infra-github-pr-trigger:
290 github_pr_org_list: '{obj:github_pr_org_list}'
291 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800292 status_context: 'CORD Jenkins - Combined Steps Verification'
Zack Williams73c3cf42019-02-25 23:43:22 -0700293
Zack Williams5d81f812019-02-27 14:37:09 -0700294 concurrent: false
Kailashbe4dc092019-01-23 09:22:17 -0800295
296 pipeline-scm:
Zack Williams73c3cf42019-02-25 23:43:22 -0700297 script-path: '{pipeline-file}'
298 scm:
299 - git:
hwchiu14f97852019-10-08 10:51:11 -0700300 url: 'https://github.com/{github-organization}/omec-project-ci'
301 branches:
302 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700303
Zack Williams320b3142019-03-14 23:10:01 -0700304# install jobs, run for each project
Zack Williams73c3cf42019-02-25 23:43:22 -0700305- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700306 id: 'omec-install'
Zack Williamse306e572019-04-18 07:12:46 -0700307 name: 'omec_{sub-project}_install'
Zack Williams73c3cf42019-02-25 23:43:22 -0700308 project-type: pipeline
309
310 description: |
311 <!-- Managed by Jenkins Job Builder -->
312 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
313
314 properties:
315 - cord-infra-properties:
316 build-days-to-keep: '{build-days-to-keep}'
317 artifact-num-to-keep: '{artifact-num-to-keep}'
318 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700319 url: 'https://github.com/{github-organization}/{project}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700320
321 wrappers:
322 - lf-infra-wrappers:
323 build-timeout: '{build-timeout}'
324 jenkins-ssh-credential: '{jenkins-ssh-credential}'
325
326 parameters:
327 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700328 name: buildNode
329 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700330 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700331
332 - string:
hwchiu14f97852019-10-08 10:51:11 -0700333 name: project
334 default: '{project}'
335 description: 'Name of the project'
Zack Williams73c3cf42019-02-25 23:43:22 -0700336
You Wang8addd4c2020-04-14 16:25:57 -0700337 - string:
338 name: branch
339 default: '{branch}'
340 description: 'Branch of the project'
341
Zack Williams320b3142019-03-14 23:10:01 -0700342 concurrent: false
343
344 pipeline-scm:
345 script-path: '{pipeline-file}'
346 scm:
347 - git:
hwchiu14f97852019-10-08 10:51:11 -0700348 url: 'https://github.com/{github-organization}/omec-project-ci'
349 branches:
350 - 'master'
Zack Williams320b3142019-03-14 23:10:01 -0700351
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800352# FOSSA License Scan
353- job-template:
354 id: 'omec-fossa'
355 name: 'omec_{project}_fossa'
356 project-type: pipeline
357
358 description: |
359 <!-- Managed by Jenkins Job Builder -->
360 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
361
362 properties:
363 - cord-infra-properties:
364 build-days-to-keep: '{build-days-to-keep}'
365 artifact-num-to-keep: '{artifact-num-to-keep}'
366 - github:
367 url: 'https://github.com/{github-organization}/{project}'
368
369 wrappers:
370 - lf-infra-wrappers:
371 build-timeout: '{build-timeout}'
372 jenkins-ssh-credential: '{jenkins-ssh-credential}'
373
374 parameters:
375 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700376 name: ghprbPullId
377 default: '$ghprbPullId'
378 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
379
380 - string:
381 name: branch
382 default: '$ghprbTargetBranch'
383 description: 'Branch to run. Only used when manually run.'
384
385 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800386 name: buildNode
387 default: '{build-node}'
388 description: 'Name of the Jenkins executor node to run the job on'
389
390 - string:
391 name: project
392 default: '{project}'
393 description: 'Name of the project'
394
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700395 - string:
396 name: ghprbGhRepository
397 default: '{github-organization}/{project}'
398 description: 'Repository of the project.'
399
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800400 triggers:
401 - cord-infra-github-pr-trigger:
402 github_pr_org_list: '{obj:github_pr_org_list}'
403 github_pr_auth_id: '{github_pr_auth_id}'
404 status_context: 'CORD Jenkins - FOSSA Verification'
405
406 concurrent: false
407
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800408 project-type: pipeline
409 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800410
411# REUSE License Scan
412- job-template:
413 id: 'omec-reuse'
414 name: 'omec_{project}_reuse'
415 project-type: pipeline
416
417 description: |
418 <!-- Managed by Jenkins Job Builder -->
419 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
420
421 properties:
422 - cord-infra-properties:
423 build-days-to-keep: '{build-days-to-keep}'
424 artifact-num-to-keep: '{artifact-num-to-keep}'
425 - github:
426 url: 'https://github.com/{github-organization}/{project}'
427
428 wrappers:
429 - lf-infra-wrappers:
430 build-timeout: '{build-timeout}'
431 jenkins-ssh-credential: '{jenkins-ssh-credential}'
432
433 parameters:
434 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700435 name: ghprbPullId
436 default: '$ghprbPullId'
437 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
438
439 - string:
440 name: branch
441 default: '$ghprbTargetBranch'
442 description: 'Branch to run. Only used when manually run.'
443
444 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800445 name: buildNode
446 default: '{build-node}'
447 description: 'Name of the Jenkins executor node to run the job on'
448
449 - string:
450 name: project
451 default: '{project}'
452 description: 'Name of the project'
453
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700454 - string:
455 name: ghprbGhRepository
456 default: '{github-organization}/{project}'
457 description: 'Repository of the project.'
458
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800459 triggers:
460 - cord-infra-github-pr-trigger:
461 github_pr_org_list: '{obj:github_pr_org_list}'
462 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800463 status_context: 'CORD Jenkins - Licenses Verification'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800464
465 concurrent: false
466
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800467 project-type: pipeline
468 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800469
Zack Williams320b3142019-03-14 23:10:01 -0700470# tests
471- job-template:
472 id: 'omec-tc1'
473 name: 'omec_tc1'
474 project-type: pipeline
475
476 description: |
477 <!-- Managed by Jenkins Job Builder -->
478 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
479
480 properties:
481 - cord-infra-properties:
482 build-days-to-keep: '{build-days-to-keep}'
483 artifact-num-to-keep: '{artifact-num-to-keep}'
484
485 wrappers:
486 - lf-infra-wrappers:
487 build-timeout: '{build-timeout}'
488 jenkins-ssh-credential: '{jenkins-ssh-credential}'
489
490 parameters:
491 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700492 name: buildNode
493 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700494 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700495
You Wang83055442020-04-17 14:54:40 -0700496 - string:
497 name: mmeRepo
498 default: 'openmme'
499 description: 'Name of the MME repo to test (openmme/Nucleus)'
500
Zack Williams5d81f812019-02-27 14:37:09 -0700501 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700502
503 pipeline-scm:
504 script-path: 'Jenkinsfile-omec-test-TC1.groovy'
505 scm:
506 - git:
hwchiu14f97852019-10-08 10:51:11 -0700507 url: 'https://github.com/omec-project/omec-project-ci'
508 branches:
509 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700510
511- job-template:
512 id: 'omec-tc2'
Zack Williams320b3142019-03-14 23:10:01 -0700513 name: 'omec_tc2'
Zack Williams73c3cf42019-02-25 23:43:22 -0700514 project-type: pipeline
515
516 description: |
517 <!-- Managed by Jenkins Job Builder -->
518 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
519
520 properties:
521 - cord-infra-properties:
522 build-days-to-keep: '{build-days-to-keep}'
523 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700524
525 wrappers:
526 - lf-infra-wrappers:
527 build-timeout: '{build-timeout}'
528 jenkins-ssh-credential: '{jenkins-ssh-credential}'
529
530 parameters:
531 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700532 name: buildNode
533 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700534 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700535
You Wang83055442020-04-17 14:54:40 -0700536 - string:
537 name: mmeRepo
538 default: 'openmme'
539 description: 'Name of the MME repo to test (openmme/Nucleus)'
540
Zack Williams5d81f812019-02-27 14:37:09 -0700541 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700542
543 pipeline-scm:
544 script-path: 'Jenkinsfile-omec-test-TC2.groovy'
Kailashbe4dc092019-01-23 09:22:17 -0800545 scm:
546 - git:
hwchiu14f97852019-10-08 10:51:11 -0700547 url: 'https://github.com/omec-project/omec-project-ci'
548 branches:
549 - 'master'
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700550
You Wang5c15a7a2020-04-02 11:24:33 -0700551# Post-merge job
552# Triggered by Github pull request merge
553- job-template:
554 id: omec-postmerge
555 name: '{project}_postmerge'
556 description: |
557 Created by {id} job-template from ci-management/jjb/omec-ci.yaml
558
559 properties:
560 - cord-infra-properties:
561 build-days-to-keep: '{build-days-to-keep}'
562 artifact-num-to-keep: '{artifact-num-to-keep}'
563
564 triggers:
565 - cord-infra-github-pr-trigger-merge:
566 project: '{project}'
567
568 wrappers:
569 - lf-infra-wrappers:
570 build-timeout: '{build-timeout}'
571 jenkins-ssh-credential: '{jenkins-ssh-credential}'
572
573 parameters:
574 - string:
575 name: buildNode
576 default: '{build-node}'
577 description: 'Name of the Jenkins node to run the job on'
578
579 - string:
You Wang40239452020-06-11 20:17:15 -0700580 name: registry
581 default: 'omecproject'
582 description: 'Docker registry to push images to'
583
584 - string:
You Wang5c15a7a2020-04-02 11:24:33 -0700585 name: repoName
586 default: ''
587 description: 'Name of the git repo. Populated by Generic Webhook Trigger'
588
589 - string:
590 name: repoUrl
591 default: ''
592 description: 'URL to the git repo. Populated by Generic Webhook Trigger'
593
594 - string:
595 name: branchName
596 default: ''
597 description: 'Branch of the project. Populated by Generic Webhook Trigger'
598
599 - string:
600 name: commitHash
601 default: ''
602 description: 'SHA string of the merged commit. Populated by Generic Webhook Trigger'
603
604 - string:
605 name: c3poBranchName
606 default: '{c3po-branch-name}'
607 description: 'Branch name of c3po repo which we run tests against'
608
609 - string:
610 name: ngicBranchName
611 default: '{ngic-branch-name}'
612 description: 'Branch name of ngic-rtc repo which we run tests against'
613
614 - string:
You Wang40239452020-06-11 20:17:15 -0700615 name: nucleusBranchName
616 default: '{nucleus-branch-name}'
617 description: 'Branch name of Nucleus repo which we run tests against'
You Wang5c15a7a2020-04-02 11:24:33 -0700618
619 - string:
You Wange1cbba22020-06-15 21:16:14 -0700620 name: upfBranchName
621 default: '{upf-branch-name}'
622 description: 'Branch name of upf-epc repo which we run tests against'
623
624 - string:
You Wang5c15a7a2020-04-02 11:24:33 -0700625 name: maintainers
626 default: 'jeremyr@opennetworking.org, you@opennetworking.org'
627 description: "The person that sould be notified if this job fails"
628
629 project-type: pipeline
You Wang40239452020-06-11 20:17:15 -0700630 concurrent: false
You Wang5c15a7a2020-04-02 11:24:33 -0700631
632 dsl: !include-raw-escape: pipeline/{pipeline-file}
You Wang3cc17af2020-06-12 14:56:10 -0700633
634# OMEC CI job which builds docker images, deploys and tests OMEC
635- job-template:
636 id: 'omec-container'
637 name: 'omec_{project}_container'
638 project-type: pipeline
639
640 description: |
641 <!-- Managed by Jenkins Job Builder -->
642 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
643
644 properties:
645 - cord-infra-properties:
646 build-days-to-keep: '{build-days-to-keep}'
647 artifact-num-to-keep: '{artifact-num-to-keep}'
648 - github:
649 url: 'https://github.com/{github-organization}/{project}'
650 - build-blocker:
651 use-build-blocker: true
652 blocking-jobs:
653 - "omec_.*_container"
654
655 wrappers:
656 - lf-infra-wrappers:
657 build-timeout: '{build-timeout}'
658 jenkins-ssh-credential: '{jenkins-ssh-credential}'
659
660 parameters:
661 - string:
662 name: buildNode
663 default: 'ng40-host-node'
664 description: 'Name of the Jenkins executor node to run the job on'
665
666 - string:
667 name: project
668 default: '{project}'
669 description: 'Name of the project'
670
671 - string:
672 name: ghprbTargetBranch
673 default: '$ghprbTargetBranch'
674 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
675
676 - string:
677 name: ghprbPullId
678 default: '$ghprbPullId'
679 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
680
681 - string:
682 name: ghprbActualCommit
683 default: '$ghprbActualCommit'
684 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
685
686 - string:
687 name: registry
688 default: 'registry.central.aetherproject.net'
689 description: 'Docker registry that stores images built for CI testing'
690
691 - string:
692 name: c3poBranch
693 default: 'master'
694 description: 'Branch name of c3po repo which we run tests against'
695
696 - string:
697 name: nucleusBranch
698 default: 'master'
699 description: 'Branch name of Nucleus repo which we run tests against'
700
701 - string:
702 name: ngicBranch
703 default: 'central-cp-multi-upfs'
704 description: 'Branch name of ngic-rtc repo which we run tests against'
705
You Wange1cbba22020-06-15 21:16:14 -0700706 - string:
707 name: upfBranch
708 default: 'master'
709 description: 'Branch name of upf-epc repo which we run tests against'
710
You Wang3cc17af2020-06-12 14:56:10 -0700711 triggers:
712 - cord-infra-github-pr-trigger:
713 github_pr_org_list: '{obj:github_pr_org_list}'
714 github_pr_auth_id: '{github_pr_auth_id}'
715 status_context: 'CORD Jenkins - Container Based Verification'
716
717 concurrent: false
718
719 pipeline-scm:
720 script-path: 'Jenkinsfile-omec-container.groovy'
721 scm:
722 - git:
723 url: 'https://github.com/{github-organization}/omec-project-ci'
724 branches:
725 - 'master'
726
727# OMEC deployment job
728- job-template:
729 id: 'omec-deploy'
730 name: 'omec_deploy_{pod}'
731 project-type: pipeline
732
733 description: |
734 <!-- Managed by Jenkins Job Builder -->
735 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
736
737 properties:
738 - cord-infra-properties:
739 build-days-to-keep: '{build-days-to-keep}'
740 artifact-num-to-keep: '{artifact-num-to-keep}'
741
742 wrappers:
743 - lf-infra-wrappers:
744 build-timeout: '{build-timeout}'
745 jenkins-ssh-credential: '{jenkins-ssh-credential}'
746
747 parameters:
748 - string:
749 name: buildNode
750 default: '{build-node}'
751 description: 'Name of the Jenkins executor node to run the job on.'
752
753 - string:
754 name: cpContext
755 default: '{cp-context}'
756 description: 'K8S context for omec control plane.'
757
758 - string:
759 name: dpContext
760 default: '{dp-context}'
761 description: 'K8S context for omec data plane.'
762
763 - string:
764 name: centralConfig
765 default: '{central-config}'
766 description: 'Directory name for central yaml files under aether-pod-configs.'
767
768 - string:
769 name: edgeConfig
770 default: '{edge-config}'
771 description: 'Directory name for edge yaml files under aether-pod-configs.'
772
773 - string:
774 name: hssdbImage
775 default: 'omecproject/c3po-hssdb:master-latest'
776 description: 'Docker image for hssdb. Leave empty to use default helm-charts value'
777
778 - string:
779 name: hssImage
780 default: 'omecproject/c3po-hss:master-latest'
781 description: 'Docker image for hss. Leave empty to use default helm-charts value'
782
783 - string:
784 name: mmeImage
785 default: 'omecproject/nucleus:master-latest'
786 description: 'Docker image for mme. Leave empty to use default helm-charts value'
787
788 - string:
789 name: spgwcImage
790 default: 'omecproject/ngic-cp:central-cp-multi-upfs-latest'
791 description: 'Docker image for spgwc. Leave empty to use default helm-charts value'
792
793 - string:
You Wange1cbba22020-06-15 21:16:14 -0700794 name: bessImage
795 default: 'omecproject/upf-epc-bess:master-latest'
796 description: 'Docker image for bess. Leave empty to use default helm-charts value'
797
798 - string:
799 name: cpifaceImage
800 default: 'omecproject/upf-epc-cpiface:master-latest'
801 description: 'Docker image for cpiface. Leave empty to use default helm-charts value'
You Wang3cc17af2020-06-12 14:56:10 -0700802
803 concurrent: false
804
805 pipeline-scm:
806 script-path: 'Jenkinsfile-omec-deploy.groovy'
807 scm:
808 - git:
809 url: 'https://github.com/{github-organization}/omec-project-ci'
810 branches:
811 - 'master'
812
813# OMEC test job
814- job-template:
815 id: 'omec-ng40-test'
816 name: 'omec_ng40-test_{pod}'
817 project-type: pipeline
818
819 description: |
820 <!-- Managed by Jenkins Job Builder -->
821 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
822
823 properties:
824 - cord-infra-properties:
825 build-days-to-keep: '{build-days-to-keep}'
826 artifact-num-to-keep: '{artifact-num-to-keep}'
827
828 wrappers:
829 - lf-infra-wrappers:
830 build-timeout: '{build-timeout}'
831 jenkins-ssh-credential: '{jenkins-ssh-credential}'
832
833 parameters:
834 - string:
835 name: buildNode
836 default: '{build-node}'
837 description: 'Name of the Jenkins executor node to run the job on.'
838
839 - string:
840 name: ng40VM
841 default: '{ng40-vm}'
842 description: 'user@IP for accessing NG40 VM from the build node.'
843
844 - string:
845 name: ntlFile
846 default: 'run.ntl'
847 description: 'NG40 test automation file'
848
849 concurrent: false
850
851 pipeline-scm:
852 script-path: 'Jenkinsfile-omec-ng40-test.groovy'
853 scm:
854 - git:
855 url: 'https://github.com/{github-organization}/omec-project-ci'
856 branches:
857 - 'master'
You Wangc8955b12020-06-19 14:22:12 -0700858
859# OMEC archive artifacts job
860- job-template:
861 id: 'omec-archive-artifacts'
862 name: 'omec_archive-artifacts_{pod}'
863 project-type: pipeline
864
865 description: |
866 <!-- Managed by Jenkins Job Builder -->
867 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
868
869 properties:
870 - cord-infra-properties:
871 build-days-to-keep: '{build-days-to-keep}'
872 artifact-num-to-keep: '{artifact-num-to-keep}'
873
874 wrappers:
875 - lf-infra-wrappers:
876 build-timeout: '{build-timeout}'
877 jenkins-ssh-credential: '{jenkins-ssh-credential}'
878
879 parameters:
880 - string:
881 name: buildNode
882 default: '{build-node}'
883 description: 'Name of the Jenkins executor node to run the job on.'
884
885 - string:
886 name: cpContext
887 default: '{cp-context}'
888 description: 'K8S context for omec control plane.'
889
890 - string:
891 name: dpContext
892 default: '{dp-context}'
893 description: 'K8S context for omec data plane.'
894
895 concurrent: false
896
897 pipeline-scm:
898 script-path: 'Jenkinsfile-omec-archive-artifacts.groovy'
899 scm:
900 - git:
901 url: 'https://github.com/{github-organization}/omec-project-ci'
902 branches:
903 - 'master'