blob: 721323c7a175fe80e887db00f6569eb11213f576 [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 Wangadd58172020-06-23 20:09:28 -070030 cp-context: 'dev-central-gcp'
31 dp-context: 'dev-edge-onf-menlo'
You Wangc8955b12020-06-19 14:22:12 -070032 - 'omec-archive-artifacts':
33 pod: 'dev'
34 build-node: 'omec-ci'
35 cp-context: 'dev-central-gcp'
36 dp-context: 'dev-edge-onf-menlo'
You Wang5c15a7a2020-04-02 11:24:33 -070037 - 'omec-postmerge':
38 project: '{name}'
You Wang40239452020-06-11 20:17:15 -070039 build-node: 'omec-ci'
You Wangb8bfa932020-05-29 16:22:15 -070040 c3po-branch-name: 'master'
You Wangb242ae42020-04-15 12:32:32 -070041 ngic-branch-name: 'central-cp-multi-upfs'
You Wang40239452020-06-11 20:17:15 -070042 nucleus-branch-name: 'master'
You Wange1cbba22020-06-15 21:16:14 -070043 upf-branch-name: 'master'
You Wang5c15a7a2020-04-02 11:24:33 -070044 pipeline-file: 'omec-postmerge.groovy'
Zack Williams320b3142019-03-14 23:10:01 -070045
Zack Williams73c3cf42019-02-25 23:43:22 -070046# for ngic-rtc
Kailashbe4dc092019-01-23 09:22:17 -080047- project:
Zack Williams73c3cf42019-02-25 23:43:22 -070048 name: ngic-rtc
49 project: '{name}'
Kailashbe4dc092019-01-23 09:22:17 -080050
Zack Williamsb3292082019-10-11 17:15:18 -070051 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070052
Zack Williams1e325b22019-07-24 17:52:57 -070053 github-organization: 'omec-project'
54
Zack Williams5d81f812019-02-27 14:37:09 -070055 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
56 github_pr_org_list:
57 - 'omec-project'
58
Kailashbe4dc092019-01-23 09:22:17 -080059 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070060 - 'omec-combined':
61 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang81cc00c2020-06-15 15:32:53 -070062 mme-repo: 'Nucleus'
Zack Williams320b3142019-03-14 23:10:01 -070063 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070064 sub-project: '{name}'
You Wang4cba3612020-04-29 16:47:10 -070065 branch: 'central-cp-multi-upfs'
Zack Williams73c3cf42019-02-25 23:43:22 -070066 pipeline-file: 'Jenkinsfile-omec-install-ngic-rtc-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080067 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080068 pipeline-file: 'omec-fossa-scan.groovy'
69 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080070 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080071 pipeline-file: 'omec-reuse-scan.groovy'
72 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -070073 - 'docker-publish-github':
74 build-timeout: 30
75 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -070076 build-node: 'ubuntu16.04-basebuild-4c-8g'
You Wang3cc17af2020-06-12 14:56:10 -070077 - 'omec-container'
Zack Williams73c3cf42019-02-25 23:43:22 -070078
Zack Williamse306e572019-04-18 07:12:46 -070079# for c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070080- project:
Zack Williamse306e572019-04-18 07:12:46 -070081 name: c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070082 project: '{name}'
83
Zack Williamsb3292082019-10-11 17:15:18 -070084 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070085
Zack Williams1e325b22019-07-24 17:52:57 -070086 github-organization: 'omec-project'
87
Zack Williams5d81f812019-02-27 14:37:09 -070088 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
89 github_pr_org_list:
90 - 'omec-project'
91
Zack Williams73c3cf42019-02-25 23:43:22 -070092 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070093 - 'omec-combined':
94 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang81cc00c2020-06-15 15:32:53 -070095 mme-repo: 'Nucleus'
Zack Williams320b3142019-03-14 23:10:01 -070096 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070097 sub-project: 'c3po-sgx'
You Wang8addd4c2020-04-14 16:25:57 -070098 branch: 'master'
Zack Williams62021452019-04-15 13:23:46 -070099 pipeline-file: 'Jenkinsfile-omec-install-c3po-sgx-vnf.groovy'
Zack Williamse306e572019-04-18 07:12:46 -0700100 - 'omec-install':
101 sub-project: 'c3po-hss'
You Wang8addd4c2020-04-14 16:25:57 -0700102 branch: 'master'
Zack Williamse306e572019-04-18 07:12:46 -0700103 pipeline-file: 'Jenkinsfile-omec-install-c3po-hss-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800104 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800105 pipeline-file: 'omec-fossa-scan.groovy'
106 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800107 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800108 pipeline-file: 'omec-reuse-scan.groovy'
109 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -0700110 - 'docker-publish-github':
111 build-timeout: 30
112 docker-repo: 'omecproject'
You Wang715d5fc2020-04-30 16:23:35 -0700113 build-node: 'ubuntu16.04-basebuild-8c-15g'
You Wang3cc17af2020-06-12 14:56:10 -0700114 - 'omec-container'
Zack Williams73c3cf42019-02-25 23:43:22 -0700115
116# for openmme
117- project:
118 name: openmme
119 project: '{name}'
120
Zack Williamsdf7f9d32019-11-05 07:40:20 -0700121 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -0700122
Zack Williams1e325b22019-07-24 17:52:57 -0700123 github-organization: 'omec-project'
124
Zack Williams5d81f812019-02-27 14:37:09 -0700125 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
126 github_pr_org_list:
127 - 'omec-project'
128
Zack Williams73c3cf42019-02-25 23:43:22 -0700129 jobs:
Zack Williams320b3142019-03-14 23:10:01 -0700130 - 'omec-combined':
131 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -0700132 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -0700133 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -0700134 sub-project: '{name}'
You Wanga1dcf252020-05-19 17:22:42 -0700135 branch: 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700136 pipeline-file: 'Jenkinsfile-omec-install-openmme-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800137 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800138 pipeline-file: 'omec-fossa-scan.groovy'
139 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800140 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800141 pipeline-file: 'omec-reuse-scan.groovy'
142 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -0700143 - 'docker-publish-github':
144 build-timeout: 30
145 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -0700146 build-node: 'ubuntu16.04-basebuild-1c-2g'
Zack Williams73c3cf42019-02-25 23:43:22 -0700147
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800148# for nucleus
149- project:
150 name: Nucleus
151 project: '{name}'
152
153 build-node: 'intel-102'
154
155 github-organization: 'omec-project'
156
157 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
158 github_pr_org_list:
159 - 'omec-project'
160
161 jobs:
You Wang83055442020-04-17 14:54:40 -0700162 - 'omec-combined':
163 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
164 mme-repo: 'Nucleus'
165 - 'omec-install':
166 sub-project: '{name}'
167 branch: 'master'
168 pipeline-file: 'Jenkinsfile-omec-install-Nucleus-vnf.groovy'
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800169 - 'omec-fossa':
170 pipeline-file: 'omec-fossa-scan.groovy'
171 build-node: 'omec-qa'
172 - 'omec-reuse':
173 pipeline-file: 'omec-reuse-scan.groovy'
174 build-node: 'omec-qa'
You Wangf5739552020-06-02 16:36:31 -0700175 - 'docker-publish-github':
176 build-timeout: 60
177 docker-repo: 'omecproject'
178 build-node: 'ubuntu16.04-basebuild-1c-2g'
You Wang3cc17af2020-06-12 14:56:10 -0700179 - 'omec-container'
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800180
Jeremy Ronquilloea6d6202020-03-04 10:27:35 -0800181# for freediameter
182- project:
183 name: freediameter
184 project: '{name}'
185
186 build-node: 'intel-102'
187
188 github-organization: 'omec-project'
189
190 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
191 github_pr_org_list:
192 - 'omec-project'
193
194 jobs:
195 - 'omec-fossa':
196 pipeline-file: 'omec-fossa-scan.groovy'
197 build-node: 'omec-qa'
198 - 'omec-reuse':
199 pipeline-file: 'omec-reuse-scan.groovy'
200 build-node: 'omec-qa'
201
Jeremy Ronquillocc302e12020-03-30 11:44:49 -0700202# for ignite
203- project:
204 name: ignite
205 project: '{name}'
206
207 build-node: 'intel-102'
208
209 github-organization: 'omec-project'
210
211 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
212 github_pr_org_list:
213 - 'omec-project'
214
215 jobs:
216 - 'omec-fossa':
217 pipeline-file: 'omec-fossa-scan.groovy'
218 build-node: 'omec-qa'
219 - 'omec-reuse':
220 pipeline-file: 'omec-reuse-scan.groovy'
221 build-node: 'omec-qa'
222
You Wangccc13492020-04-01 11:11:59 -0700223# for upf-epc
224- project:
225 name: upf-epc
226 project: '{name}'
227
228 github-organization: 'omec-project'
229
230 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
231 github_pr_org_list:
232 - 'omec-project'
233
234 jobs:
235 - 'omec-fossa':
236 pipeline-file: 'omec-fossa-scan.groovy'
237 build-node: 'omec-qa'
238 - 'omec-reuse':
239 pipeline-file: 'omec-reuse-scan.groovy'
240 build-node: 'omec-qa'
241 - 'docker-publish-github':
242 build-timeout: 30
243 docker-repo: 'omecproject'
You Wanged3a4c52020-04-04 15:44:29 -0700244 build-node: 'ubuntu16.04-basebuild-2c-4g'
You Wangfe70d412020-05-27 14:28:36 -0700245 extraEnvironmentVars: CPU=haswell
You Wange1cbba22020-06-15 21:16:14 -0700246 - 'omec-container'
You Wangccc13492020-04-01 11:11:59 -0700247
Zack Williams320b3142019-03-14 23:10:01 -0700248# Combined pipeline
Kailashbe4dc092019-01-23 09:22:17 -0800249- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700250 id: 'omec-combined'
251 name: 'omec_{project}_combined'
Kailashbe4dc092019-01-23 09:22:17 -0800252 project-type: pipeline
253
254 description: |
255 <!-- Managed by Jenkins Job Builder -->
Zack Williams73c3cf42019-02-25 23:43:22 -0700256 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
Kailashbe4dc092019-01-23 09:22:17 -0800257
258 properties:
259 - cord-infra-properties:
260 build-days-to-keep: '{build-days-to-keep}'
261 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700262 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700263 url: 'https://github.com/{github-organization}/{project}'
Zack Williams320b3142019-03-14 23:10:01 -0700264 - build-blocker:
265 use-build-blocker: true
266 blocking-jobs:
Zack Williams6af01fe2019-03-15 11:08:53 -0700267 - "omec_.*_combined"
Kailashbe4dc092019-01-23 09:22:17 -0800268
269 wrappers:
270 - lf-infra-wrappers:
271 build-timeout: '{build-timeout}'
272 jenkins-ssh-credential: '{jenkins-ssh-credential}'
273
274 parameters:
275 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700276 name: buildNode
277 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700278 description: 'Name of the Jenkins executor node to run the job on'
Kailashbe4dc092019-01-23 09:22:17 -0800279
280 - string:
hwchiu14f97852019-10-08 10:51:11 -0700281 name: project
282 default: '{project}'
283 description: 'Name of the project'
Kailashbe4dc092019-01-23 09:22:17 -0800284
You Wang83055442020-04-17 14:54:40 -0700285 - string:
286 name: mmeRepo
287 default: '{mme-repo}'
288 description: 'Name of the MME repo to test (openmme/Nucleus)'
289
Zack Williams73c3cf42019-02-25 23:43:22 -0700290 triggers:
Zack Williams5d81f812019-02-27 14:37:09 -0700291 - cord-infra-github-pr-trigger:
292 github_pr_org_list: '{obj:github_pr_org_list}'
293 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800294 status_context: 'CORD Jenkins - Combined Steps Verification'
Zack Williams73c3cf42019-02-25 23:43:22 -0700295
Zack Williams5d81f812019-02-27 14:37:09 -0700296 concurrent: false
Kailashbe4dc092019-01-23 09:22:17 -0800297
298 pipeline-scm:
Zack Williams73c3cf42019-02-25 23:43:22 -0700299 script-path: '{pipeline-file}'
300 scm:
301 - git:
hwchiu14f97852019-10-08 10:51:11 -0700302 url: 'https://github.com/{github-organization}/omec-project-ci'
303 branches:
304 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700305
Zack Williams320b3142019-03-14 23:10:01 -0700306# install jobs, run for each project
Zack Williams73c3cf42019-02-25 23:43:22 -0700307- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700308 id: 'omec-install'
Zack Williamse306e572019-04-18 07:12:46 -0700309 name: 'omec_{sub-project}_install'
Zack Williams73c3cf42019-02-25 23:43:22 -0700310 project-type: pipeline
311
312 description: |
313 <!-- Managed by Jenkins Job Builder -->
314 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
315
316 properties:
317 - cord-infra-properties:
318 build-days-to-keep: '{build-days-to-keep}'
319 artifact-num-to-keep: '{artifact-num-to-keep}'
320 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700321 url: 'https://github.com/{github-organization}/{project}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700322
323 wrappers:
324 - lf-infra-wrappers:
325 build-timeout: '{build-timeout}'
326 jenkins-ssh-credential: '{jenkins-ssh-credential}'
327
328 parameters:
329 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700330 name: buildNode
331 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700332 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700333
334 - string:
hwchiu14f97852019-10-08 10:51:11 -0700335 name: project
336 default: '{project}'
337 description: 'Name of the project'
Zack Williams73c3cf42019-02-25 23:43:22 -0700338
You Wang8addd4c2020-04-14 16:25:57 -0700339 - string:
340 name: branch
341 default: '{branch}'
342 description: 'Branch of the project'
343
Zack Williams320b3142019-03-14 23:10:01 -0700344 concurrent: false
345
346 pipeline-scm:
347 script-path: '{pipeline-file}'
348 scm:
349 - git:
hwchiu14f97852019-10-08 10:51:11 -0700350 url: 'https://github.com/{github-organization}/omec-project-ci'
351 branches:
352 - 'master'
Zack Williams320b3142019-03-14 23:10:01 -0700353
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800354# FOSSA License Scan
355- job-template:
356 id: 'omec-fossa'
357 name: 'omec_{project}_fossa'
358 project-type: pipeline
359
360 description: |
361 <!-- Managed by Jenkins Job Builder -->
362 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
363
364 properties:
365 - cord-infra-properties:
366 build-days-to-keep: '{build-days-to-keep}'
367 artifact-num-to-keep: '{artifact-num-to-keep}'
368 - github:
369 url: 'https://github.com/{github-organization}/{project}'
370
371 wrappers:
372 - lf-infra-wrappers:
373 build-timeout: '{build-timeout}'
374 jenkins-ssh-credential: '{jenkins-ssh-credential}'
375
376 parameters:
377 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700378 name: ghprbPullId
379 default: '$ghprbPullId'
380 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
381
382 - string:
383 name: branch
384 default: '$ghprbTargetBranch'
385 description: 'Branch to run. Only used when manually run.'
386
387 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800388 name: buildNode
389 default: '{build-node}'
390 description: 'Name of the Jenkins executor node to run the job on'
391
392 - string:
393 name: project
394 default: '{project}'
395 description: 'Name of the project'
396
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700397 - string:
398 name: ghprbGhRepository
399 default: '{github-organization}/{project}'
400 description: 'Repository of the project.'
401
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800402 triggers:
403 - cord-infra-github-pr-trigger:
404 github_pr_org_list: '{obj:github_pr_org_list}'
405 github_pr_auth_id: '{github_pr_auth_id}'
406 status_context: 'CORD Jenkins - FOSSA Verification'
407
408 concurrent: false
409
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800410 project-type: pipeline
411 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800412
413# REUSE License Scan
414- job-template:
415 id: 'omec-reuse'
416 name: 'omec_{project}_reuse'
417 project-type: pipeline
418
419 description: |
420 <!-- Managed by Jenkins Job Builder -->
421 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
422
423 properties:
424 - cord-infra-properties:
425 build-days-to-keep: '{build-days-to-keep}'
426 artifact-num-to-keep: '{artifact-num-to-keep}'
427 - github:
428 url: 'https://github.com/{github-organization}/{project}'
429
430 wrappers:
431 - lf-infra-wrappers:
432 build-timeout: '{build-timeout}'
433 jenkins-ssh-credential: '{jenkins-ssh-credential}'
434
435 parameters:
436 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700437 name: ghprbPullId
438 default: '$ghprbPullId'
439 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
440
441 - string:
442 name: branch
443 default: '$ghprbTargetBranch'
444 description: 'Branch to run. Only used when manually run.'
445
446 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800447 name: buildNode
448 default: '{build-node}'
449 description: 'Name of the Jenkins executor node to run the job on'
450
451 - string:
452 name: project
453 default: '{project}'
454 description: 'Name of the project'
455
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700456 - string:
457 name: ghprbGhRepository
458 default: '{github-organization}/{project}'
459 description: 'Repository of the project.'
460
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800461 triggers:
462 - cord-infra-github-pr-trigger:
463 github_pr_org_list: '{obj:github_pr_org_list}'
464 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800465 status_context: 'CORD Jenkins - Licenses Verification'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800466
467 concurrent: false
468
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800469 project-type: pipeline
470 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800471
Zack Williams320b3142019-03-14 23:10:01 -0700472# tests
473- job-template:
474 id: 'omec-tc1'
475 name: 'omec_tc1'
476 project-type: pipeline
477
478 description: |
479 <!-- Managed by Jenkins Job Builder -->
480 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
481
482 properties:
483 - cord-infra-properties:
484 build-days-to-keep: '{build-days-to-keep}'
485 artifact-num-to-keep: '{artifact-num-to-keep}'
486
487 wrappers:
488 - lf-infra-wrappers:
489 build-timeout: '{build-timeout}'
490 jenkins-ssh-credential: '{jenkins-ssh-credential}'
491
492 parameters:
493 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700494 name: buildNode
495 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700496 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700497
You Wang83055442020-04-17 14:54:40 -0700498 - string:
499 name: mmeRepo
500 default: 'openmme'
501 description: 'Name of the MME repo to test (openmme/Nucleus)'
502
Zack Williams5d81f812019-02-27 14:37:09 -0700503 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700504
505 pipeline-scm:
506 script-path: 'Jenkinsfile-omec-test-TC1.groovy'
507 scm:
508 - git:
hwchiu14f97852019-10-08 10:51:11 -0700509 url: 'https://github.com/omec-project/omec-project-ci'
510 branches:
511 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700512
513- job-template:
514 id: 'omec-tc2'
Zack Williams320b3142019-03-14 23:10:01 -0700515 name: 'omec_tc2'
Zack Williams73c3cf42019-02-25 23:43:22 -0700516 project-type: pipeline
517
518 description: |
519 <!-- Managed by Jenkins Job Builder -->
520 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
521
522 properties:
523 - cord-infra-properties:
524 build-days-to-keep: '{build-days-to-keep}'
525 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700526
527 wrappers:
528 - lf-infra-wrappers:
529 build-timeout: '{build-timeout}'
530 jenkins-ssh-credential: '{jenkins-ssh-credential}'
531
532 parameters:
533 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700534 name: buildNode
535 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700536 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700537
You Wang83055442020-04-17 14:54:40 -0700538 - string:
539 name: mmeRepo
540 default: 'openmme'
541 description: 'Name of the MME repo to test (openmme/Nucleus)'
542
Zack Williams5d81f812019-02-27 14:37:09 -0700543 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700544
545 pipeline-scm:
546 script-path: 'Jenkinsfile-omec-test-TC2.groovy'
Kailashbe4dc092019-01-23 09:22:17 -0800547 scm:
548 - git:
hwchiu14f97852019-10-08 10:51:11 -0700549 url: 'https://github.com/omec-project/omec-project-ci'
550 branches:
551 - 'master'
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700552
You Wang5c15a7a2020-04-02 11:24:33 -0700553# Post-merge job
554# Triggered by Github pull request merge
555- job-template:
556 id: omec-postmerge
557 name: '{project}_postmerge'
558 description: |
559 Created by {id} job-template from ci-management/jjb/omec-ci.yaml
560
561 properties:
562 - cord-infra-properties:
563 build-days-to-keep: '{build-days-to-keep}'
564 artifact-num-to-keep: '{artifact-num-to-keep}'
565
566 triggers:
567 - cord-infra-github-pr-trigger-merge:
568 project: '{project}'
569
570 wrappers:
571 - lf-infra-wrappers:
572 build-timeout: '{build-timeout}'
573 jenkins-ssh-credential: '{jenkins-ssh-credential}'
574
575 parameters:
576 - string:
577 name: buildNode
578 default: '{build-node}'
579 description: 'Name of the Jenkins node to run the job on'
580
581 - string:
You Wang40239452020-06-11 20:17:15 -0700582 name: registry
583 default: 'omecproject'
584 description: 'Docker registry to push images to'
585
586 - string:
You Wang5c15a7a2020-04-02 11:24:33 -0700587 name: repoName
588 default: ''
589 description: 'Name of the git repo. Populated by Generic Webhook Trigger'
590
591 - string:
592 name: repoUrl
593 default: ''
594 description: 'URL to the git repo. Populated by Generic Webhook Trigger'
595
596 - string:
597 name: branchName
598 default: ''
599 description: 'Branch of the project. Populated by Generic Webhook Trigger'
600
601 - string:
602 name: commitHash
603 default: ''
604 description: 'SHA string of the merged commit. Populated by Generic Webhook Trigger'
605
606 - string:
607 name: c3poBranchName
608 default: '{c3po-branch-name}'
609 description: 'Branch name of c3po repo which we run tests against'
610
611 - string:
612 name: ngicBranchName
613 default: '{ngic-branch-name}'
614 description: 'Branch name of ngic-rtc repo which we run tests against'
615
616 - string:
You Wang40239452020-06-11 20:17:15 -0700617 name: nucleusBranchName
618 default: '{nucleus-branch-name}'
619 description: 'Branch name of Nucleus repo which we run tests against'
You Wang5c15a7a2020-04-02 11:24:33 -0700620
621 - string:
You Wange1cbba22020-06-15 21:16:14 -0700622 name: upfBranchName
623 default: '{upf-branch-name}'
624 description: 'Branch name of upf-epc repo which we run tests against'
625
626 - string:
You Wang5c15a7a2020-04-02 11:24:33 -0700627 name: maintainers
628 default: 'jeremyr@opennetworking.org, you@opennetworking.org'
629 description: "The person that sould be notified if this job fails"
630
631 project-type: pipeline
You Wang40239452020-06-11 20:17:15 -0700632 concurrent: false
You Wang5c15a7a2020-04-02 11:24:33 -0700633
634 dsl: !include-raw-escape: pipeline/{pipeline-file}
You Wang3cc17af2020-06-12 14:56:10 -0700635
636# OMEC CI job which builds docker images, deploys and tests OMEC
637- job-template:
638 id: 'omec-container'
639 name: 'omec_{project}_container'
640 project-type: pipeline
641
642 description: |
643 <!-- Managed by Jenkins Job Builder -->
644 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
645
646 properties:
647 - cord-infra-properties:
648 build-days-to-keep: '{build-days-to-keep}'
649 artifact-num-to-keep: '{artifact-num-to-keep}'
650 - github:
651 url: 'https://github.com/{github-organization}/{project}'
652 - build-blocker:
653 use-build-blocker: true
654 blocking-jobs:
655 - "omec_.*_container"
656
657 wrappers:
658 - lf-infra-wrappers:
659 build-timeout: '{build-timeout}'
660 jenkins-ssh-credential: '{jenkins-ssh-credential}'
661
662 parameters:
663 - string:
664 name: buildNode
665 default: 'ng40-host-node'
666 description: 'Name of the Jenkins executor node to run the job on'
667
668 - string:
669 name: project
670 default: '{project}'
671 description: 'Name of the project'
672
673 - string:
674 name: ghprbTargetBranch
675 default: '$ghprbTargetBranch'
676 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
677
678 - string:
679 name: ghprbPullId
680 default: '$ghprbPullId'
681 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
682
683 - string:
684 name: ghprbActualCommit
685 default: '$ghprbActualCommit'
686 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
687
688 - string:
689 name: registry
690 default: 'registry.central.aetherproject.net'
691 description: 'Docker registry that stores images built for CI testing'
692
693 - string:
694 name: c3poBranch
695 default: 'master'
696 description: 'Branch name of c3po repo which we run tests against'
697
698 - string:
699 name: nucleusBranch
700 default: 'master'
701 description: 'Branch name of Nucleus repo which we run tests against'
702
703 - string:
704 name: ngicBranch
705 default: 'central-cp-multi-upfs'
706 description: 'Branch name of ngic-rtc repo which we run tests against'
707
You Wange1cbba22020-06-15 21:16:14 -0700708 - string:
709 name: upfBranch
710 default: 'master'
711 description: 'Branch name of upf-epc repo which we run tests against'
712
You Wang3cc17af2020-06-12 14:56:10 -0700713 triggers:
714 - cord-infra-github-pr-trigger:
715 github_pr_org_list: '{obj:github_pr_org_list}'
716 github_pr_auth_id: '{github_pr_auth_id}'
717 status_context: 'CORD Jenkins - Container Based Verification'
718
719 concurrent: false
720
721 pipeline-scm:
722 script-path: 'Jenkinsfile-omec-container.groovy'
723 scm:
724 - git:
725 url: 'https://github.com/{github-organization}/omec-project-ci'
726 branches:
727 - 'master'
728
729# OMEC deployment job
730- job-template:
731 id: 'omec-deploy'
732 name: 'omec_deploy_{pod}'
733 project-type: pipeline
734
735 description: |
736 <!-- Managed by Jenkins Job Builder -->
737 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
738
739 properties:
740 - cord-infra-properties:
741 build-days-to-keep: '{build-days-to-keep}'
742 artifact-num-to-keep: '{artifact-num-to-keep}'
743
744 wrappers:
745 - lf-infra-wrappers:
746 build-timeout: '{build-timeout}'
747 jenkins-ssh-credential: '{jenkins-ssh-credential}'
748
749 parameters:
750 - string:
751 name: buildNode
752 default: '{build-node}'
753 description: 'Name of the Jenkins executor node to run the job on.'
754
755 - string:
756 name: cpContext
757 default: '{cp-context}'
758 description: 'K8S context for omec control plane.'
759
760 - string:
761 name: dpContext
762 default: '{dp-context}'
763 description: 'K8S context for omec data plane.'
764
765 - string:
766 name: centralConfig
767 default: '{central-config}'
768 description: 'Directory name for central yaml files under aether-pod-configs.'
769
770 - string:
771 name: edgeConfig
772 default: '{edge-config}'
773 description: 'Directory name for edge yaml files under aether-pod-configs.'
774
775 - string:
776 name: hssdbImage
777 default: 'omecproject/c3po-hssdb:master-latest'
778 description: 'Docker image for hssdb. Leave empty to use default helm-charts value'
779
780 - string:
781 name: hssImage
782 default: 'omecproject/c3po-hss:master-latest'
783 description: 'Docker image for hss. Leave empty to use default helm-charts value'
784
785 - string:
786 name: mmeImage
787 default: 'omecproject/nucleus:master-latest'
788 description: 'Docker image for mme. Leave empty to use default helm-charts value'
789
790 - string:
791 name: spgwcImage
792 default: 'omecproject/ngic-cp:central-cp-multi-upfs-latest'
793 description: 'Docker image for spgwc. Leave empty to use default helm-charts value'
794
795 - string:
You Wange1cbba22020-06-15 21:16:14 -0700796 name: bessImage
797 default: 'omecproject/upf-epc-bess:master-latest'
798 description: 'Docker image for bess. Leave empty to use default helm-charts value'
799
800 - string:
801 name: cpifaceImage
802 default: 'omecproject/upf-epc-cpiface:master-latest'
803 description: 'Docker image for cpiface. Leave empty to use default helm-charts value'
You Wang3cc17af2020-06-12 14:56:10 -0700804
805 concurrent: false
806
807 pipeline-scm:
808 script-path: 'Jenkinsfile-omec-deploy.groovy'
809 scm:
810 - git:
811 url: 'https://github.com/{github-organization}/omec-project-ci'
812 branches:
813 - 'master'
814
815# OMEC test job
816- job-template:
817 id: 'omec-ng40-test'
818 name: 'omec_ng40-test_{pod}'
819 project-type: pipeline
820
821 description: |
822 <!-- Managed by Jenkins Job Builder -->
823 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
824
825 properties:
826 - cord-infra-properties:
827 build-days-to-keep: '{build-days-to-keep}'
828 artifact-num-to-keep: '{artifact-num-to-keep}'
829
830 wrappers:
831 - lf-infra-wrappers:
832 build-timeout: '{build-timeout}'
833 jenkins-ssh-credential: '{jenkins-ssh-credential}'
834
835 parameters:
836 - string:
837 name: buildNode
838 default: '{build-node}'
839 description: 'Name of the Jenkins executor node to run the job on.'
840
841 - string:
842 name: ng40VM
843 default: '{ng40-vm}'
844 description: 'user@IP for accessing NG40 VM from the build node.'
845
846 - string:
847 name: ntlFile
848 default: 'run.ntl'
849 description: 'NG40 test automation file'
850
You Wangadd58172020-06-23 20:09:28 -0700851 - string:
852 name: cpContext
853 default: '{cp-context}'
854 description: 'K8S context for omec control plane.'
855
856 - string:
857 name: dpContext
858 default: '{dp-context}'
859 description: 'K8S context for omec data plane.'
860
You Wang3cc17af2020-06-12 14:56:10 -0700861 concurrent: false
862
863 pipeline-scm:
864 script-path: 'Jenkinsfile-omec-ng40-test.groovy'
865 scm:
866 - git:
867 url: 'https://github.com/{github-organization}/omec-project-ci'
868 branches:
869 - 'master'
You Wangc8955b12020-06-19 14:22:12 -0700870
871# OMEC archive artifacts job
872- job-template:
873 id: 'omec-archive-artifacts'
874 name: 'omec_archive-artifacts_{pod}'
875 project-type: pipeline
876
877 description: |
878 <!-- Managed by Jenkins Job Builder -->
879 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
880
881 properties:
882 - cord-infra-properties:
883 build-days-to-keep: '{build-days-to-keep}'
884 artifact-num-to-keep: '{artifact-num-to-keep}'
885
886 wrappers:
887 - lf-infra-wrappers:
888 build-timeout: '{build-timeout}'
889 jenkins-ssh-credential: '{jenkins-ssh-credential}'
890
891 parameters:
892 - string:
893 name: buildNode
894 default: '{build-node}'
895 description: 'Name of the Jenkins executor node to run the job on.'
896
897 - string:
898 name: cpContext
899 default: '{cp-context}'
900 description: 'K8S context for omec control plane.'
901
902 - string:
903 name: dpContext
904 default: '{dp-context}'
905 description: 'K8S context for omec data plane.'
906
907 concurrent: false
908
909 pipeline-scm:
910 script-path: 'Jenkinsfile-omec-archive-artifacts.groovy'
911 scm:
912 - git:
913 url: 'https://github.com/{github-organization}/omec-project-ci'
914 branches:
915 - 'master'