blob: 60f86cd9cf51ce67ebfc86a545f322d1e7fd7727 [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'
Jeremy Ronquillo6d1e08a2020-04-03 11:31:32 -070019 - 'omec-deploy-staging'
You Wang3cc17af2020-06-12 14:56:10 -070020 - 'omec-deploy':
21 pod: 'dev'
22 build-node: 'omec-ci'
23 cp-context: 'dev-central-gcp'
24 dp-context: 'dev-edge-onf-menlo'
25 central-config: 'gcp-dev'
26 edge-config: 'menlo-dev'
27 - 'omec-ng40-test':
28 pod: 'dev'
29 build-node: 'ng40-host-node'
30 ng40-vm: 'ng40@192.168.122.101'
You Wang5c15a7a2020-04-02 11:24:33 -070031 - 'omec-postmerge':
32 project: '{name}'
You Wang40239452020-06-11 20:17:15 -070033 build-node: 'omec-ci'
You Wangb8bfa932020-05-29 16:22:15 -070034 c3po-branch-name: 'master'
You Wangb242ae42020-04-15 12:32:32 -070035 ngic-branch-name: 'central-cp-multi-upfs'
You Wang40239452020-06-11 20:17:15 -070036 nucleus-branch-name: 'master'
You Wang5c15a7a2020-04-02 11:24:33 -070037 pipeline-file: 'omec-postmerge.groovy'
Zack Williams320b3142019-03-14 23:10:01 -070038
Zack Williams73c3cf42019-02-25 23:43:22 -070039# for ngic-rtc
Kailashbe4dc092019-01-23 09:22:17 -080040- project:
Zack Williams73c3cf42019-02-25 23:43:22 -070041 name: ngic-rtc
42 project: '{name}'
Kailashbe4dc092019-01-23 09:22:17 -080043
Zack Williamsb3292082019-10-11 17:15:18 -070044 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070045
Zack Williams1e325b22019-07-24 17:52:57 -070046 github-organization: 'omec-project'
47
Zack Williams5d81f812019-02-27 14:37:09 -070048 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
49 github_pr_org_list:
50 - 'omec-project'
51
Kailashbe4dc092019-01-23 09:22:17 -080052 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070053 - 'omec-combined':
54 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -070055 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -070056 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070057 sub-project: '{name}'
You Wang4cba3612020-04-29 16:47:10 -070058 branch: 'central-cp-multi-upfs'
Zack Williams73c3cf42019-02-25 23:43:22 -070059 pipeline-file: 'Jenkinsfile-omec-install-ngic-rtc-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080060 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080061 pipeline-file: 'omec-fossa-scan.groovy'
62 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080063 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -080064 pipeline-file: 'omec-reuse-scan.groovy'
65 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -070066 - 'docker-publish-github':
67 build-timeout: 30
68 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -070069 build-node: 'ubuntu16.04-basebuild-4c-8g'
Jeremy Ronquillo659f6682020-04-16 13:18:24 -070070 - 'omec-comac-in-a-box':
71 build-node: 'comac_in_a_box'
You Wang3cc17af2020-06-12 14:56:10 -070072 - 'omec-container'
Zack Williams73c3cf42019-02-25 23:43:22 -070073
Zack Williamse306e572019-04-18 07:12:46 -070074# for c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070075- project:
Zack Williamse306e572019-04-18 07:12:46 -070076 name: c3po
Zack Williams73c3cf42019-02-25 23:43:22 -070077 project: '{name}'
78
Zack Williamsb3292082019-10-11 17:15:18 -070079 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -070080
Zack Williams1e325b22019-07-24 17:52:57 -070081 github-organization: 'omec-project'
82
Zack Williams5d81f812019-02-27 14:37:09 -070083 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
84 github_pr_org_list:
85 - 'omec-project'
86
Zack Williams73c3cf42019-02-25 23:43:22 -070087 jobs:
Zack Williams320b3142019-03-14 23:10:01 -070088 - 'omec-combined':
89 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -070090 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -070091 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -070092 sub-project: 'c3po-sgx'
You Wang8addd4c2020-04-14 16:25:57 -070093 branch: 'master'
Zack Williams62021452019-04-15 13:23:46 -070094 pipeline-file: 'Jenkinsfile-omec-install-c3po-sgx-vnf.groovy'
Zack Williamse306e572019-04-18 07:12:46 -070095 - 'omec-install':
96 sub-project: 'c3po-hss'
You Wang8addd4c2020-04-14 16:25:57 -070097 branch: 'master'
Zack Williamse306e572019-04-18 07:12:46 -070098 pipeline-file: 'Jenkinsfile-omec-install-c3po-hss-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -080099 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800100 pipeline-file: 'omec-fossa-scan.groovy'
101 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800102 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800103 pipeline-file: 'omec-reuse-scan.groovy'
104 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -0700105 - 'docker-publish-github':
106 build-timeout: 30
107 docker-repo: 'omecproject'
You Wang715d5fc2020-04-30 16:23:35 -0700108 build-node: 'ubuntu16.04-basebuild-8c-15g'
Jeremy Ronquillo659f6682020-04-16 13:18:24 -0700109 - 'omec-comac-in-a-box':
110 build-node: 'comac_in_a_box'
You Wang3cc17af2020-06-12 14:56:10 -0700111 - 'omec-container'
Zack Williams73c3cf42019-02-25 23:43:22 -0700112
113# for openmme
114- project:
115 name: openmme
116 project: '{name}'
117
Zack Williamsdf7f9d32019-11-05 07:40:20 -0700118 build-node: 'intel-102'
Zack Williams5d81f812019-02-27 14:37:09 -0700119
Zack Williams1e325b22019-07-24 17:52:57 -0700120 github-organization: 'omec-project'
121
Zack Williams5d81f812019-02-27 14:37:09 -0700122 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
123 github_pr_org_list:
124 - 'omec-project'
125
Zack Williams73c3cf42019-02-25 23:43:22 -0700126 jobs:
Zack Williams320b3142019-03-14 23:10:01 -0700127 - 'omec-combined':
128 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
You Wang83055442020-04-17 14:54:40 -0700129 mme-repo: 'openmme'
Zack Williams320b3142019-03-14 23:10:01 -0700130 - 'omec-install':
Zack Williamse306e572019-04-18 07:12:46 -0700131 sub-project: '{name}'
You Wanga1dcf252020-05-19 17:22:42 -0700132 branch: 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700133 pipeline-file: 'Jenkinsfile-omec-install-openmme-vnf.groovy'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800134 - 'omec-fossa':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800135 pipeline-file: 'omec-fossa-scan.groovy'
136 build-node: 'omec-qa'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800137 - 'omec-reuse':
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800138 pipeline-file: 'omec-reuse-scan.groovy'
139 build-node: 'omec-qa'
Zack Williams1e325b22019-07-24 17:52:57 -0700140 - 'docker-publish-github':
141 build-timeout: 30
142 docker-repo: 'omecproject'
You Wang8512b832020-03-25 14:47:56 -0700143 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquillo659f6682020-04-16 13:18:24 -0700144 - 'omec-comac-in-a-box':
145 build-node: 'comac_in_a_box'
Zack Williams73c3cf42019-02-25 23:43:22 -0700146
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800147# for nucleus
148- project:
149 name: Nucleus
150 project: '{name}'
151
152 build-node: 'intel-102'
153
154 github-organization: 'omec-project'
155
156 github_pr_auth_id: '64fe2b1a-b33a-4f13-8442-ad8360434003'
157 github_pr_org_list:
158 - 'omec-project'
159
160 jobs:
You Wang83055442020-04-17 14:54:40 -0700161 - 'omec-combined':
162 pipeline-file: 'Jenkinsfile-omec-combined.groovy'
163 mme-repo: 'Nucleus'
164 - 'omec-install':
165 sub-project: '{name}'
166 branch: 'master'
167 pipeline-file: 'Jenkinsfile-omec-install-Nucleus-vnf.groovy'
Jeremy Ronquilloa9b8e4d2020-02-28 13:59:12 -0800168 - 'omec-fossa':
169 pipeline-file: 'omec-fossa-scan.groovy'
170 build-node: 'omec-qa'
171 - 'omec-reuse':
172 pipeline-file: 'omec-reuse-scan.groovy'
173 build-node: 'omec-qa'
You Wangf5739552020-06-02 16:36:31 -0700174 - 'docker-publish-github':
175 build-timeout: 60
176 docker-repo: 'omecproject'
177 build-node: 'ubuntu16.04-basebuild-1c-2g'
Jeremy Ronquillo659f6682020-04-16 13:18:24 -0700178 - 'omec-comac-in-a-box':
179 build-node: 'comac_in_a_box'
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'
198 build-node: 'omec-qa'
199 - 'omec-reuse':
200 pipeline-file: 'omec-reuse-scan.groovy'
201 build-node: 'omec-qa'
202
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'
219 build-node: 'omec-qa'
220 - 'omec-reuse':
221 pipeline-file: 'omec-reuse-scan.groovy'
222 build-node: 'omec-qa'
223
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'
238 build-node: 'omec-qa'
239 - 'omec-reuse':
240 pipeline-file: 'omec-reuse-scan.groovy'
241 build-node: 'omec-qa'
242 - '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 Wangccc13492020-04-01 11:11:59 -0700247
Zack Williams320b3142019-03-14 23:10:01 -0700248# Combined pipeline
Kailashbe4dc092019-01-23 09:22:17 -0800249- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700250 id: 'omec-combined'
251 name: 'omec_{project}_combined'
Kailashbe4dc092019-01-23 09:22:17 -0800252 project-type: pipeline
253
254 description: |
255 <!-- Managed by Jenkins Job Builder -->
Zack Williams73c3cf42019-02-25 23:43:22 -0700256 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
Kailashbe4dc092019-01-23 09:22:17 -0800257
258 properties:
259 - cord-infra-properties:
260 build-days-to-keep: '{build-days-to-keep}'
261 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700262 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700263 url: 'https://github.com/{github-organization}/{project}'
Zack Williams320b3142019-03-14 23:10:01 -0700264 - build-blocker:
265 use-build-blocker: true
266 blocking-jobs:
Zack Williams6af01fe2019-03-15 11:08:53 -0700267 - "omec_.*_combined"
Kailashbe4dc092019-01-23 09:22:17 -0800268
269 wrappers:
270 - lf-infra-wrappers:
271 build-timeout: '{build-timeout}'
272 jenkins-ssh-credential: '{jenkins-ssh-credential}'
273
274 parameters:
275 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700276 name: buildNode
277 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700278 description: 'Name of the Jenkins executor node to run the job on'
Kailashbe4dc092019-01-23 09:22:17 -0800279
280 - string:
hwchiu14f97852019-10-08 10:51:11 -0700281 name: project
282 default: '{project}'
283 description: 'Name of the project'
Kailashbe4dc092019-01-23 09:22:17 -0800284
You Wang83055442020-04-17 14:54:40 -0700285 - string:
286 name: mmeRepo
287 default: '{mme-repo}'
288 description: 'Name of the MME repo to test (openmme/Nucleus)'
289
Zack Williams73c3cf42019-02-25 23:43:22 -0700290 triggers:
Zack Williams5d81f812019-02-27 14:37:09 -0700291 - cord-infra-github-pr-trigger:
292 github_pr_org_list: '{obj:github_pr_org_list}'
293 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800294 status_context: 'CORD Jenkins - Combined Steps Verification'
Zack Williams73c3cf42019-02-25 23:43:22 -0700295
Zack Williams5d81f812019-02-27 14:37:09 -0700296 concurrent: false
Kailashbe4dc092019-01-23 09:22:17 -0800297
298 pipeline-scm:
Zack Williams73c3cf42019-02-25 23:43:22 -0700299 script-path: '{pipeline-file}'
300 scm:
301 - git:
hwchiu14f97852019-10-08 10:51:11 -0700302 url: 'https://github.com/{github-organization}/omec-project-ci'
303 branches:
304 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700305
Zack Williams320b3142019-03-14 23:10:01 -0700306# install jobs, run for each project
Zack Williams73c3cf42019-02-25 23:43:22 -0700307- job-template:
Zack Williams320b3142019-03-14 23:10:01 -0700308 id: 'omec-install'
Zack Williamse306e572019-04-18 07:12:46 -0700309 name: 'omec_{sub-project}_install'
Zack Williams73c3cf42019-02-25 23:43:22 -0700310 project-type: pipeline
311
312 description: |
313 <!-- Managed by Jenkins Job Builder -->
314 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
315
316 properties:
317 - cord-infra-properties:
318 build-days-to-keep: '{build-days-to-keep}'
319 artifact-num-to-keep: '{artifact-num-to-keep}'
320 - github:
Zack Williams1e325b22019-07-24 17:52:57 -0700321 url: 'https://github.com/{github-organization}/{project}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700322
323 wrappers:
324 - lf-infra-wrappers:
325 build-timeout: '{build-timeout}'
326 jenkins-ssh-credential: '{jenkins-ssh-credential}'
327
328 parameters:
329 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700330 name: buildNode
331 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700332 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700333
334 - string:
hwchiu14f97852019-10-08 10:51:11 -0700335 name: project
336 default: '{project}'
337 description: 'Name of the project'
Zack Williams73c3cf42019-02-25 23:43:22 -0700338
You Wang8addd4c2020-04-14 16:25:57 -0700339 - string:
340 name: branch
341 default: '{branch}'
342 description: 'Branch of the project'
343
Zack Williams320b3142019-03-14 23:10:01 -0700344 concurrent: false
345
346 pipeline-scm:
347 script-path: '{pipeline-file}'
348 scm:
349 - git:
hwchiu14f97852019-10-08 10:51:11 -0700350 url: 'https://github.com/{github-organization}/omec-project-ci'
351 branches:
352 - 'master'
Zack Williams320b3142019-03-14 23:10:01 -0700353
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800354# FOSSA License Scan
355- job-template:
356 id: 'omec-fossa'
357 name: 'omec_{project}_fossa'
358 project-type: pipeline
359
360 description: |
361 <!-- Managed by Jenkins Job Builder -->
362 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
363
364 properties:
365 - cord-infra-properties:
366 build-days-to-keep: '{build-days-to-keep}'
367 artifact-num-to-keep: '{artifact-num-to-keep}'
368 - github:
369 url: 'https://github.com/{github-organization}/{project}'
370
371 wrappers:
372 - lf-infra-wrappers:
373 build-timeout: '{build-timeout}'
374 jenkins-ssh-credential: '{jenkins-ssh-credential}'
375
376 parameters:
377 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700378 name: ghprbPullId
379 default: '$ghprbPullId'
380 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
381
382 - string:
383 name: branch
384 default: '$ghprbTargetBranch'
385 description: 'Branch to run. Only used when manually run.'
386
387 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800388 name: buildNode
389 default: '{build-node}'
390 description: 'Name of the Jenkins executor node to run the job on'
391
392 - string:
393 name: project
394 default: '{project}'
395 description: 'Name of the project'
396
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700397 - string:
398 name: ghprbGhRepository
399 default: '{github-organization}/{project}'
400 description: 'Repository of the project.'
401
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800402 triggers:
403 - cord-infra-github-pr-trigger:
404 github_pr_org_list: '{obj:github_pr_org_list}'
405 github_pr_auth_id: '{github_pr_auth_id}'
406 status_context: 'CORD Jenkins - FOSSA Verification'
407
408 concurrent: false
409
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800410 project-type: pipeline
411 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800412
413# REUSE License Scan
414- job-template:
415 id: 'omec-reuse'
416 name: 'omec_{project}_reuse'
417 project-type: pipeline
418
419 description: |
420 <!-- Managed by Jenkins Job Builder -->
421 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
422
423 properties:
424 - cord-infra-properties:
425 build-days-to-keep: '{build-days-to-keep}'
426 artifact-num-to-keep: '{artifact-num-to-keep}'
427 - github:
428 url: 'https://github.com/{github-organization}/{project}'
429
430 wrappers:
431 - lf-infra-wrappers:
432 build-timeout: '{build-timeout}'
433 jenkins-ssh-credential: '{jenkins-ssh-credential}'
434
435 parameters:
436 - string:
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700437 name: ghprbPullId
438 default: '$ghprbPullId'
439 description: 'Pull request number to fetch changes from. Leave blank to run manually.'
440
441 - string:
442 name: branch
443 default: '$ghprbTargetBranch'
444 description: 'Branch to run. Only used when manually run.'
445
446 - string:
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800447 name: buildNode
448 default: '{build-node}'
449 description: 'Name of the Jenkins executor node to run the job on'
450
451 - string:
452 name: project
453 default: '{project}'
454 description: 'Name of the project'
455
Jeremy Ronquillo3ca065c2020-04-24 10:40:54 -0700456 - string:
457 name: ghprbGhRepository
458 default: '{github-organization}/{project}'
459 description: 'Repository of the project.'
460
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800461 triggers:
462 - cord-infra-github-pr-trigger:
463 github_pr_org_list: '{obj:github_pr_org_list}'
464 github_pr_auth_id: '{github_pr_auth_id}'
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800465 status_context: 'CORD Jenkins - Licenses Verification'
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800466
467 concurrent: false
468
Jeremy Ronquillof4b37be2020-01-31 13:44:14 -0800469 project-type: pipeline
470 dsl: !include-raw-escape: pipeline/{pipeline-file}
Jeremy Ronquillo9adc0a92020-01-29 10:49:45 -0800471
Zack Williams320b3142019-03-14 23:10:01 -0700472# tests
473- job-template:
474 id: 'omec-tc1'
475 name: 'omec_tc1'
476 project-type: pipeline
477
478 description: |
479 <!-- Managed by Jenkins Job Builder -->
480 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
481
482 properties:
483 - cord-infra-properties:
484 build-days-to-keep: '{build-days-to-keep}'
485 artifact-num-to-keep: '{artifact-num-to-keep}'
486
487 wrappers:
488 - lf-infra-wrappers:
489 build-timeout: '{build-timeout}'
490 jenkins-ssh-credential: '{jenkins-ssh-credential}'
491
492 parameters:
493 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700494 name: buildNode
495 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700496 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700497
You Wang83055442020-04-17 14:54:40 -0700498 - string:
499 name: mmeRepo
500 default: 'openmme'
501 description: 'Name of the MME repo to test (openmme/Nucleus)'
502
Zack Williams5d81f812019-02-27 14:37:09 -0700503 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700504
505 pipeline-scm:
506 script-path: 'Jenkinsfile-omec-test-TC1.groovy'
507 scm:
508 - git:
hwchiu14f97852019-10-08 10:51:11 -0700509 url: 'https://github.com/omec-project/omec-project-ci'
510 branches:
511 - 'master'
Zack Williams73c3cf42019-02-25 23:43:22 -0700512
513- job-template:
514 id: 'omec-tc2'
Zack Williams320b3142019-03-14 23:10:01 -0700515 name: 'omec_tc2'
Zack Williams73c3cf42019-02-25 23:43:22 -0700516 project-type: pipeline
517
518 description: |
519 <!-- Managed by Jenkins Job Builder -->
520 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
521
522 properties:
523 - cord-infra-properties:
524 build-days-to-keep: '{build-days-to-keep}'
525 artifact-num-to-keep: '{artifact-num-to-keep}'
Zack Williams73c3cf42019-02-25 23:43:22 -0700526
527 wrappers:
528 - lf-infra-wrappers:
529 build-timeout: '{build-timeout}'
530 jenkins-ssh-credential: '{jenkins-ssh-credential}'
531
532 parameters:
533 - string:
Zack Williamsb3292082019-10-11 17:15:18 -0700534 name: buildNode
535 default: '{build-node}'
hwchiu14f97852019-10-08 10:51:11 -0700536 description: 'Name of the Jenkins executor node to run the job on'
Zack Williams73c3cf42019-02-25 23:43:22 -0700537
You Wang83055442020-04-17 14:54:40 -0700538 - string:
539 name: mmeRepo
540 default: 'openmme'
541 description: 'Name of the MME repo to test (openmme/Nucleus)'
542
Zack Williams5d81f812019-02-27 14:37:09 -0700543 concurrent: false
Zack Williams73c3cf42019-02-25 23:43:22 -0700544
545 pipeline-scm:
546 script-path: 'Jenkinsfile-omec-test-TC2.groovy'
Kailashbe4dc092019-01-23 09:22:17 -0800547 scm:
548 - git:
hwchiu14f97852019-10-08 10:51:11 -0700549 url: 'https://github.com/omec-project/omec-project-ci'
550 branches:
551 - 'master'
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700552
553# Deploy staging
554- job-template:
555 id: 'omec-deploy-staging'
556 name: 'omec-deploy-staging'
557 project-type: pipeline
558
559 description: |
560 Automated build on AMI executor using pipeline/omec-deploy-staging.groovy. <br /><br />
561 Created from job-template {id} from ci-management/jjb/charts.yaml <br />
Jeremy Ronquillo0d731d32020-04-09 12:20:53 -0700562 Created by Jeremy Ronquillo - jeremyr@opennetworking.org <br />
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700563 Copyright (c) 2020 Open Networking Foundation (ONF)
564
565 properties:
566 - cord-infra-properties:
567 build-days-to-keep: '{build-days-to-keep}'
568 artifact-num-to-keep: '{artifact-num-to-keep}'
569
570 wrappers:
571 - lf-infra-wrappers:
572 build-timeout: '{build-timeout}'
573 jenkins-ssh-credential: '{jenkins-ssh-credential}'
574
575 parameters:
576 - string:
577 name: buildNode
578 default: 'omec-staging'
579 description: 'Name of the Jenkins executor node to run the job on.'
Jeremy Ronquillo0d731d32020-04-09 12:20:53 -0700580 - bool:
581 name: useProductionCluster
582 default: false
583 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 -0700584 - string:
585 name: registry
586 default: 'omecproject'
Jeremy Ronquillo0d731d32020-04-09 12:20:53 -0700587 description: 'Registry for all images that will be changed.'
Jeremy Ronquillo1b9581f2020-03-20 10:37:59 -0700588 - string:
589 name: hssdb_tag
590 default: ''
591 description: 'Tag for hssdb. Leave hssdb tag blank to omit changing.'
592 - string:
593 name: hss_tag
594 default: ''
595 description: 'Tag for hss. Leave hss tag blank to omit changing.'
596 - string:
597 name: mme_tag
598 default: ''
599 description: 'Tag for mme. Leave mme tag blank to omit changing.'
600 - string:
601 name: mmeExporter_tag
602 default: ''
603 description: 'Tag for mmeExporter. Leave mmeExporter tag blank to omit changing.'
604 - string:
605 name: spgwc_tag
606 default: ''
607 description: 'Tag for spgwc. Leave spgwc tag blank to omit changing.'
608 - string:
609 name: spgwu_tag
610 default: ''
611 description: 'Tag for spgwu. Leave spgwu tag blank to omit changing.'
612
613 concurrent: false
614
615 dsl: !include-raw-escape: pipeline/omec-deploy-staging.groovy
You Wang5c15a7a2020-04-02 11:24:33 -0700616
617# Post-merge job
618# Triggered by Github pull request merge
619- job-template:
620 id: omec-postmerge
621 name: '{project}_postmerge'
622 description: |
623 Created by {id} job-template from ci-management/jjb/omec-ci.yaml
624
625 properties:
626 - cord-infra-properties:
627 build-days-to-keep: '{build-days-to-keep}'
628 artifact-num-to-keep: '{artifact-num-to-keep}'
629
630 triggers:
631 - cord-infra-github-pr-trigger-merge:
632 project: '{project}'
633
634 wrappers:
635 - lf-infra-wrappers:
636 build-timeout: '{build-timeout}'
637 jenkins-ssh-credential: '{jenkins-ssh-credential}'
638
639 parameters:
640 - string:
641 name: buildNode
642 default: '{build-node}'
643 description: 'Name of the Jenkins node to run the job on'
644
645 - string:
You Wang40239452020-06-11 20:17:15 -0700646 name: registry
647 default: 'omecproject'
648 description: 'Docker registry to push images to'
649
650 - string:
You Wang5c15a7a2020-04-02 11:24:33 -0700651 name: repoName
652 default: ''
653 description: 'Name of the git repo. Populated by Generic Webhook Trigger'
654
655 - string:
656 name: repoUrl
657 default: ''
658 description: 'URL to the git repo. Populated by Generic Webhook Trigger'
659
660 - string:
661 name: branchName
662 default: ''
663 description: 'Branch of the project. Populated by Generic Webhook Trigger'
664
665 - string:
666 name: commitHash
667 default: ''
668 description: 'SHA string of the merged commit. Populated by Generic Webhook Trigger'
669
670 - string:
671 name: c3poBranchName
672 default: '{c3po-branch-name}'
673 description: 'Branch name of c3po repo which we run tests against'
674
675 - string:
676 name: ngicBranchName
677 default: '{ngic-branch-name}'
678 description: 'Branch name of ngic-rtc repo which we run tests against'
679
680 - string:
You Wang40239452020-06-11 20:17:15 -0700681 name: nucleusBranchName
682 default: '{nucleus-branch-name}'
683 description: 'Branch name of Nucleus repo which we run tests against'
You Wang5c15a7a2020-04-02 11:24:33 -0700684
685 - string:
686 name: maintainers
687 default: 'jeremyr@opennetworking.org, you@opennetworking.org'
688 description: "The person that sould be notified if this job fails"
689
690 project-type: pipeline
You Wang40239452020-06-11 20:17:15 -0700691 concurrent: false
You Wang5c15a7a2020-04-02 11:24:33 -0700692
693 dsl: !include-raw-escape: pipeline/{pipeline-file}
You Wang3cc17af2020-06-12 14:56:10 -0700694
695# OMEC CI job which builds docker images, deploys and tests OMEC
696- job-template:
697 id: 'omec-container'
698 name: 'omec_{project}_container'
699 project-type: pipeline
700
701 description: |
702 <!-- Managed by Jenkins Job Builder -->
703 Created by {id} job-template from ci-management/jjb/omec-ci.yaml<br />
704
705 properties:
706 - cord-infra-properties:
707 build-days-to-keep: '{build-days-to-keep}'
708 artifact-num-to-keep: '{artifact-num-to-keep}'
709 - github:
710 url: 'https://github.com/{github-organization}/{project}'
711 - build-blocker:
712 use-build-blocker: true
713 blocking-jobs:
714 - "omec_.*_container"
715
716 wrappers:
717 - lf-infra-wrappers:
718 build-timeout: '{build-timeout}'
719 jenkins-ssh-credential: '{jenkins-ssh-credential}'
720
721 parameters:
722 - string:
723 name: buildNode
724 default: 'ng40-host-node'
725 description: 'Name of the Jenkins executor node to run the job on'
726
727 - string:
728 name: project
729 default: '{project}'
730 description: 'Name of the project'
731
732 - string:
733 name: ghprbTargetBranch
734 default: '$ghprbTargetBranch'
735 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
736
737 - string:
738 name: ghprbPullId
739 default: '$ghprbPullId'
740 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
741
742 - string:
743 name: ghprbActualCommit
744 default: '$ghprbActualCommit'
745 description: 'GitHub Pull-Request builder value. Replace default value to test manually.'
746
747 - string:
748 name: registry
749 default: 'registry.central.aetherproject.net'
750 description: 'Docker registry that stores images built for CI testing'
751
752 - string:
753 name: c3poBranch
754 default: 'master'
755 description: 'Branch name of c3po repo which we run tests against'
756
757 - string:
758 name: nucleusBranch
759 default: 'master'
760 description: 'Branch name of Nucleus repo which we run tests against'
761
762 - string:
763 name: ngicBranch
764 default: 'central-cp-multi-upfs'
765 description: 'Branch name of ngic-rtc repo which we run tests against'
766
767 triggers:
768 - cord-infra-github-pr-trigger:
769 github_pr_org_list: '{obj:github_pr_org_list}'
770 github_pr_auth_id: '{github_pr_auth_id}'
771 status_context: 'CORD Jenkins - Container Based Verification'
772
773 concurrent: false
774
775 pipeline-scm:
776 script-path: 'Jenkinsfile-omec-container.groovy'
777 scm:
778 - git:
779 url: 'https://github.com/{github-organization}/omec-project-ci'
780 branches:
781 - 'master'
782
783# OMEC deployment job
784- job-template:
785 id: 'omec-deploy'
786 name: 'omec_deploy_{pod}'
787 project-type: pipeline
788
789 description: |
790 <!-- Managed by Jenkins Job Builder -->
791 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
792
793 properties:
794 - cord-infra-properties:
795 build-days-to-keep: '{build-days-to-keep}'
796 artifact-num-to-keep: '{artifact-num-to-keep}'
797
798 wrappers:
799 - lf-infra-wrappers:
800 build-timeout: '{build-timeout}'
801 jenkins-ssh-credential: '{jenkins-ssh-credential}'
802
803 parameters:
804 - string:
805 name: buildNode
806 default: '{build-node}'
807 description: 'Name of the Jenkins executor node to run the job on.'
808
809 - string:
810 name: cpContext
811 default: '{cp-context}'
812 description: 'K8S context for omec control plane.'
813
814 - string:
815 name: dpContext
816 default: '{dp-context}'
817 description: 'K8S context for omec data plane.'
818
819 - string:
820 name: centralConfig
821 default: '{central-config}'
822 description: 'Directory name for central yaml files under aether-pod-configs.'
823
824 - string:
825 name: edgeConfig
826 default: '{edge-config}'
827 description: 'Directory name for edge yaml files under aether-pod-configs.'
828
829 - string:
830 name: hssdbImage
831 default: 'omecproject/c3po-hssdb:master-latest'
832 description: 'Docker image for hssdb. Leave empty to use default helm-charts value'
833
834 - string:
835 name: hssImage
836 default: 'omecproject/c3po-hss:master-latest'
837 description: 'Docker image for hss. Leave empty to use default helm-charts value'
838
839 - string:
840 name: mmeImage
841 default: 'omecproject/nucleus:master-latest'
842 description: 'Docker image for mme. Leave empty to use default helm-charts value'
843
844 - string:
845 name: spgwcImage
846 default: 'omecproject/ngic-cp:central-cp-multi-upfs-latest'
847 description: 'Docker image for spgwc. Leave empty to use default helm-charts value'
848
849 - string:
850 name: spgwuImage
851 default: 'omecproject/ngic-dp:central-cp-multi-upfs-latest-debug'
852 description: 'Docker image for spgwu. Leave empty to use default helm-charts value'
853
854 concurrent: false
855
856 pipeline-scm:
857 script-path: 'Jenkinsfile-omec-deploy.groovy'
858 scm:
859 - git:
860 url: 'https://github.com/{github-organization}/omec-project-ci'
861 branches:
862 - 'master'
863
864# OMEC test job
865- job-template:
866 id: 'omec-ng40-test'
867 name: 'omec_ng40-test_{pod}'
868 project-type: pipeline
869
870 description: |
871 <!-- Managed by Jenkins Job Builder -->
872 Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
873
874 properties:
875 - cord-infra-properties:
876 build-days-to-keep: '{build-days-to-keep}'
877 artifact-num-to-keep: '{artifact-num-to-keep}'
878
879 wrappers:
880 - lf-infra-wrappers:
881 build-timeout: '{build-timeout}'
882 jenkins-ssh-credential: '{jenkins-ssh-credential}'
883
884 parameters:
885 - string:
886 name: buildNode
887 default: '{build-node}'
888 description: 'Name of the Jenkins executor node to run the job on.'
889
890 - string:
891 name: ng40VM
892 default: '{ng40-vm}'
893 description: 'user@IP for accessing NG40 VM from the build node.'
894
895 - string:
896 name: ntlFile
897 default: 'run.ntl'
898 description: 'NG40 test automation file'
899
900 concurrent: false
901
902 pipeline-scm:
903 script-path: 'Jenkinsfile-omec-ng40-test.groovy'
904 scm:
905 - git:
906 url: 'https://github.com/{github-organization}/omec-project-ci'
907 branches:
908 - 'master'