blob: 4912b56dd0ee70198ccf8dfc1ab2fcd5267addbe [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
Anil Belur439502c2023-05-07 12:39:38 +10008- _portal_nonrtric_controlpanel_common:
9 &portal_nonrtric_controlpanel_common # values apply to all projects here
YongchaoWu95b39b02020-03-19 15:40:42 +010010 name: portal-nonrtric-controlpanel-common
11 # git repo
12 project: portal/nonrtric-controlpanel
13 # jenkins job name prefix
14 project-name: portal-nonrtric-controlpanel
15 # maven settings file has docker credentials
16 mvn-settings: portal-nonrtric-controlpanel-settings
17 # defaults.yaml value is NOT used due to value set in lf-maven-jobs.yaml
JohnKeeney31f91732023-03-23 15:05:14 +000018 java-version: openjdk17
YongchaoWu95b39b02020-03-19 15:40:42 +010019 mvn-version: mvn36
elinuxhenrikb450b9c2022-09-22 09:11:54 +020020 sonarcloud-project-key: "portal-nonrtric-controlpanel"
21 sonarcloud-project-organization: "o-ran-sc"
YongchaoWu95b39b02020-03-19 15:40:42 +010022
23- project:
24 <<: *portal_nonrtric_controlpanel_common
RehanRazaf54a4f82021-01-11 19:22:37 +010025 name: nonrtric-controlpanel-frontend
26 # image name
Anil Belur439502c2023-05-07 12:39:38 +100027 docker-name: "o-ran-sc/nonrtric-controlpanel"
RehanRazaf54a4f82021-01-11 19:22:37 +010028 # get tag from YAML
29 container-tag-method: yaml-file
30 # use host network to clone from our gerrit
Anil Belur439502c2023-05-07 12:39:38 +100031 docker-build-args: "--network=host"
RehanRazaf54a4f82021-01-11 19:22:37 +010032 # Directory with Dockerfile
Anil Belur439502c2023-05-07 12:39:38 +100033 docker-root: "webapp-frontend"
RehanRazaf54a4f82021-01-11 19:22:37 +010034 # Limit build trigger to appropriate files
35 gerrit_trigger_file_paths:
36 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100037 pattern: "webapp-frontend/.*"
Anil Belur149942b2021-06-08 10:44:51 +100038 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100039 pattern: "docker-compose/.*"
RehanRazaf54a4f82021-01-11 19:22:37 +010040 build-node: ubuntu1804-docker-4c-4g
41 # Includes verify and merge jobs
42 jobs:
43 - "{project-name}-gerrit-docker-jobs"
44 stream:
45 - master:
46 branch: master
elinuxhenrikd8dfdf82023-01-03 14:52:58 +010047 - g-release:
JohnKeeney31f91732023-03-23 15:05:14 +000048 java-version: openjdk11
elinuxhenrikd8dfdf82023-01-03 14:52:58 +010049 branch: g-release
JohnKeeney9199e552023-06-15 00:23:21 +010050 - h-release:
51 branch: h-release
JohnKeeney45e8cd02023-12-13 15:23:11 +000052 - i-release:
53 branch: i-release
RehanRazaf54a4f82021-01-11 19:22:37 +010054
55- project:
56 <<: *portal_nonrtric_controlpanel_common
YongchaoWu95b39b02020-03-19 15:40:42 +010057 name: portal-nonrtric-controlpanel-release
58 # maven release requires sigul which requires centos
59 # container release requires docker
60 build-node: centos7-docker-2c-8g
61 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100062 - "{project-name}-gerrit-release-jobs"
YongchaoWu95b39b02020-03-19 15:40:42 +010063
64- project:
65 <<: *portal_nonrtric_controlpanel_common
elinuxhenrikb450b9c2022-09-22 09:11:54 +020066 name: portal-nonrtric-controlpanel-gateway-sonar
YongchaoWu95b39b02020-03-19 15:40:42 +010067 # template goal install builds docker image unnecessarily
Anil Belur439502c2023-05-07 12:39:38 +100068 mvn-params: "-Ddocker.skip=true -f nonrtric-gateway"
elinuxhenrikb450b9c2022-09-22 09:11:54 +020069 gerrit_trigger_file_paths:
70 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100071 pattern: "nonrtric-gateway/.*"
YongchaoWu95b39b02020-03-19 15:40:42 +010072 sonarcloud: true
Anil Belur439502c2023-05-07 12:39:38 +100073 sonarcloud-api-token: "{sonarcloud_api_token}"
74 sonarcloud-project-key: "{project-name}-gateway"
75 sonarcloud-project-organization: "{sonarcloud_project_organization}"
YongchaoWu95b39b02020-03-19 15:40:42 +010076 jobs:
Lathish58d9fbd2021-01-18 14:37:44 +000077 - gerrit-maven-sonar
78
79- project:
80 <<: *portal_nonrtric_controlpanel_common
elinuxhenrikb450b9c2022-09-22 09:11:54 +020081 name: portal-nonrtric-controlpanel-frontend-sonar
82 gerrit_trigger_file_paths:
83 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100084 pattern: "webapp-frontend/.*"
elinuxhenrikb450b9c2022-09-22 09:11:54 +020085 build-node: ubuntu1804-docker-4c-4g
86 java-version: openjdk11
87 sonarcloud: true
88 sonar-project-file: ""
89 jobs:
90 - gerrit-cli-sonar
91
92- project:
93 <<: *portal_nonrtric_controlpanel_common
Lathish58d9fbd2021-01-18 14:37:44 +000094 name: portal-nonrtric-controlpanel-gateway
Anil Belur439502c2023-05-07 12:39:38 +100095 project-name: "{name}"
96 mvn-params: "-f nonrtric-gateway"
Lathish58d9fbd2021-01-18 14:37:44 +000097 gerrit_trigger_file_paths:
98 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100099 pattern: "nonrtric-gateway/.*"
Lathish58d9fbd2021-01-18 14:37:44 +0000100 build-node: ubuntu1804-builder-4c-4g
101 jobs:
102 - gerrit-maven-verify
103 - gerrit-maven-merge
104 - gerrit-maven-stage
105 - gerrit-maven-clm
106 stream:
107 - master:
108 branch: master
elinuxhenrikd8dfdf82023-01-03 14:52:58 +0100109 - g-release:
JohnKeeney31f91732023-03-23 15:05:14 +0000110 java-version: openjdk11
elinuxhenrikd8dfdf82023-01-03 14:52:58 +0100111 branch: g-release
JohnKeeney9199e552023-06-15 00:23:21 +0100112 - h-release:
113 branch: h-release
JohnKeeney45e8cd02023-12-13 15:23:11 +0000114 - i-release:
115 branch: i-release
Lathish58d9fbd2021-01-18 14:37:44 +0000116
117- project:
118 <<: *portal_nonrtric_controlpanel_common
119 name: portal-nonrtric-controlpanel-gateway-docker
Anil Belur439502c2023-05-07 12:39:38 +1000120 project-name: "{name}"
121 mvn-params: "-P docker -f nonrtric-gateway"
Lathish58d9fbd2021-01-18 14:37:44 +0000122 gerrit_trigger_file_paths:
123 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +1000124 pattern: "nonrtric-gateway/.*"
Anil Belur149942b2021-06-08 10:44:51 +1000125 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +1000126 pattern: "docker-compose/.*"
Lathish58d9fbd2021-01-18 14:37:44 +0000127 build-node: ubuntu1804-docker-4c-4g
128 jobs:
129 - gerrit-maven-docker-verify
130 - gerrit-maven-docker-merge
131 - gerrit-maven-docker-stage
132 stream:
133 - master:
134 branch: master
elinuxhenrikd8dfdf82023-01-03 14:52:58 +0100135 - g-release:
JohnKeeney31f91732023-03-23 15:05:14 +0000136 java-version: openjdk11
elinuxhenrikd8dfdf82023-01-03 14:52:58 +0100137 branch: g-release
JohnKeeney9199e552023-06-15 00:23:21 +0100138 - h-release:
139 branch: h-release
JohnKeeney45e8cd02023-12-13 15:23:11 +0000140 - i-release:
141 branch: i-release