blob: 0a75009e4be0936976106f3ad2acd72ff137420b [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 Wang5c15a7a2020-04-02 11:24:33 -070019 - 'omec-postmerge':
20 project: '{name}'
21 build-node: 'omec-qa'
22 c3po-branch-name: 'multiUpfs'
You Wangb242ae42020-04-15 12:32:32 -070023 ngic-branch-name: 'central-cp-multi-upfs'
You Wang5c15a7a2020-04-02 11:24:33 -070024 openmme-branch-name: 'paging'
25 pipeline-file: 'omec-postmerge.groovy'
Zack Williams320b3142019-03-14 23:10:01 -070026
Zack Williams73c3cf42019-02-25 23:43:22 -070027# for ngic-rtc
Kailashbe4dc092019-01-23 09:22:17 -080028- project:
Zack Williams73c3cf42019-02-25 23:43:22 -070029 name: ngic-rtc
30 project: '{name}'
Kailashbe4dc092019-01-23 09:22:17 -080031
Zack Williamsb3292082019-10-11 17:15:18 -070032 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070033
Zack Williams1e325b22019-07-24 17:52:57 -070034 github-organization: 'omec-project'
35
Zack Williams5d81f812019-02-27 14:37:09 -070036 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
37 github_pr_org_list:
38 - 'omec-project'
39
Kailashbe4dc092019-01-23 09:22:17 -080040 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070041 - 'omec-combined':
42 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -070043 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -070044 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070045 sub-project: '{name}'
You Wang8a09f522020-04-22 20:14:57 -070046 branch: 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -070047 pipeline-file: 'Jenkinsfile-omec-install-ngic-rtc-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080048 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080049 pipeline-file: 'omec-fossa-scan.groovy'
50 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080051 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080052 pipeline-file: 'omec-reuse-scan.groovy'
53 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -070054 - 'docker-publish-github':
55 build-timeout: 30
56 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -070057 build-node: 'ubuntu16.04-basebuild-4c-8g'
Zack Williams73c3cf42019-02-25 23:43:22 -070058
Zack Williamse306e572019-04-18 07:12:46 -070059# for c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070060- project:
Zack Williamse306e572019-04-18 07:12:46 -070061 name: c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070062 project: '{name}'
63
Zack Williamsb3292082019-10-11 17:15:18 -070064 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070065
Zack Williams1e325b22019-07-24 17:52:57 -070066 github-organization: 'omec-project'
67
Zack Williams5d81f812019-02-27 14:37:09 -070068 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
69 github_pr_org_list:
70 - 'omec-project'
71
Zack Williams73c3cf42019-02-25 23:43:22 -070072 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070073 - 'omec-combined':
74 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -070075 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -070076 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070077 sub-project: 'c3po-sgx'
You Wang8addd4c2020-04-14 16:25:57 -070078 branch: 'master'
Zack Williams62021452019-04-15 13:23:46 -070079 pipeline-file: 'Jenkinsfile-omec-install-c3po-sgx-vnf.groovy'
Zack Williamse306e572019-04-18 07:12:46 -070080 - 'omec-install':
81 sub-project: 'c3po-hss'
You Wang8addd4c2020-04-14 16:25:57 -070082 branch: 'master'
Zack Williamse306e572019-04-18 07:12:46 -070083 pipeline-file: 'Jenkinsfile-omec-install-c3po-hss-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080084 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080085 pipeline-file: 'omec-fossa-scan.groovy'
86 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080087 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080088 pipeline-file: 'omec-reuse-scan.groovy'
89 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -070090 - 'docker-publish-github':
91 build-timeout: 30
92 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -070093 build-node: 'ubuntu16.04-basebuild-1c-2g'
Zack Williams73c3cf42019-02-25 23:43:22 -070094
95# for openmme
96- project:
97 name: openmme
98 project: '{name}'
99
Zack Williamsdf7f9d32019-11-05 07:40:20 -0700100 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -0700101
Zack Williams1e325b22019-07-24 17:52:57 -0700102 github-organization: 'omec-project'
103
Zack Williams5d81f812019-02-27 14:37:09 -0700104 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
105 github_pr_org_list:
106 - 'omec-project'
107
Zack Williams73c3cf42019-02-25 23:43:22 -0700108 jobs:
Zack Williams320b3142019-03-14 23:10:01 -0700109 - 'omec-combined':
110 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -0700111 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -0700112 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -0700113 sub-project: '{name}'
You Wang8addd4c2020-04-14 16:25:57 -0700114 branch: 'paging'
Zack Williams73c3cf42019-02-25 23:43:22 -0700115 pipeline-file: 'Jenkinsfile-omec-install-openmme-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800116 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800117 pipeline-file: 'omec-fossa-scan.groovy'
118 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800119 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800120 pipeline-file: 'omec-reuse-scan.groovy'
121 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -0700122 - 'docker-publish-github':
123 build-timeout: 30
124 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -0700125 build-node: 'ubuntu16.04-basebuild-1c-2g'
Zack Williams73c3cf42019-02-25 23:43:22 -0700126
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800127# for nucleus
128- project:
129 name: Nucleus
130 project: '{name}'
131
132 build-node: 'intel-102'
133
134 github-organization: 'omec-project'
135
136 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
137 github_pr_org_list:
138 - 'omec-project'
139
140 jobs:
You Wang83055442020-04-17 14:54:40 -0700141 - 'omec-combined':
142 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
143 mme-repo: 'Nucleus'
144 - 'omec-install':
145 sub-project: '{name}'
146 branch: 'master'
147 pipeline-file: 'Jenkinsfile-omec-install-Nucleus-vnf.groovy'
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800148 - 'omec-fossa':
149 pipeline-file: 'omec-fossa-scan.groovy'
150 build-node: 'omec-qa'
151 - 'omec-reuse':
152 pipeline-file: 'omec-reuse-scan.groovy'
153 build-node: 'omec-qa'
154
Jeremy Ronquilloea6d6202020-03-04 10:27:35 -0800155# for freediameter
156- project:
157 name: freediameter
158 project: '{name}'
159
160 build-node: 'intel-102'
161
162 github-organization: 'omec-project'
163
164 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
165 github_pr_org_list:
166 - 'omec-project'
167
168 jobs:
169 - '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'
175
Jeremy Ronquillocc302e12020-03-30 11:44:49 -0700176# for ignite
177- project:
178 name: ignite
179 project: '{name}'
180
181 build-node: 'intel-102'
182
183 github-organization: 'omec-project'
184
185 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
186 github_pr_org_list:
187 - 'omec-project'
188
189 jobs:
190 - 'omec-fossa':
191 pipeline-file: 'omec-fossa-scan.groovy'
192 build-node: 'omec-qa'
193 - 'omec-reuse':
194 pipeline-file: 'omec-reuse-scan.groovy'
195 build-node: 'omec-qa'
196
You Wangccc13492020-04-01 11:11:59 -0700197# for upf-epc
198- project:
199 name: upf-epc
200 project: '{name}'
201
202 github-organization: 'omec-project'
203
204 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
205 github_pr_org_list:
206 - 'omec-project'
207
208 jobs:
209 - 'omec-fossa':
210 pipeline-file: 'omec-fossa-scan.groovy'
211 build-node: 'omec-qa'
212 - 'omec-reuse':
213 pipeline-file: 'omec-reuse-scan.groovy'
214 build-node: 'omec-qa'
215 - 'docker-publish-github':
216 build-timeout: 30
217 docker-repo: 'omecproject'
You Wanged3a4c52020-04-04 15:44:29 -0700218 build-node: 'ubuntu16.04-basebuild-2c-4g'
You Wangccc13492020-04-01 11:11:59 -0700219
Zack Williams320b3142019-03-14 23:10:01 -0700220# Combined pipeline
Kailashbe4dc092019-01-23 09:22:17 -0800221- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700222 id: 'omec-combined'
223 name: 'omec_{project}_combined'
Kailashbe4dc092019-01-23 09:22:17 -0800224 project-type: pipeline
225
226 description: |
227 <!-- Managed by Jenkins Job Builder -->
Zack Williams73c3cf42019-02-25 23:43:22 -0700228 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
Kailashbe4dc092019-01-23 09:22:17 -0800229
230 properties:
231 - cord-infra-properties:
232 build-days-to-keep: '{build-days-to-keep}'
233 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700234 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700235 url: 'https://github.com/{github-organization}/{project}'
Zack Williams320b3142019-03-14 23:10:01 -0700236 - build-blocker:
237 use-build-blocker: true
238 blocking-jobs:
Zack Williams6af01fe2019-03-15 11:08:53 -0700239 - "omec_.*_combined"
Kailashbe4dc092019-01-23 09:22:17 -0800240
241 wrappers:
242 - lf-infra-wrappers:
243 build-timeout: '{build-timeout}'
244 jenkins-ssh-credential: '{jenkins-ssh-credential}'
245
246 parameters:
247 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700248 name: buildNode
249 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700250 description: 'Name of the Jenkins executor node to run the job on'
Kailashbe4dc092019-01-23 09:22:17 -0800251
252 - string:
hwchiu14f97852019-10-08 10:51:11 -0700253 name: project
254 default: '{project}'
255 description: 'Name of the project'
Kailashbe4dc092019-01-23 09:22:17 -0800256
You Wang83055442020-04-17 14:54:40 -0700257 - string:
258 name: mmeRepo
259 default: '{mme-repo}'
260 description: 'Name of the MME repo to test (openmme/Nucleus)'
261
Zack Williams73c3cf42019-02-25 23:43:22 -0700262 triggers:
Zack Williams5d81f812019-02-27 14:37:09 -0700263 - cord-infra-github-pr-trigger:
264 github_pr_org_list: '{obj:github_pr_org_list}'
265 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800266 status_context: 'CORD Jenkins - Combined Steps Verification'
Zack Williams73c3cf42019-02-25 23:43:22 -0700267
Zack Williams5d81f812019-02-27 14:37:09 -0700268 concurrent: false
Kailashbe4dc092019-01-23 09:22:17 -0800269
270 pipeline-scm:
Zack Williams73c3cf42019-02-25 23:43:22 -0700271 script-path: '{pipeline-file}'
272 scm:
273 - git:
hwchiu14f97852019-10-08 10:51:11 -0700274 url: 'https://github.com/{github-organization}/omec-project-ci'
275 branches:
276 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700277
Zack Williams320b3142019-03-14 23:10:01 -0700278# install jobs, run for each project
Zack Williams73c3cf42019-02-25 23:43:22 -0700279- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700280 id: 'omec-install'
Zack Williamse306e572019-04-18 07:12:46 -0700281 name: 'omec_{sub-project}_install'
Zack Williams73c3cf42019-02-25 23:43:22 -0700282 project-type: pipeline
283
284 description: |
285 <!-- Managed by Jenkins Job Builder -->
286 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
287
288 properties:
289 - cord-infra-properties:
290 build-days-to-keep: '{build-days-to-keep}'
291 artifact-num-to-keep: '{artifact-num-to-keep}'
292 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700293 url: 'https://github.com/{github-organization}/{project}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700294
295 wrappers:
296 - lf-infra-wrappers:
297 build-timeout: '{build-timeout}'
298 jenkins-ssh-credential: '{jenkins-ssh-credential}'
299
300 parameters:
301 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700302 name: buildNode
303 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700304 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700305
306 - string:
hwchiu14f97852019-10-08 10:51:11 -0700307 name: project
308 default: '{project}'
309 description: 'Name of the project'
Zack Williams73c3cf42019-02-25 23:43:22 -0700310
You Wang8addd4c2020-04-14 16:25:57 -0700311 - string:
312 name: branch
313 default: '{branch}'
314 description: 'Branch of the project'
315
Zack Williams320b3142019-03-14 23:10:01 -0700316 concurrent: false
317
318 pipeline-scm:
319 script-path: '{pipeline-file}'
320 scm:
321 - git:
hwchiu14f97852019-10-08 10:51:11 -0700322 url: 'https://github.com/{github-organization}/omec-project-ci'
323 branches:
324 - 'master'
Zack Williams320b3142019-03-14 23:10:01 -0700325
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800326# FOSSA License Scan
327- job-template:
328 id: 'omec-fossa'
329 name: 'omec_{project}_fossa'
330 project-type: pipeline
331
332 description: |
333 <!-- Managed by Jenkins Job Builder -->
334 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
335
336 properties:
337 - cord-infra-properties:
338 build-days-to-keep: '{build-days-to-keep}'
339 artifact-num-to-keep: '{artifact-num-to-keep}'
340 - github:
341 url: 'https://github.com/{github-organization}/{project}'
342
343 wrappers:
344 - lf-infra-wrappers:
345 build-timeout: '{build-timeout}'
346 jenkins-ssh-credential: '{jenkins-ssh-credential}'
347
348 parameters:
349 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700350 name: ghprbPullId
351 default: '$ghprbPullId'
352 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
353
354 - string:
355 name: branch
356 default: '$ghprbTargetBranch'
357 description: 'Branch to run. Only used when manually run.'
358
359 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800360 name: buildNode
361 default: '{build-node}'
362 description: 'Name of the Jenkins executor node to run the job on'
363
364 - string:
365 name: project
366 default: '{project}'
367 description: 'Name of the project'
368
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700369 - string:
370 name: ghprbGhRepository
371 default: '{github-organization}/{project}'
372 description: 'Repository of the project.'
373
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800374 triggers:
375 - cord-infra-github-pr-trigger:
376 github_pr_org_list: '{obj:github_pr_org_list}'
377 github_pr_auth_id: '{github_pr_auth_id}'
378 status_context: 'CORD Jenkins - FOSSA Verification'
379
380 concurrent: false
381
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800382 project-type: pipeline
383 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800384
385# REUSE License Scan
386- job-template:
387 id: 'omec-reuse'
388 name: 'omec_{project}_reuse'
389 project-type: pipeline
390
391 description: |
392 <!-- Managed by Jenkins Job Builder -->
393 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
394
395 properties:
396 - cord-infra-properties:
397 build-days-to-keep: '{build-days-to-keep}'
398 artifact-num-to-keep: '{artifact-num-to-keep}'
399 - github:
400 url: 'https://github.com/{github-organization}/{project}'
401
402 wrappers:
403 - lf-infra-wrappers:
404 build-timeout: '{build-timeout}'
405 jenkins-ssh-credential: '{jenkins-ssh-credential}'
406
407 parameters:
408 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700409 name: ghprbPullId
410 default: '$ghprbPullId'
411 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
412
413 - string:
414 name: branch
415 default: '$ghprbTargetBranch'
416 description: 'Branch to run. Only used when manually run.'
417
418 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800419 name: buildNode
420 default: '{build-node}'
421 description: 'Name of the Jenkins executor node to run the job on'
422
423 - string:
424 name: project
425 default: '{project}'
426 description: 'Name of the project'
427
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700428 - string:
429 name: ghprbGhRepository
430 default: '{github-organization}/{project}'
431 description: 'Repository of the project.'
432
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800433 triggers:
434 - cord-infra-github-pr-trigger:
435 github_pr_org_list: '{obj:github_pr_org_list}'
436 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800437 status_context: 'CORD Jenkins - Licenses Verification'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800438
439 concurrent: false
440
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800441 project-type: pipeline
442 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800443
Zack Williams320b3142019-03-14 23:10:01 -0700444# tests
445- job-template:
446 id: 'omec-tc1'
447 name: 'omec_tc1'
448 project-type: pipeline
449
450 description: |
451 <!-- Managed by Jenkins Job Builder -->
452 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
453
454 properties:
455 - cord-infra-properties:
456 build-days-to-keep: '{build-days-to-keep}'
457 artifact-num-to-keep: '{artifact-num-to-keep}'
458
459 wrappers:
460 - lf-infra-wrappers:
461 build-timeout: '{build-timeout}'
462 jenkins-ssh-credential: '{jenkins-ssh-credential}'
463
464 parameters:
465 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700466 name: buildNode
467 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700468 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700469
You Wang83055442020-04-17 14:54:40 -0700470 - string:
471 name: mmeRepo
472 default: 'openmme'
473 description: 'Name of the MME repo to test (openmme/Nucleus)'
474
Zack Williams5d81f812019-02-27 14:37:09 -0700475 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700476
477 pipeline-scm:
478 script-path: 'Jenkinsfile-omec-test-TC1.groovy'
479 scm:
480 - git:
hwchiu14f97852019-10-08 10:51:11 -0700481 url: 'https://github.com/omec-project/omec-project-ci'
482 branches:
483 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700484
485- job-template:
486 id: 'omec-tc2'
Zack Williams320b3142019-03-14 23:10:01 -0700487 name: 'omec_tc2'
Zack Williams73c3cf42019-02-25 23:43:22 -0700488 project-type: pipeline
489
490 description: |
491 <!-- Managed by Jenkins Job Builder -->
492 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
493
494 properties:
495 - cord-infra-properties:
496 build-days-to-keep: '{build-days-to-keep}'
497 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700498
499 wrappers:
500 - lf-infra-wrappers:
501 build-timeout: '{build-timeout}'
502 jenkins-ssh-credential: '{jenkins-ssh-credential}'
503
504 parameters:
505 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700506 name: buildNode
507 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700508 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700509
You Wang83055442020-04-17 14:54:40 -0700510 - string:
511 name: mmeRepo
512 default: 'openmme'
513 description: 'Name of the MME repo to test (openmme/Nucleus)'
514
Zack Williams5d81f812019-02-27 14:37:09 -0700515 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700516
517 pipeline-scm:
518 script-path: 'Jenkinsfile-omec-test-TC2.groovy'
Kailashbe4dc092019-01-23 09:22:17 -0800519 scm:
520 - git:
hwchiu14f97852019-10-08 10:51:11 -0700521 url: 'https://github.com/omec-project/omec-project-ci'
522 branches:
523 - 'master'
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700524
525# Deploy staging
526- job-template:
527 id: 'omec-deploy-staging'
528 name: 'omec-deploy-staging'
529 project-type: pipeline
530
531 description: |
532 Automated build on AMI executor using pipeline/omec-deploy-staging.groovy. <br /><br />
533 Created from job-template {id} from ci-management/jjb/charts.yaml <br />
Jeremy Ronquillo0d731d32020-04-09 12:20:53 -0700534 Created by Jeremy Ronquillo - jeremyr@opennetworking.org <br />
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700535 Copyright (c) 2020 Open Networking Foundation (ONF)
536
537 properties:
538 - cord-infra-properties:
539 build-days-to-keep: '{build-days-to-keep}'
540 artifact-num-to-keep: '{artifact-num-to-keep}'
541
542 wrappers:
543 - lf-infra-wrappers:
544 build-timeout: '{build-timeout}'
545 jenkins-ssh-credential: '{jenkins-ssh-credential}'
546
547 parameters:
548 - string:
549 name: buildNode
550 default: 'omec-staging'
551 description: 'Name of the Jenkins executor node to run the job on.'
Jeremy Ronquillo0d731d32020-04-09 12:20:53 -0700552 - bool:
553 name: useProductionCluster
554 default: false
555 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 -0700556 - string:
557 name: registry
558 default: 'omecproject'
Jeremy Ronquillo0d731d32020-04-09 12:20:53 -0700559 description: 'Registry for all images that will be changed.'
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700560 - string:
561 name: hssdb_tag
562 default: ''
563 description: 'Tag for hssdb. Leave hssdb tag blank to omit changing.'
564 - string:
565 name: hss_tag
566 default: ''
567 description: 'Tag for hss. Leave hss tag blank to omit changing.'
568 - string:
569 name: mme_tag
570 default: ''
571 description: 'Tag for mme. Leave mme tag blank to omit changing.'
572 - string:
573 name: mmeExporter_tag
574 default: ''
575 description: 'Tag for mmeExporter. Leave mmeExporter tag blank to omit changing.'
576 - string:
577 name: spgwc_tag
578 default: ''
579 description: 'Tag for spgwc. Leave spgwc tag blank to omit changing.'
580 - string:
581 name: spgwu_tag
582 default: ''
583 description: 'Tag for spgwu. Leave spgwu tag blank to omit changing.'
584
585 concurrent: false
586
587 dsl: !include-raw-escape: pipeline/omec-deploy-staging.groovy
You Wang5c15a7a2020-04-02 11:24:33 -0700588
589# Post-merge job
590# Triggered by Github pull request merge
591- job-template:
592 id: omec-postmerge
593 name: '{project}_postmerge'
594 description: |
595 Created by {id} job-template from ci-management/jjb/omec-ci.yaml
596
597 properties:
598 - cord-infra-properties:
599 build-days-to-keep: '{build-days-to-keep}'
600 artifact-num-to-keep: '{artifact-num-to-keep}'
601
602 triggers:
603 - cord-infra-github-pr-trigger-merge:
604 project: '{project}'
605
606 wrappers:
607 - lf-infra-wrappers:
608 build-timeout: '{build-timeout}'
609 jenkins-ssh-credential: '{jenkins-ssh-credential}'
610
611 parameters:
612 - string:
613 name: buildNode
614 default: '{build-node}'
615 description: 'Name of the Jenkins node to run the job on'
616
617 - string:
618 name: repoName
619 default: ''
620 description: 'Name of the git repo. Populated by Generic Webhook Trigger'
621
622 - string:
623 name: repoUrl
624 default: ''
625 description: 'URL to the git repo. Populated by Generic Webhook Trigger'
626
627 - string:
628 name: branchName
629 default: ''
630 description: 'Branch of the project. Populated by Generic Webhook Trigger'
631
632 - string:
633 name: commitHash
634 default: ''
635 description: 'SHA string of the merged commit. Populated by Generic Webhook Trigger'
636
637 - string:
638 name: c3poBranchName
639 default: '{c3po-branch-name}'
640 description: 'Branch name of c3po repo which we run tests against'
641
642 - string:
643 name: ngicBranchName
644 default: '{ngic-branch-name}'
645 description: 'Branch name of ngic-rtc repo which we run tests against'
646
647 - string:
648 name: openmmeBranchName
649 default: '{openmme-branch-name}'
650 description: 'Branch name of openmme repo which we run tests against'
651
652 - string:
653 name: maintainers
654 default: 'jeremyr@opennetworking.org, you@opennetworking.org'
655 description: "The person that sould be notified if this job fails"
656
657 project-type: pipeline
658 concurrent: true
659
660 dsl: !include-raw-escape: pipeline/{pipeline-file}