blob: 5e76aee4e65e3c8ce2a9212e08c89bbd4c4b64fa [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'
Zack Williams320b3142019-03-14 23:10:01 -070010
11 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
12 github_pr_org_list:
13 - 'omec-project'
14
15 jobs:
16 - 'omec-tc1'
17 - 'omec-tc2'
Jeremy Ronquillo6d1e08a2020-04-03 11:31:32 -070018 - 'omec-deploy-staging'
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 Wang5c15a7a2020-04-02 11:24:33 -070030 - 'omec-postmerge':
31 project: '{name}'
You Wang40239452020-06-11 20:17:15 -070032 build-node: 'omec-ci'
You Wangb8bfa932020-05-29 16:22:15 -070033 c3po-branch-name: 'master'
You Wangb242ae42020-04-15 12:32:32 -070034 ngic-branch-name: 'central-cp-multi-upfs'
You Wang40239452020-06-11 20:17:15 -070035 nucleus-branch-name: 'master'
You Wang5c15a7a2020-04-02 11:24:33 -070036 pipeline-file: 'omec-postmerge.groovy'
Zack Williams320b3142019-03-14 23:10:01 -070037
Zack Williams73c3cf42019-02-25 23:43:22 -070038# for ngic-rtc
Kailashbe4dc092019-01-23 09:22:17 -080039- project:
Zack Williams73c3cf42019-02-25 23:43:22 -070040 name: ngic-rtc
41 project: '{name}'
Kailashbe4dc092019-01-23 09:22:17 -080042
Zack Williamsb3292082019-10-11 17:15:18 -070043 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070044
Zack Williams1e325b22019-07-24 17:52:57 -070045 github-organization: 'omec-project'
46
Zack Williams5d81f812019-02-27 14:37:09 -070047 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
48 github_pr_org_list:
49 - 'omec-project'
50
Kailashbe4dc092019-01-23 09:22:17 -080051 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070052 - 'omec-combined':
53 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -070054 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -070055 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070056 sub-project: '{name}'
You Wang4cba3612020-04-29 16:47:10 -070057 branch: 'central-cp-multi-upfs'
Zack Williams73c3cf42019-02-25 23:43:22 -070058 pipeline-file: 'Jenkinsfile-omec-install-ngic-rtc-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080059 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080060 pipeline-file: 'omec-fossa-scan.groovy'
61 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080062 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080063 pipeline-file: 'omec-reuse-scan.groovy'
64 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -070065 - 'docker-publish-github':
66 build-timeout: 30
67 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -070068 build-node: 'ubuntu16.04-basebuild-4c-8g'
Jeremy Ronquillo659f6682020-04-16 13:18:24 -070069 - 'omec-comac-in-a-box':
70 build-node: 'comac_in_a_box'
You Wang3cc17af2020-06-12 14:56:10 -070071 - 'omec-container'
Zack Williams73c3cf42019-02-25 23:43:22 -070072
Zack Williamse306e572019-04-18 07:12:46 -070073# for c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070074- project:
Zack Williamse306e572019-04-18 07:12:46 -070075 name: c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070076 project: '{name}'
77
Zack Williamsb3292082019-10-11 17:15:18 -070078 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070079
Zack Williams1e325b22019-07-24 17:52:57 -070080 github-organization: 'omec-project'
81
Zack Williams5d81f812019-02-27 14:37:09 -070082 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
83 github_pr_org_list:
84 - 'omec-project'
85
Zack Williams73c3cf42019-02-25 23:43:22 -070086 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070087 - 'omec-combined':
88 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -070089 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -070090 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070091 sub-project: 'c3po-sgx'
You Wang8addd4c2020-04-14 16:25:57 -070092 branch: 'master'
Zack Williams62021452019-04-15 13:23:46 -070093 pipeline-file: 'Jenkinsfile-omec-install-c3po-sgx-vnf.groovy'
Zack Williamse306e572019-04-18 07:12:46 -070094 - 'omec-install':
95 sub-project: 'c3po-hss'
You Wang8addd4c2020-04-14 16:25:57 -070096 branch: 'master'
Zack Williamse306e572019-04-18 07:12:46 -070097 pipeline-file: 'Jenkinsfile-omec-install-c3po-hss-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080098 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080099 pipeline-file: 'omec-fossa-scan.groovy'
100 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800101 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800102 pipeline-file: 'omec-reuse-scan.groovy'
103 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -0700104 - 'docker-publish-github':
105 build-timeout: 30
106 docker-repo: 'omecproject'
You Wang715d5fc2020-04-30 16:23:35 -0700107 build-node: 'ubuntu16.04-basebuild-8c-15g'
Jeremy Ronquillo659f6682020-04-16 13:18:24 -0700108 - 'omec-comac-in-a-box':
109 build-node: 'comac_in_a_box'
You Wang3cc17af2020-06-12 14:56:10 -0700110 - 'omec-container'
Zack Williams73c3cf42019-02-25 23:43:22 -0700111
112# for openmme
113- project:
114 name: openmme
115 project: '{name}'
116
Zack Williamsdf7f9d32019-11-05 07:40:20 -0700117 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -0700118
Zack Williams1e325b22019-07-24 17:52:57 -0700119 github-organization: 'omec-project'
120
Zack Williams5d81f812019-02-27 14:37:09 -0700121 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
122 github_pr_org_list:
123 - 'omec-project'
124
Zack Williams73c3cf42019-02-25 23:43:22 -0700125 jobs:
Zack Williams320b3142019-03-14 23:10:01 -0700126 - 'omec-combined':
127 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -0700128 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -0700129 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -0700130 sub-project: '{name}'
You Wanga1dcf252020-05-19 17:22:42 -0700131 branch: 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700132 pipeline-file: 'Jenkinsfile-omec-install-openmme-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800133 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800134 pipeline-file: 'omec-fossa-scan.groovy'
135 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800136 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800137 pipeline-file: 'omec-reuse-scan.groovy'
138 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -0700139 - 'docker-publish-github':
140 build-timeout: 30
141 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -0700142 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquillo659f6682020-04-16 13:18:24 -0700143 - 'omec-comac-in-a-box':
144 build-node: 'comac_in_a_box'
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'
Jeremy Ronquillo659f6682020-04-16 13:18:24 -0700177 - 'omec-comac-in-a-box':
178 build-node: 'comac_in_a_box'
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 Wangccc13492020-04-01 11:11:59 -0700246
Zack Williams320b3142019-03-14 23:10:01 -0700247# Combined pipeline
Kailashbe4dc092019-01-23 09:22:17 -0800248- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700249 id: 'omec-combined'
250 name: 'omec_{project}_combined'
Kailashbe4dc092019-01-23 09:22:17 -0800251 project-type: pipeline
252
253 description: |
254 <!-- Managed by Jenkins Job Builder -->
Zack Williams73c3cf42019-02-25 23:43:22 -0700255 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
Kailashbe4dc092019-01-23 09:22:17 -0800256
257 properties:
258 - cord-infra-properties:
259 build-days-to-keep: '{build-days-to-keep}'
260 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700261 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700262 url: 'https://github.com/{github-organization}/{project}'
Zack Williams320b3142019-03-14 23:10:01 -0700263 - build-blocker:
264 use-build-blocker: true
265 blocking-jobs:
Zack Williams6af01fe2019-03-15 11:08:53 -0700266 - "omec_.*_combined"
Kailashbe4dc092019-01-23 09:22:17 -0800267
268 wrappers:
269 - lf-infra-wrappers:
270 build-timeout: '{build-timeout}'
271 jenkins-ssh-credential: '{jenkins-ssh-credential}'
272
273 parameters:
274 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700275 name: buildNode
276 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700277 description: 'Name of the Jenkins executor node to run the job on'
Kailashbe4dc092019-01-23 09:22:17 -0800278
279 - string:
hwchiu14f97852019-10-08 10:51:11 -0700280 name: project
281 default: '{project}'
282 description: 'Name of the project'
Kailashbe4dc092019-01-23 09:22:17 -0800283
You Wang83055442020-04-17 14:54:40 -0700284 - string:
285 name: mmeRepo
286 default: '{mme-repo}'
287 description: 'Name of the MME repo to test (openmme/Nucleus)'
288
Zack Williams73c3cf42019-02-25 23:43:22 -0700289 triggers:
Zack Williams5d81f812019-02-27 14:37:09 -0700290 - cord-infra-github-pr-trigger:
291 github_pr_org_list: '{obj:github_pr_org_list}'
292 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800293 status_context: 'CORD Jenkins - Combined Steps Verification'
Zack Williams73c3cf42019-02-25 23:43:22 -0700294
Zack Williams5d81f812019-02-27 14:37:09 -0700295 concurrent: false
Kailashbe4dc092019-01-23 09:22:17 -0800296
297 pipeline-scm:
Zack Williams73c3cf42019-02-25 23:43:22 -0700298 script-path: '{pipeline-file}'
299 scm:
300 - git:
hwchiu14f97852019-10-08 10:51:11 -0700301 url: 'https://github.com/{github-organization}/omec-project-ci'
302 branches:
303 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700304
Zack Williams320b3142019-03-14 23:10:01 -0700305# install jobs, run for each project
Zack Williams73c3cf42019-02-25 23:43:22 -0700306- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700307 id: 'omec-install'
Zack Williamse306e572019-04-18 07:12:46 -0700308 name: 'omec_{sub-project}_install'
Zack Williams73c3cf42019-02-25 23:43:22 -0700309 project-type: pipeline
310
311 description: |
312 <!-- Managed by Jenkins Job Builder -->
313 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
314
315 properties:
316 - cord-infra-properties:
317 build-days-to-keep: '{build-days-to-keep}'
318 artifact-num-to-keep: '{artifact-num-to-keep}'
319 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700320 url: 'https://github.com/{github-organization}/{project}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700321
322 wrappers:
323 - lf-infra-wrappers:
324 build-timeout: '{build-timeout}'
325 jenkins-ssh-credential: '{jenkins-ssh-credential}'
326
327 parameters:
328 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700329 name: buildNode
330 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700331 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700332
333 - string:
hwchiu14f97852019-10-08 10:51:11 -0700334 name: project
335 default: '{project}'
336 description: 'Name of the project'
Zack Williams73c3cf42019-02-25 23:43:22 -0700337
You Wang8addd4c2020-04-14 16:25:57 -0700338 - string:
339 name: branch
340 default: '{branch}'
341 description: 'Branch of the project'
342
Zack Williams320b3142019-03-14 23:10:01 -0700343 concurrent: false
344
345 pipeline-scm:
346 script-path: '{pipeline-file}'
347 scm:
348 - git:
hwchiu14f97852019-10-08 10:51:11 -0700349 url: 'https://github.com/{github-organization}/omec-project-ci'
350 branches:
351 - 'master'
Zack Williams320b3142019-03-14 23:10:01 -0700352
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800353# FOSSA License Scan
354- job-template:
355 id: 'omec-fossa'
356 name: 'omec_{project}_fossa'
357 project-type: pipeline
358
359 description: |
360 <!-- Managed by Jenkins Job Builder -->
361 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
362
363 properties:
364 - cord-infra-properties:
365 build-days-to-keep: '{build-days-to-keep}'
366 artifact-num-to-keep: '{artifact-num-to-keep}'
367 - github:
368 url: 'https://github.com/{github-organization}/{project}'
369
370 wrappers:
371 - lf-infra-wrappers:
372 build-timeout: '{build-timeout}'
373 jenkins-ssh-credential: '{jenkins-ssh-credential}'
374
375 parameters:
376 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700377 name: ghprbPullId
378 default: '$ghprbPullId'
379 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
380
381 - string:
382 name: branch
383 default: '$ghprbTargetBranch'
384 description: 'Branch to run. Only used when manually run.'
385
386 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800387 name: buildNode
388 default: '{build-node}'
389 description: 'Name of the Jenkins executor node to run the job on'
390
391 - string:
392 name: project
393 default: '{project}'
394 description: 'Name of the project'
395
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700396 - string:
397 name: ghprbGhRepository
398 default: '{github-organization}/{project}'
399 description: 'Repository of the project.'
400
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800401 triggers:
402 - cord-infra-github-pr-trigger:
403 github_pr_org_list: '{obj:github_pr_org_list}'
404 github_pr_auth_id: '{github_pr_auth_id}'
405 status_context: 'CORD Jenkins - FOSSA Verification'
406
407 concurrent: false
408
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800409 project-type: pipeline
410 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800411
412# REUSE License Scan
413- job-template:
414 id: 'omec-reuse'
415 name: 'omec_{project}_reuse'
416 project-type: pipeline
417
418 description: |
419 <!-- Managed by Jenkins Job Builder -->
420 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
421
422 properties:
423 - cord-infra-properties:
424 build-days-to-keep: '{build-days-to-keep}'
425 artifact-num-to-keep: '{artifact-num-to-keep}'
426 - github:
427 url: 'https://github.com/{github-organization}/{project}'
428
429 wrappers:
430 - lf-infra-wrappers:
431 build-timeout: '{build-timeout}'
432 jenkins-ssh-credential: '{jenkins-ssh-credential}'
433
434 parameters:
435 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700436 name: ghprbPullId
437 default: '$ghprbPullId'
438 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
439
440 - string:
441 name: branch
442 default: '$ghprbTargetBranch'
443 description: 'Branch to run. Only used when manually run.'
444
445 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800446 name: buildNode
447 default: '{build-node}'
448 description: 'Name of the Jenkins executor node to run the job on'
449
450 - string:
451 name: project
452 default: '{project}'
453 description: 'Name of the project'
454
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700455 - string:
456 name: ghprbGhRepository
457 default: '{github-organization}/{project}'
458 description: 'Repository of the project.'
459
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800460 triggers:
461 - cord-infra-github-pr-trigger:
462 github_pr_org_list: '{obj:github_pr_org_list}'
463 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800464 status_context: 'CORD Jenkins - Licenses Verification'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800465
466 concurrent: false
467
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800468 project-type: pipeline
469 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800470
Zack Williams320b3142019-03-14 23:10:01 -0700471# tests
472- job-template:
473 id: 'omec-tc1'
474 name: 'omec_tc1'
475 project-type: pipeline
476
477 description: |
478 <!-- Managed by Jenkins Job Builder -->
479 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
480
481 properties:
482 - cord-infra-properties:
483 build-days-to-keep: '{build-days-to-keep}'
484 artifact-num-to-keep: '{artifact-num-to-keep}'
485
486 wrappers:
487 - lf-infra-wrappers:
488 build-timeout: '{build-timeout}'
489 jenkins-ssh-credential: '{jenkins-ssh-credential}'
490
491 parameters:
492 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700493 name: buildNode
494 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700495 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700496
You Wang83055442020-04-17 14:54:40 -0700497 - string:
498 name: mmeRepo
499 default: 'openmme'
500 description: 'Name of the MME repo to test (openmme/Nucleus)'
501
Zack Williams5d81f812019-02-27 14:37:09 -0700502 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700503
504 pipeline-scm:
505 script-path: 'Jenkinsfile-omec-test-TC1.groovy'
506 scm:
507 - git:
hwchiu14f97852019-10-08 10:51:11 -0700508 url: 'https://github.com/omec-project/omec-project-ci'
509 branches:
510 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700511
512- job-template:
513 id: 'omec-tc2'
Zack Williams320b3142019-03-14 23:10:01 -0700514 name: 'omec_tc2'
Zack Williams73c3cf42019-02-25 23:43:22 -0700515 project-type: pipeline
516
517 description: |
518 <!-- Managed by Jenkins Job Builder -->
519 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
520
521 properties:
522 - cord-infra-properties:
523 build-days-to-keep: '{build-days-to-keep}'
524 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700525
526 wrappers:
527 - lf-infra-wrappers:
528 build-timeout: '{build-timeout}'
529 jenkins-ssh-credential: '{jenkins-ssh-credential}'
530
531 parameters:
532 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700533 name: buildNode
534 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700535 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700536
You Wang83055442020-04-17 14:54:40 -0700537 - string:
538 name: mmeRepo
539 default: 'openmme'
540 description: 'Name of the MME repo to test (openmme/Nucleus)'
541
Zack Williams5d81f812019-02-27 14:37:09 -0700542 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700543
544 pipeline-scm:
545 script-path: 'Jenkinsfile-omec-test-TC2.groovy'
Kailashbe4dc092019-01-23 09:22:17 -0800546 scm:
547 - git:
hwchiu14f97852019-10-08 10:51:11 -0700548 url: 'https://github.com/omec-project/omec-project-ci'
549 branches:
550 - 'master'
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700551
552# Deploy staging
553- job-template:
554 id: 'omec-deploy-staging'
555 name: 'omec-deploy-staging'
556 project-type: pipeline
557
558 description: |
559 Automated build on AMI executor using pipeline/omec-deploy-staging.groovy. <br /><br />
560 Created from job-template {id} from ci-management/jjb/charts.yaml <br />
Jeremy Ronquillo0d731d32020-04-09 12:20:53 -0700561 Created by Jeremy Ronquillo - jeremyr@opennetworking.org <br />
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700562 Copyright (c) 2020 Open Networking Foundation (ONF)
563
564 properties:
565 - cord-infra-properties:
566 build-days-to-keep: '{build-days-to-keep}'
567 artifact-num-to-keep: '{artifact-num-to-keep}'
568
569 wrappers:
570 - lf-infra-wrappers:
571 build-timeout: '{build-timeout}'
572 jenkins-ssh-credential: '{jenkins-ssh-credential}'
573
574 parameters:
575 - string:
576 name: buildNode
577 default: 'omec-staging'
578 description: 'Name of the Jenkins executor node to run the job on.'
Jeremy Ronquillo0d731d32020-04-09 12:20:53 -0700579 - bool:
580 name: useProductionCluster
581 default: false
582 description: 'Check this option to use the production cluster instead of the staging cluster. <b>Use with caution.</b>'
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700583 - string:
584 name: registry
585 default: 'omecproject'
Jeremy Ronquillo0d731d32020-04-09 12:20:53 -0700586 description: 'Registry for all images that will be changed.'
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700587 - string:
588 name: hssdb_tag
589 default: ''
590 description: 'Tag for hssdb. Leave hssdb tag blank to omit changing.'
591 - string:
592 name: hss_tag
593 default: ''
594 description: 'Tag for hss. Leave hss tag blank to omit changing.'
595 - string:
596 name: mme_tag
597 default: ''
598 description: 'Tag for mme. Leave mme tag blank to omit changing.'
599 - string:
600 name: mmeExporter_tag
601 default: ''
602 description: 'Tag for mmeExporter. Leave mmeExporter tag blank to omit changing.'
603 - string:
604 name: spgwc_tag
605 default: ''
606 description: 'Tag for spgwc. Leave spgwc tag blank to omit changing.'
607 - string:
608 name: spgwu_tag
609 default: ''
610 description: 'Tag for spgwu. Leave spgwu tag blank to omit changing.'
611
612 concurrent: false
613
614 dsl: !include-raw-escape: pipeline/omec-deploy-staging.groovy
You Wang5c15a7a2020-04-02 11:24:33 -0700615
616# Post-merge job
617# Triggered by Github pull request merge
618- job-template:
619 id: omec-postmerge
620 name: '{project}_postmerge'
621 description: |
622 Created by {id} job-template from ci-management/jjb/omec-ci.yaml
623
624 properties:
625 - cord-infra-properties:
626 build-days-to-keep: '{build-days-to-keep}'
627 artifact-num-to-keep: '{artifact-num-to-keep}'
628
629 triggers:
630 - cord-infra-github-pr-trigger-merge:
631 project: '{project}'
632
633 wrappers:
634 - lf-infra-wrappers:
635 build-timeout: '{build-timeout}'
636 jenkins-ssh-credential: '{jenkins-ssh-credential}'
637
638 parameters:
639 - string:
640 name: buildNode
641 default: '{build-node}'
642 description: 'Name of the Jenkins node to run the job on'
643
644 - string:
You Wang40239452020-06-11 20:17:15 -0700645 name: registry
646 default: 'omecproject'
647 description: 'Docker registry to push images to'
648
649 - string:
You Wang5c15a7a2020-04-02 11:24:33 -0700650 name: repoName
651 default: ''
652 description: 'Name of the git repo. Populated by Generic Webhook Trigger'
653
654 - string:
655 name: repoUrl
656 default: ''
657 description: 'URL to the git repo. Populated by Generic Webhook Trigger'
658
659 - string:
660 name: branchName
661 default: ''
662 description: 'Branch of the project. Populated by Generic Webhook Trigger'
663
664 - string:
665 name: commitHash
666 default: ''
667 description: 'SHA string of the merged commit. Populated by Generic Webhook Trigger'
668
669 - string:
670 name: c3poBranchName
671 default: '{c3po-branch-name}'
672 description: 'Branch name of c3po repo which we run tests against'
673
674 - string:
675 name: ngicBranchName
676 default: '{ngic-branch-name}'
677 description: 'Branch name of ngic-rtc repo which we run tests against'
678
679 - string:
You Wang40239452020-06-11 20:17:15 -0700680 name: nucleusBranchName
681 default: '{nucleus-branch-name}'
682 description: 'Branch name of Nucleus repo which we run tests against'
You Wang5c15a7a2020-04-02 11:24:33 -0700683
684 - string:
685 name: maintainers
686 default: 'jeremyr@opennetworking.org, you@opennetworking.org'
687 description: "The person that sould be notified if this job fails"
688
689 project-type: pipeline
You Wang40239452020-06-11 20:17:15 -0700690 concurrent: false
You Wang5c15a7a2020-04-02 11:24:33 -0700691
692 dsl: !include-raw-escape: pipeline/{pipeline-file}
You Wang3cc17af2020-06-12 14:56:10 -0700693
694# OMEC CI job which builds docker images, deploys and tests OMEC
695- job-template:
696 id: 'omec-container'
697 name: 'omec_{project}_container'
698 project-type: pipeline
699
700 description: |
701 <!-- Managed by Jenkins Job Builder -->
702 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
703
704 properties:
705 - cord-infra-properties:
706 build-days-to-keep: '{build-days-to-keep}'
707 artifact-num-to-keep: '{artifact-num-to-keep}'
708 - github:
709 url: 'https://github.com/{github-organization}/{project}'
710 - build-blocker:
711 use-build-blocker: true
712 blocking-jobs:
713 - "omec_.*_container"
714
715 wrappers:
716 - lf-infra-wrappers:
717 build-timeout: '{build-timeout}'
718 jenkins-ssh-credential: '{jenkins-ssh-credential}'
719
720 parameters:
721 - string:
722 name: buildNode
723 default: 'ng40-host-node'
724 description: 'Name of the Jenkins executor node to run the job on'
725
726 - string:
727 name: project
728 default: '{project}'
729 description: 'Name of the project'
730
731 - string:
732 name: ghprbTargetBranch
733 default: '$ghprbTargetBranch'
734 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
735
736 - string:
737 name: ghprbPullId
738 default: '$ghprbPullId'
739 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
740
741 - string:
742 name: ghprbActualCommit
743 default: '$ghprbActualCommit'
744 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
745
746 - string:
747 name: registry
748 default: 'registry.central.aetherproject.net'
749 description: 'Docker registry that stores images built for CI testing'
750
751 - string:
752 name: c3poBranch
753 default: 'master'
754 description: 'Branch name of c3po repo which we run tests against'
755
756 - string:
757 name: nucleusBranch
758 default: 'master'
759 description: 'Branch name of Nucleus repo which we run tests against'
760
761 - string:
762 name: ngicBranch
763 default: 'central-cp-multi-upfs'
764 description: 'Branch name of ngic-rtc repo which we run tests against'
765
766 triggers:
767 - cord-infra-github-pr-trigger:
768 github_pr_org_list: '{obj:github_pr_org_list}'
769 github_pr_auth_id: '{github_pr_auth_id}'
770 status_context: 'CORD Jenkins - Container Based Verification'
771
772 concurrent: false
773
774 pipeline-scm:
775 script-path: 'Jenkinsfile-omec-container.groovy'
776 scm:
777 - git:
778 url: 'https://github.com/{github-organization}/omec-project-ci'
779 branches:
780 - 'master'
781
782# OMEC deployment job
783- job-template:
784 id: 'omec-deploy'
785 name: 'omec_deploy_{pod}'
786 project-type: pipeline
787
788 description: |
789 <!-- Managed by Jenkins Job Builder -->
790 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
791
792 properties:
793 - cord-infra-properties:
794 build-days-to-keep: '{build-days-to-keep}'
795 artifact-num-to-keep: '{artifact-num-to-keep}'
796
797 wrappers:
798 - lf-infra-wrappers:
799 build-timeout: '{build-timeout}'
800 jenkins-ssh-credential: '{jenkins-ssh-credential}'
801
802 parameters:
803 - string:
804 name: buildNode
805 default: '{build-node}'
806 description: 'Name of the Jenkins executor node to run the job on.'
807
808 - string:
809 name: cpContext
810 default: '{cp-context}'
811 description: 'K8S context for omec control plane.'
812
813 - string:
814 name: dpContext
815 default: '{dp-context}'
816 description: 'K8S context for omec data plane.'
817
818 - string:
819 name: centralConfig
820 default: '{central-config}'
821 description: 'Directory name for central yaml files under aether-pod-configs.'
822
823 - string:
824 name: edgeConfig
825 default: '{edge-config}'
826 description: 'Directory name for edge yaml files under aether-pod-configs.'
827
828 - string:
829 name: hssdbImage
830 default: 'omecproject/c3po-hssdb:master-latest'
831 description: 'Docker image for hssdb. Leave empty to use default helm-charts value'
832
833 - string:
834 name: hssImage
835 default: 'omecproject/c3po-hss:master-latest'
836 description: 'Docker image for hss. Leave empty to use default helm-charts value'
837
838 - string:
839 name: mmeImage
840 default: 'omecproject/nucleus:master-latest'
841 description: 'Docker image for mme. Leave empty to use default helm-charts value'
842
843 - string:
844 name: spgwcImage
845 default: 'omecproject/ngic-cp:central-cp-multi-upfs-latest'
846 description: 'Docker image for spgwc. Leave empty to use default helm-charts value'
847
848 - string:
849 name: spgwuImage
850 default: 'omecproject/ngic-dp:central-cp-multi-upfs-latest-debug'
851 description: 'Docker image for spgwu. Leave empty to use default helm-charts value'
852
853 concurrent: false
854
855 pipeline-scm:
856 script-path: 'Jenkinsfile-omec-deploy.groovy'
857 scm:
858 - git:
859 url: 'https://github.com/{github-organization}/omec-project-ci'
860 branches:
861 - 'master'
862
863# OMEC test job
864- job-template:
865 id: 'omec-ng40-test'
866 name: 'omec_ng40-test_{pod}'
867 project-type: pipeline
868
869 description: |
870 <!-- Managed by Jenkins Job Builder -->
871 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
872
873 properties:
874 - cord-infra-properties:
875 build-days-to-keep: '{build-days-to-keep}'
876 artifact-num-to-keep: '{artifact-num-to-keep}'
877
878 wrappers:
879 - lf-infra-wrappers:
880 build-timeout: '{build-timeout}'
881 jenkins-ssh-credential: '{jenkins-ssh-credential}'
882
883 parameters:
884 - string:
885 name: buildNode
886 default: '{build-node}'
887 description: 'Name of the Jenkins executor node to run the job on.'
888
889 - string:
890 name: ng40VM
891 default: '{ng40-vm}'
892 description: 'user@IP for accessing NG40 VM from the build node.'
893
894 - string:
895 name: ntlFile
896 default: 'run.ntl'
897 description: 'NG40 test automation file'
898
899 concurrent: false
900
901 pipeline-scm:
902 script-path: 'Jenkinsfile-omec-ng40-test.groovy'
903 scm:
904 - git:
905 url: 'https://github.com/{github-organization}/omec-project-ci'
906 branches:
907 - 'master'