blob: 51640fb02c8a141e51edd91c126807701d997d53 [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'
You Wang4e733772020-10-06 14:05:33 -070024 central-config: 'acc-gcp/app_values'
25 edge-config: 'ace-menlo/app_values'
You Wang3cc17af2020-06-12 14:56:10 -070026 - '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 Wangc1f71962020-10-06 16:26:34 -070037 log-since: '1h'
You Wang5c15a7a2020-04-02 11:24:33 -070038 - 'omec-postmerge':
39 project: '{name}'
You Wang40239452020-06-11 20:17:15 -070040 build-node: 'omec-ci'
You Wangb8bfa932020-05-29 16:22:15 -070041 c3po-branch-name: 'master'
You Wang425d49f2020-07-29 21:43:28 -070042 spgw-branch-name: 'master'
You Wang40239452020-06-11 20:17:15 -070043 nucleus-branch-name: 'master'
You Wange1cbba22020-06-15 21:16:14 -070044 upf-branch-name: 'master'
You Wang5c15a7a2020-04-02 11:24:33 -070045 pipeline-file: 'omec-postmerge.groovy'
Zack Williams320b3142019-03-14 23:10:01 -070046
Zack Williams73c3cf42019-02-25 23:43:22 -070047# for ngic-rtc
Kailashbe4dc092019-01-23 09:22:17 -080048- project:
Zack Williams73c3cf42019-02-25 23:43:22 -070049 name: ngic-rtc
50 project: '{name}'
Kailashbe4dc092019-01-23 09:22:17 -080051
Zack Williamsb3292082019-10-11 17:15:18 -070052 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070053
Zack Williams1e325b22019-07-24 17:52:57 -070054 github-organization: 'omec-project'
55
Zack Williams5d81f812019-02-27 14:37:09 -070056 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
57 github_pr_org_list:
58 - 'omec-project'
59
Kailashbe4dc092019-01-23 09:22:17 -080060 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070061 - 'omec-combined':
62 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang81cc00c2020-06-15 15:32:53 -070063 mme-repo: 'Nucleus'
Zack Williams320b3142019-03-14 23:10:01 -070064 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070065 sub-project: '{name}'
You Wang4cba3612020-04-29 16:47:10 -070066 branch: 'central-cp-multi-upfs'
Zack Williams73c3cf42019-02-25 23:43:22 -070067 pipeline-file: 'Jenkinsfile-omec-install-ngic-rtc-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080068 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080069 pipeline-file: 'omec-fossa-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -070070 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080071 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080072 pipeline-file: 'omec-reuse-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -070073 build-node: 'ubuntu16.04-basebuild-1c-2g'
Zack Williams1e325b22019-07-24 17:52:57 -070074 - 'docker-publish-github':
75 build-timeout: 30
76 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -070077 build-node: 'ubuntu16.04-basebuild-4c-8g'
You Wang3cc17af2020-06-12 14:56:10 -070078 - 'omec-container'
Zack Williams73c3cf42019-02-25 23:43:22 -070079
Zack Williamse306e572019-04-18 07:12:46 -070080# for c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070081- project:
Zack Williamse306e572019-04-18 07:12:46 -070082 name: c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070083 project: '{name}'
84
Zack Williamsb3292082019-10-11 17:15:18 -070085 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070086
Zack Williams1e325b22019-07-24 17:52:57 -070087 github-organization: 'omec-project'
88
Zack Williams5d81f812019-02-27 14:37:09 -070089 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
90 github_pr_org_list:
91 - 'omec-project'
92
Zack Williams73c3cf42019-02-25 23:43:22 -070093 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070094 - 'omec-combined':
95 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang81cc00c2020-06-15 15:32:53 -070096 mme-repo: 'Nucleus'
Zack Williams320b3142019-03-14 23:10:01 -070097 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070098 sub-project: 'c3po-sgx'
You Wang8addd4c2020-04-14 16:25:57 -070099 branch: 'master'
Zack Williams62021452019-04-15 13:23:46 -0700100 pipeline-file: 'Jenkinsfile-omec-install-c3po-sgx-vnf.groovy'
Zack Williamse306e572019-04-18 07:12:46 -0700101 - 'omec-install':
102 sub-project: 'c3po-hss'
You Wang8addd4c2020-04-14 16:25:57 -0700103 branch: 'master'
Zack Williamse306e572019-04-18 07:12:46 -0700104 pipeline-file: 'Jenkinsfile-omec-install-c3po-hss-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800105 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800106 pipeline-file: 'omec-fossa-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700107 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800108 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800109 pipeline-file: 'omec-reuse-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700110 build-node: 'ubuntu16.04-basebuild-1c-2g'
Zack Williams1e325b22019-07-24 17:52:57 -0700111 - 'docker-publish-github':
112 build-timeout: 30
113 docker-repo: 'omecproject'
You Wang715d5fc2020-04-30 16:23:35 -0700114 build-node: 'ubuntu16.04-basebuild-8c-15g'
You Wang3cc17af2020-06-12 14:56:10 -0700115 - 'omec-container'
Zack Williams73c3cf42019-02-25 23:43:22 -0700116
117# for openmme
118- project:
119 name: openmme
120 project: '{name}'
121
Zack Williamsdf7f9d32019-11-05 07:40:20 -0700122 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -0700123
Zack Williams1e325b22019-07-24 17:52:57 -0700124 github-organization: 'omec-project'
125
Zack Williams5d81f812019-02-27 14:37:09 -0700126 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
127 github_pr_org_list:
128 - 'omec-project'
129
Zack Williams73c3cf42019-02-25 23:43:22 -0700130 jobs:
Zack Williams320b3142019-03-14 23:10:01 -0700131 - 'omec-combined':
132 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -0700133 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -0700134 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -0700135 sub-project: '{name}'
You Wanga1dcf252020-05-19 17:22:42 -0700136 branch: 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700137 pipeline-file: 'Jenkinsfile-omec-install-openmme-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800138 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800139 pipeline-file: 'omec-fossa-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700140 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800141 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800142 pipeline-file: 'omec-reuse-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700143 build-node: 'ubuntu16.04-basebuild-1c-2g'
Zack Williams1e325b22019-07-24 17:52:57 -0700144 - 'docker-publish-github':
145 build-timeout: 30
146 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -0700147 build-node: 'ubuntu16.04-basebuild-1c-2g'
Zack Williams73c3cf42019-02-25 23:43:22 -0700148
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800149# for nucleus
150- project:
151 name: Nucleus
152 project: '{name}'
153
154 build-node: 'intel-102'
155
156 github-organization: 'omec-project'
157
158 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
159 github_pr_org_list:
160 - 'omec-project'
161
162 jobs:
You Wang83055442020-04-17 14:54:40 -0700163 - 'omec-combined':
164 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
165 mme-repo: 'Nucleus'
166 - 'omec-install':
167 sub-project: '{name}'
168 branch: 'master'
169 pipeline-file: 'Jenkinsfile-omec-install-Nucleus-vnf.groovy'
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800170 - 'omec-fossa':
171 pipeline-file: 'omec-fossa-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700172 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800173 - 'omec-reuse':
174 pipeline-file: 'omec-reuse-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700175 build-node: 'ubuntu16.04-basebuild-1c-2g'
You Wangf5739552020-06-02 16:36:31 -0700176 - 'docker-publish-github':
177 build-timeout: 60
178 docker-repo: 'omecproject'
179 build-node: 'ubuntu16.04-basebuild-1c-2g'
You Wang3cc17af2020-06-12 14:56:10 -0700180 - 'omec-container'
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800181
Jeremy Ronquilloea6d6202020-03-04 10:27:35 -0800182# for freediameter
183- project:
184 name: freediameter
185 project: '{name}'
186
187 build-node: 'intel-102'
188
189 github-organization: 'omec-project'
190
191 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
192 github_pr_org_list:
193 - 'omec-project'
194
195 jobs:
196 - 'omec-fossa':
197 pipeline-file: 'omec-fossa-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700198 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquilloea6d6202020-03-04 10:27:35 -0800199 - 'omec-reuse':
200 pipeline-file: 'omec-reuse-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700201 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquilloea6d6202020-03-04 10:27:35 -0800202
Jeremy Ronquillocc302e12020-03-30 11:44:49 -0700203# for ignite
204- project:
205 name: ignite
206 project: '{name}'
207
208 build-node: 'intel-102'
209
210 github-organization: 'omec-project'
211
212 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
213 github_pr_org_list:
214 - 'omec-project'
215
216 jobs:
217 - 'omec-fossa':
218 pipeline-file: 'omec-fossa-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700219 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquillocc302e12020-03-30 11:44:49 -0700220 - 'omec-reuse':
221 pipeline-file: 'omec-reuse-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700222 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquillocc302e12020-03-30 11:44:49 -0700223
You Wangccc13492020-04-01 11:11:59 -0700224# for upf-epc
225- project:
226 name: upf-epc
227 project: '{name}'
228
229 github-organization: 'omec-project'
230
231 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
232 github_pr_org_list:
233 - 'omec-project'
234
235 jobs:
236 - 'omec-fossa':
237 pipeline-file: 'omec-fossa-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700238 build-node: 'ubuntu16.04-basebuild-1c-2g'
You Wangccc13492020-04-01 11:11:59 -0700239 - 'omec-reuse':
240 pipeline-file: 'omec-reuse-scan.groovy'
Jeremy Ronquillo9b65c602020-08-17 11:43:57 -0700241 build-node: 'ubuntu16.04-basebuild-1c-2g'
You Wangccc13492020-04-01 11:11:59 -0700242 - 'docker-publish-github':
243 build-timeout: 30
244 docker-repo: 'omecproject'
You Wanged3a4c52020-04-04 15:44:29 -0700245 build-node: 'ubuntu16.04-basebuild-2c-4g'
You Wangfe70d412020-05-27 14:28:36 -0700246 extraEnvironmentVars: CPU=haswell
You Wange1cbba22020-06-15 21:16:14 -0700247 - 'omec-container'
You Wangccc13492020-04-01 11:11:59 -0700248
Zack Williams320b3142019-03-14 23:10:01 -0700249# Combined pipeline
Kailashbe4dc092019-01-23 09:22:17 -0800250- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700251 id: 'omec-combined'
252 name: 'omec_{project}_combined'
Kailashbe4dc092019-01-23 09:22:17 -0800253 project-type: pipeline
254
255 description: |
256 <!-- Managed by Jenkins Job Builder -->
Zack Williams73c3cf42019-02-25 23:43:22 -0700257 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
Kailashbe4dc092019-01-23 09:22:17 -0800258
259 properties:
260 - cord-infra-properties:
261 build-days-to-keep: '{build-days-to-keep}'
262 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700263 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700264 url: 'https://github.com/{github-organization}/{project}'
Zack Williams320b3142019-03-14 23:10:01 -0700265 - build-blocker:
266 use-build-blocker: true
267 blocking-jobs:
Zack Williams6af01fe2019-03-15 11:08:53 -0700268 - "omec_.*_combined"
Kailashbe4dc092019-01-23 09:22:17 -0800269
270 wrappers:
271 - lf-infra-wrappers:
272 build-timeout: '{build-timeout}'
273 jenkins-ssh-credential: '{jenkins-ssh-credential}'
274
275 parameters:
276 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700277 name: buildNode
278 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700279 description: 'Name of the Jenkins executor node to run the job on'
Kailashbe4dc092019-01-23 09:22:17 -0800280
281 - string:
hwchiu14f97852019-10-08 10:51:11 -0700282 name: project
283 default: '{project}'
284 description: 'Name of the project'
Kailashbe4dc092019-01-23 09:22:17 -0800285
You Wang83055442020-04-17 14:54:40 -0700286 - string:
287 name: mmeRepo
288 default: '{mme-repo}'
289 description: 'Name of the MME repo to test (openmme/Nucleus)'
290
Zack Williams73c3cf42019-02-25 23:43:22 -0700291 triggers:
Zack Williams5d81f812019-02-27 14:37:09 -0700292 - cord-infra-github-pr-trigger:
293 github_pr_org_list: '{obj:github_pr_org_list}'
294 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800295 status_context: 'CORD Jenkins - Combined Steps Verification'
Zack Williams73c3cf42019-02-25 23:43:22 -0700296
Zack Williams5d81f812019-02-27 14:37:09 -0700297 concurrent: false
Kailashbe4dc092019-01-23 09:22:17 -0800298
299 pipeline-scm:
Zack Williams73c3cf42019-02-25 23:43:22 -0700300 script-path: '{pipeline-file}'
301 scm:
302 - git:
hwchiu14f97852019-10-08 10:51:11 -0700303 url: 'https://github.com/{github-organization}/omec-project-ci'
304 branches:
305 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700306
Zack Williams320b3142019-03-14 23:10:01 -0700307# install jobs, run for each project
Zack Williams73c3cf42019-02-25 23:43:22 -0700308- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700309 id: 'omec-install'
Zack Williamse306e572019-04-18 07:12:46 -0700310 name: 'omec_{sub-project}_install'
Zack Williams73c3cf42019-02-25 23:43:22 -0700311 project-type: pipeline
312
313 description: |
314 <!-- Managed by Jenkins Job Builder -->
315 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
316
317 properties:
318 - cord-infra-properties:
319 build-days-to-keep: '{build-days-to-keep}'
320 artifact-num-to-keep: '{artifact-num-to-keep}'
321 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700322 url: 'https://github.com/{github-organization}/{project}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700323
324 wrappers:
325 - lf-infra-wrappers:
326 build-timeout: '{build-timeout}'
327 jenkins-ssh-credential: '{jenkins-ssh-credential}'
328
329 parameters:
330 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700331 name: buildNode
332 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700333 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700334
335 - string:
hwchiu14f97852019-10-08 10:51:11 -0700336 name: project
337 default: '{project}'
338 description: 'Name of the project'
Zack Williams73c3cf42019-02-25 23:43:22 -0700339
You Wang8addd4c2020-04-14 16:25:57 -0700340 - string:
341 name: branch
342 default: '{branch}'
343 description: 'Branch of the project'
344
Zack Williams320b3142019-03-14 23:10:01 -0700345 concurrent: false
346
347 pipeline-scm:
348 script-path: '{pipeline-file}'
349 scm:
350 - git:
hwchiu14f97852019-10-08 10:51:11 -0700351 url: 'https://github.com/{github-organization}/omec-project-ci'
352 branches:
353 - 'master'
Zack Williams320b3142019-03-14 23:10:01 -0700354
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800355# FOSSA License Scan
356- job-template:
357 id: 'omec-fossa'
358 name: 'omec_{project}_fossa'
359 project-type: pipeline
360
361 description: |
362 <!-- Managed by Jenkins Job Builder -->
363 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
364
365 properties:
366 - cord-infra-properties:
367 build-days-to-keep: '{build-days-to-keep}'
368 artifact-num-to-keep: '{artifact-num-to-keep}'
369 - github:
370 url: 'https://github.com/{github-organization}/{project}'
371
372 wrappers:
373 - lf-infra-wrappers:
374 build-timeout: '{build-timeout}'
375 jenkins-ssh-credential: '{jenkins-ssh-credential}'
376
377 parameters:
378 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700379 name: ghprbPullId
380 default: '$ghprbPullId'
381 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
382
383 - string:
384 name: branch
385 default: '$ghprbTargetBranch'
386 description: 'Branch to run. Only used when manually run.'
387
388 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800389 name: buildNode
390 default: '{build-node}'
391 description: 'Name of the Jenkins executor node to run the job on'
392
393 - string:
394 name: project
395 default: '{project}'
396 description: 'Name of the project'
397
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700398 - string:
399 name: ghprbGhRepository
400 default: '{github-organization}/{project}'
401 description: 'Repository of the project.'
402
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800403 triggers:
404 - cord-infra-github-pr-trigger:
405 github_pr_org_list: '{obj:github_pr_org_list}'
406 github_pr_auth_id: '{github_pr_auth_id}'
407 status_context: 'CORD Jenkins - FOSSA Verification'
408
409 concurrent: false
410
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800411 project-type: pipeline
412 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800413
414# REUSE License Scan
415- job-template:
416 id: 'omec-reuse'
417 name: 'omec_{project}_reuse'
418 project-type: pipeline
419
420 description: |
421 <!-- Managed by Jenkins Job Builder -->
422 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
423
424 properties:
425 - cord-infra-properties:
426 build-days-to-keep: '{build-days-to-keep}'
427 artifact-num-to-keep: '{artifact-num-to-keep}'
428 - github:
429 url: 'https://github.com/{github-organization}/{project}'
430
431 wrappers:
432 - lf-infra-wrappers:
433 build-timeout: '{build-timeout}'
434 jenkins-ssh-credential: '{jenkins-ssh-credential}'
435
436 parameters:
437 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700438 name: ghprbPullId
439 default: '$ghprbPullId'
440 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
441
442 - string:
443 name: branch
444 default: '$ghprbTargetBranch'
445 description: 'Branch to run. Only used when manually run.'
446
447 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800448 name: buildNode
449 default: '{build-node}'
450 description: 'Name of the Jenkins executor node to run the job on'
451
452 - string:
453 name: project
454 default: '{project}'
455 description: 'Name of the project'
456
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700457 - string:
458 name: ghprbGhRepository
459 default: '{github-organization}/{project}'
460 description: 'Repository of the project.'
461
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800462 triggers:
463 - cord-infra-github-pr-trigger:
464 github_pr_org_list: '{obj:github_pr_org_list}'
465 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800466 status_context: 'CORD Jenkins - Licenses Verification'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800467
468 concurrent: false
469
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800470 project-type: pipeline
471 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800472
Zack Williams320b3142019-03-14 23:10:01 -0700473# tests
474- job-template:
475 id: 'omec-tc1'
476 name: 'omec_tc1'
477 project-type: pipeline
478
479 description: |
480 <!-- Managed by Jenkins Job Builder -->
481 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
482
483 properties:
484 - cord-infra-properties:
485 build-days-to-keep: '{build-days-to-keep}'
486 artifact-num-to-keep: '{artifact-num-to-keep}'
487
488 wrappers:
489 - lf-infra-wrappers:
490 build-timeout: '{build-timeout}'
491 jenkins-ssh-credential: '{jenkins-ssh-credential}'
492
493 parameters:
494 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700495 name: buildNode
496 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700497 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700498
You Wang83055442020-04-17 14:54:40 -0700499 - string:
500 name: mmeRepo
501 default: 'openmme'
502 description: 'Name of the MME repo to test (openmme/Nucleus)'
503
Zack Williams5d81f812019-02-27 14:37:09 -0700504 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700505
506 pipeline-scm:
507 script-path: 'Jenkinsfile-omec-test-TC1.groovy'
508 scm:
509 - git:
hwchiu14f97852019-10-08 10:51:11 -0700510 url: 'https://github.com/omec-project/omec-project-ci'
511 branches:
512 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700513
514- job-template:
515 id: 'omec-tc2'
Zack Williams320b3142019-03-14 23:10:01 -0700516 name: 'omec_tc2'
Zack Williams73c3cf42019-02-25 23:43:22 -0700517 project-type: pipeline
518
519 description: |
520 <!-- Managed by Jenkins Job Builder -->
521 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
522
523 properties:
524 - cord-infra-properties:
525 build-days-to-keep: '{build-days-to-keep}'
526 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700527
528 wrappers:
529 - lf-infra-wrappers:
530 build-timeout: '{build-timeout}'
531 jenkins-ssh-credential: '{jenkins-ssh-credential}'
532
533 parameters:
534 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700535 name: buildNode
536 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700537 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700538
You Wang83055442020-04-17 14:54:40 -0700539 - string:
540 name: mmeRepo
541 default: 'openmme'
542 description: 'Name of the MME repo to test (openmme/Nucleus)'
543
Zack Williams5d81f812019-02-27 14:37:09 -0700544 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700545
546 pipeline-scm:
547 script-path: 'Jenkinsfile-omec-test-TC2.groovy'
Kailashbe4dc092019-01-23 09:22:17 -0800548 scm:
549 - git:
hwchiu14f97852019-10-08 10:51:11 -0700550 url: 'https://github.com/omec-project/omec-project-ci'
551 branches:
552 - 'master'
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700553
You Wang5c15a7a2020-04-02 11:24:33 -0700554# Post-merge job
555# Triggered by Github pull request merge
556- job-template:
557 id: omec-postmerge
558 name: '{project}_postmerge'
559 description: |
560 Created by {id} job-template from ci-management/jjb/omec-ci.yaml
561
562 properties:
563 - cord-infra-properties:
564 build-days-to-keep: '{build-days-to-keep}'
565 artifact-num-to-keep: '{artifact-num-to-keep}'
566
567 triggers:
568 - cord-infra-github-pr-trigger-merge:
569 project: '{project}'
570
571 wrappers:
572 - lf-infra-wrappers:
573 build-timeout: '{build-timeout}'
574 jenkins-ssh-credential: '{jenkins-ssh-credential}'
575
576 parameters:
577 - string:
578 name: buildNode
579 default: '{build-node}'
580 description: 'Name of the Jenkins node to run the job on'
581
582 - string:
You Wang40239452020-06-11 20:17:15 -0700583 name: registry
584 default: 'omecproject'
585 description: 'Docker registry to push images to'
586
587 - string:
You Wang5c15a7a2020-04-02 11:24:33 -0700588 name: repoName
589 default: ''
590 description: 'Name of the git repo. Populated by Generic Webhook Trigger'
591
592 - string:
593 name: repoUrl
594 default: ''
595 description: 'URL to the git repo. Populated by Generic Webhook Trigger'
596
597 - string:
598 name: branchName
599 default: ''
600 description: 'Branch of the project. Populated by Generic Webhook Trigger'
601
602 - string:
603 name: commitHash
604 default: ''
605 description: 'SHA string of the merged commit. Populated by Generic Webhook Trigger'
606
607 - string:
608 name: c3poBranchName
609 default: '{c3po-branch-name}'
610 description: 'Branch name of c3po repo which we run tests against'
611
612 - string:
You Wang425d49f2020-07-29 21:43:28 -0700613 name: spgwBranchName
614 default: '{spgw-branch-name}'
615 description: 'Branch name of spgw repo which we run tests against'
You Wang5c15a7a2020-04-02 11:24:33 -0700616
617 - string:
You Wang40239452020-06-11 20:17:15 -0700618 name: nucleusBranchName
619 default: '{nucleus-branch-name}'
620 description: 'Branch name of Nucleus repo which we run tests against'
You Wang5c15a7a2020-04-02 11:24:33 -0700621
622 - string:
You Wange1cbba22020-06-15 21:16:14 -0700623 name: upfBranchName
624 default: '{upf-branch-name}'
625 description: 'Branch name of upf-epc repo which we run tests against'
626
627 - string:
You Wang5c15a7a2020-04-02 11:24:33 -0700628 name: maintainers
629 default: 'jeremyr@opennetworking.org, you@opennetworking.org'
630 description: "The person that sould be notified if this job fails"
631
632 project-type: pipeline
You Wang40239452020-06-11 20:17:15 -0700633 concurrent: false
You Wang5c15a7a2020-04-02 11:24:33 -0700634
635 dsl: !include-raw-escape: pipeline/{pipeline-file}
You Wang3cc17af2020-06-12 14:56:10 -0700636
637# OMEC CI job which builds docker images, deploys and tests OMEC
638- job-template:
639 id: 'omec-container'
640 name: 'omec_{project}_container'
641 project-type: pipeline
642
643 description: |
644 <!-- Managed by Jenkins Job Builder -->
645 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
646
647 properties:
648 - cord-infra-properties:
649 build-days-to-keep: '{build-days-to-keep}'
650 artifact-num-to-keep: '{artifact-num-to-keep}'
651 - github:
652 url: 'https://github.com/{github-organization}/{project}'
653 - build-blocker:
654 use-build-blocker: true
655 blocking-jobs:
You Wang1e8ad9c2020-07-29 17:32:04 -0700656 - ".*_container"
You Wang3cc17af2020-06-12 14:56:10 -0700657
658 wrappers:
659 - lf-infra-wrappers:
660 build-timeout: '{build-timeout}'
661 jenkins-ssh-credential: '{jenkins-ssh-credential}'
662
663 parameters:
664 - string:
665 name: buildNode
666 default: 'ng40-host-node'
667 description: 'Name of the Jenkins executor node to run the job on'
668
669 - string:
670 name: project
671 default: '{project}'
672 description: 'Name of the project'
673
674 - string:
675 name: ghprbTargetBranch
676 default: '$ghprbTargetBranch'
677 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
678
679 - string:
680 name: ghprbPullId
681 default: '$ghprbPullId'
682 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
683
684 - string:
685 name: ghprbActualCommit
686 default: '$ghprbActualCommit'
687 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
688
689 - string:
690 name: registry
691 default: 'registry.central.aetherproject.net'
692 description: 'Docker registry that stores images built for CI testing'
693
694 - string:
695 name: c3poBranch
696 default: 'master'
697 description: 'Branch name of c3po repo which we run tests against'
698
699 - string:
700 name: nucleusBranch
701 default: 'master'
702 description: 'Branch name of Nucleus repo which we run tests against'
703
704 - string:
You Wang1e8ad9c2020-07-29 17:32:04 -0700705 name: spgwBranch
706 default: 'master'
707 description: 'Branch name of spgw repo which we run tests against'
You Wang3cc17af2020-06-12 14:56:10 -0700708
You Wange1cbba22020-06-15 21:16:14 -0700709 - string:
710 name: upfBranch
711 default: 'master'
712 description: 'Branch name of upf-epc repo which we run tests against'
713
You Wang3cc17af2020-06-12 14:56:10 -0700714 triggers:
715 - cord-infra-github-pr-trigger:
716 github_pr_org_list: '{obj:github_pr_org_list}'
717 github_pr_auth_id: '{github_pr_auth_id}'
718 status_context: 'CORD Jenkins - Container Based Verification'
719
720 concurrent: false
721
722 pipeline-scm:
723 script-path: 'Jenkinsfile-omec-container.groovy'
724 scm:
725 - git:
726 url: 'https://github.com/{github-organization}/omec-project-ci'
727 branches:
728 - 'master'
729
730# OMEC deployment job
731- job-template:
732 id: 'omec-deploy'
733 name: 'omec_deploy_{pod}'
734 project-type: pipeline
735
736 description: |
737 <!-- Managed by Jenkins Job Builder -->
738 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
739
740 properties:
741 - cord-infra-properties:
742 build-days-to-keep: '{build-days-to-keep}'
743 artifact-num-to-keep: '{artifact-num-to-keep}'
744
745 wrappers:
746 - lf-infra-wrappers:
747 build-timeout: '{build-timeout}'
748 jenkins-ssh-credential: '{jenkins-ssh-credential}'
749
750 parameters:
751 - string:
752 name: buildNode
753 default: '{build-node}'
754 description: 'Name of the Jenkins executor node to run the job on.'
755
756 - string:
757 name: cpContext
758 default: '{cp-context}'
759 description: 'K8S context for omec control plane.'
760
761 - string:
762 name: dpContext
763 default: '{dp-context}'
764 description: 'K8S context for omec data plane.'
765
766 - string:
767 name: centralConfig
768 default: '{central-config}'
769 description: 'Directory name for central yaml files under aether-pod-configs.'
770
771 - string:
772 name: edgeConfig
773 default: '{edge-config}'
774 description: 'Directory name for edge yaml files under aether-pod-configs.'
775
776 - string:
777 name: hssdbImage
778 default: 'omecproject/c3po-hssdb:master-latest'
779 description: 'Docker image for hssdb. Leave empty to use default helm-charts value'
780
781 - string:
782 name: hssImage
783 default: 'omecproject/c3po-hss:master-latest'
784 description: 'Docker image for hss. Leave empty to use default helm-charts value'
785
786 - string:
787 name: mmeImage
788 default: 'omecproject/nucleus:master-latest'
789 description: 'Docker image for mme. Leave empty to use default helm-charts value'
790
791 - string:
792 name: spgwcImage
You Wang3f0f0db2020-08-06 12:02:51 -0700793 default: 'omecproject/spgw:master-latest'
You Wang3cc17af2020-06-12 14:56:10 -0700794 description: 'Docker image for spgwc. Leave empty to use default helm-charts value'
795
796 - string:
You Wange1cbba22020-06-15 21:16:14 -0700797 name: bessImage
798 default: 'omecproject/upf-epc-bess:master-latest'
799 description: 'Docker image for bess. Leave empty to use default helm-charts value'
800
801 - string:
You Wang1e8ad9c2020-07-29 17:32:04 -0700802 name: zmqifaceImage
You Wange1cbba22020-06-15 21:16:14 -0700803 default: 'omecproject/upf-epc-cpiface:master-latest'
You Wang1e8ad9c2020-07-29 17:32:04 -0700804 description: 'Docker image for zmqiface. Leave empty to use default helm-charts value'
805
806 - string:
807 name: pfcpifaceImage
808 default: 'omecproject/upf-epc-pfcpiface:master-latest'
809 description: 'Docker image for pfcpiface. Leave empty to use default helm-charts value'
You Wang3cc17af2020-06-12 14:56:10 -0700810
811 concurrent: false
812
813 pipeline-scm:
814 script-path: 'Jenkinsfile-omec-deploy.groovy'
815 scm:
816 - git:
817 url: 'https://github.com/{github-organization}/omec-project-ci'
818 branches:
819 - 'master'
820
821# OMEC test job
822- job-template:
823 id: 'omec-ng40-test'
824 name: 'omec_ng40-test_{pod}'
825 project-type: pipeline
826
827 description: |
828 <!-- Managed by Jenkins Job Builder -->
829 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
830
831 properties:
832 - cord-infra-properties:
833 build-days-to-keep: '{build-days-to-keep}'
834 artifact-num-to-keep: '{artifact-num-to-keep}'
835
836 wrappers:
837 - lf-infra-wrappers:
838 build-timeout: '{build-timeout}'
839 jenkins-ssh-credential: '{jenkins-ssh-credential}'
840
841 parameters:
842 - string:
843 name: buildNode
844 default: '{build-node}'
845 description: 'Name of the Jenkins executor node to run the job on.'
846
847 - string:
You Wang5647a3a2020-07-15 10:54:25 -0700848 name: timeout
849 default: '30'
850 description: 'Timeout period for this pipeline in minutes.'
851
852 - string:
You Wang3cc17af2020-06-12 14:56:10 -0700853 name: ng40VM
854 default: '{ng40-vm}'
855 description: 'user@IP for accessing NG40 VM from the build node.'
856
857 - string:
858 name: ntlFile
859 default: 'run.ntl'
860 description: 'NG40 test automation file'
861
You Wangadd58172020-06-23 20:09:28 -0700862 - string:
863 name: cpContext
864 default: '{cp-context}'
865 description: 'K8S context for omec control plane.'
866
867 - string:
868 name: dpContext
869 default: '{dp-context}'
870 description: 'K8S context for omec data plane.'
871
You Wang3cc17af2020-06-12 14:56:10 -0700872 concurrent: false
873
874 pipeline-scm:
875 script-path: 'Jenkinsfile-omec-ng40-test.groovy'
876 scm:
877 - git:
878 url: 'https://github.com/{github-organization}/omec-project-ci'
879 branches:
880 - 'master'
You Wangc8955b12020-06-19 14:22:12 -0700881
882# OMEC archive artifacts job
883- job-template:
884 id: 'omec-archive-artifacts'
885 name: 'omec_archive-artifacts_{pod}'
886 project-type: pipeline
887
888 description: |
889 <!-- Managed by Jenkins Job Builder -->
890 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
891
892 properties:
893 - cord-infra-properties:
894 build-days-to-keep: '{build-days-to-keep}'
895 artifact-num-to-keep: '{artifact-num-to-keep}'
896
897 wrappers:
898 - lf-infra-wrappers:
899 build-timeout: '{build-timeout}'
900 jenkins-ssh-credential: '{jenkins-ssh-credential}'
901
902 parameters:
903 - string:
904 name: buildNode
905 default: '{build-node}'
906 description: 'Name of the Jenkins executor node to run the job on.'
907
908 - string:
909 name: cpContext
910 default: '{cp-context}'
911 description: 'K8S context for omec control plane.'
912
913 - string:
914 name: dpContext
915 default: '{dp-context}'
916 description: 'K8S context for omec data plane.'
917
You Wangc1f71962020-10-06 16:26:34 -0700918 - string:
919 name: logSince
920 default: '{log-since}'
921 description: 'Only upload logs newer than a relative duration e.g. 1h'
922
You Wangc8955b12020-06-19 14:22:12 -0700923 concurrent: false
924
925 pipeline-scm:
926 script-path: 'Jenkinsfile-omec-archive-artifacts.groovy'
927 scm:
928 - git:
929 url: 'https://github.com/{github-organization}/omec-project-ci'
930 branches:
931 - 'master'