blob: 26299a12660b543a622ff9212eee436712c0b5d4 [file] [log] [blame]
LF Jenkins CI9ba2efa2020-03-12 19:43:51 +00001---
2- project:
3 name: portal-nonrtric-controlpanel-project-view
4 project-name: portal-nonrtric-controlpanel
5 views:
6 - project-view
7
8- project:
9 name: portal-nonrtric-controlpanel-info
10 project: portal/nonrtric-controlpanel
11 project-name: portal-nonrtric-controlpanel
12 build-node: centos7-builder-1c-1g
13 jobs:
14 - gerrit-info-yaml-verify
YongchaoWu95b39b02020-03-19 15:40:42 +010015
16- portal_nonrtric_controlpanel_common: &portal_nonrtric_controlpanel_common
17 # values apply to all projects here
18 name: portal-nonrtric-controlpanel-common
19 # git repo
20 project: portal/nonrtric-controlpanel
21 # jenkins job name prefix
22 project-name: portal-nonrtric-controlpanel
23 # maven settings file has docker credentials
24 mvn-settings: portal-nonrtric-controlpanel-settings
25 # defaults.yaml value is NOT used due to value set in lf-maven-jobs.yaml
26 java-version: openjdk11
27 mvn-version: mvn36
28
29- project:
30 <<: *portal_nonrtric_controlpanel_common
RehanRazaf54a4f82021-01-11 19:22:37 +010031 name: nonrtric-controlpanel-frontend
32 # image name
33 docker-name: 'o-ran-sc/nonrtric-controlpanel'
34 # get tag from YAML
35 container-tag-method: yaml-file
36 # use host network to clone from our gerrit
37 docker-build-args: '--network=host'
38 # Directory with Dockerfile
39 docker-root: 'webapp-frontend'
40 # Limit build trigger to appropriate files
41 gerrit_trigger_file_paths:
42 - compare-type: REG_EXP
43 pattern: 'webapp-frontend/.*'
Anil Belur149942b2021-06-08 10:44:51 +100044 - compare-type: REG_EXP
45 pattern: 'docker-compose/.*'
RehanRazaf54a4f82021-01-11 19:22:37 +010046 build-node: ubuntu1804-docker-4c-4g
47 # Includes verify and merge jobs
48 jobs:
49 - "{project-name}-gerrit-docker-jobs"
50 stream:
51 - master:
52 branch: master
53
54- project:
55 <<: *portal_nonrtric_controlpanel_common
YongchaoWu95b39b02020-03-19 15:40:42 +010056 name: portal-nonrtric-controlpanel-release
57 # maven release requires sigul which requires centos
58 # container release requires docker
59 build-node: centos7-docker-2c-8g
60 jobs:
61 - '{project-name}-gerrit-release-jobs'
62
63- project:
64 <<: *portal_nonrtric_controlpanel_common
65 name: portal-nonrtric-controlpanel-sonar
66 # template goal install builds docker image unnecessarily
67 mvn-params: -Ddocker.skip=true
68 sonarcloud: true
69 sonarcloud-api-token: '{sonarcloud_api_token}'
70 sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
71 sonarcloud-project-organization: '{sonarcloud_project_organization}'
72 jobs:
Lathish58d9fbd2021-01-18 14:37:44 +000073 - gerrit-maven-sonar
74
75- project:
76 <<: *portal_nonrtric_controlpanel_common
77 name: portal-nonrtric-controlpanel-gateway
78 project-name: '{name}'
RehanRazab18fb852021-01-29 16:33:26 +010079 mvn-params: '-f nonrtric-gateway'
Lathish58d9fbd2021-01-18 14:37:44 +000080 gerrit_trigger_file_paths:
81 - compare-type: REG_EXP
82 pattern: 'nonrtric-gateway/.*'
83 build-node: ubuntu1804-builder-4c-4g
84 jobs:
85 - gerrit-maven-verify
86 - gerrit-maven-merge
87 - gerrit-maven-stage
88 - gerrit-maven-clm
89 stream:
90 - master:
91 branch: master
92
93- project:
94 <<: *portal_nonrtric_controlpanel_common
95 name: portal-nonrtric-controlpanel-gateway-docker
96 project-name: '{name}'
RehanRazab18fb852021-01-29 16:33:26 +010097 mvn-params: '-P docker -f nonrtric-gateway'
Lathish58d9fbd2021-01-18 14:37:44 +000098 gerrit_trigger_file_paths:
99 - compare-type: REG_EXP
100 pattern: 'nonrtric-gateway/.*'
Anil Belur149942b2021-06-08 10:44:51 +1000101 - compare-type: REG_EXP
102 pattern: 'docker-compose/.*'
Lathish58d9fbd2021-01-18 14:37:44 +0000103 build-node: ubuntu1804-docker-4c-4g
104 jobs:
105 - gerrit-maven-docker-verify
106 - gerrit-maven-docker-merge
107 - gerrit-maven-docker-stage
108 stream:
109 - master:
110 branch: master