blob: b77b5e4a33eb23fb5dc0fffa23829b13c154f98a [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
Anil Belur439502c2023-05-07 12:39:38 +100016- _portal_nonrtric_controlpanel_common:
17 &portal_nonrtric_controlpanel_common # values apply to all projects here
YongchaoWu95b39b02020-03-19 15:40:42 +010018 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
JohnKeeney31f91732023-03-23 15:05:14 +000026 java-version: openjdk17
YongchaoWu95b39b02020-03-19 15:40:42 +010027 mvn-version: mvn36
elinuxhenrikb450b9c2022-09-22 09:11:54 +020028 sonarcloud-project-key: "portal-nonrtric-controlpanel"
29 sonarcloud-project-organization: "o-ran-sc"
YongchaoWu95b39b02020-03-19 15:40:42 +010030
31- project:
32 <<: *portal_nonrtric_controlpanel_common
RehanRazaf54a4f82021-01-11 19:22:37 +010033 name: nonrtric-controlpanel-frontend
34 # image name
Anil Belur439502c2023-05-07 12:39:38 +100035 docker-name: "o-ran-sc/nonrtric-controlpanel"
RehanRazaf54a4f82021-01-11 19:22:37 +010036 # get tag from YAML
37 container-tag-method: yaml-file
38 # use host network to clone from our gerrit
Anil Belur439502c2023-05-07 12:39:38 +100039 docker-build-args: "--network=host"
RehanRazaf54a4f82021-01-11 19:22:37 +010040 # Directory with Dockerfile
Anil Belur439502c2023-05-07 12:39:38 +100041 docker-root: "webapp-frontend"
RehanRazaf54a4f82021-01-11 19:22:37 +010042 # Limit build trigger to appropriate files
43 gerrit_trigger_file_paths:
44 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100045 pattern: "webapp-frontend/.*"
Anil Belur149942b2021-06-08 10:44:51 +100046 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100047 pattern: "docker-compose/.*"
RehanRazaf54a4f82021-01-11 19:22:37 +010048 build-node: ubuntu1804-docker-4c-4g
49 # Includes verify and merge jobs
50 jobs:
51 - "{project-name}-gerrit-docker-jobs"
52 stream:
53 - master:
54 branch: master
elinuxhenrikd8dfdf82023-01-03 14:52:58 +010055 - g-release:
JohnKeeney31f91732023-03-23 15:05:14 +000056 java-version: openjdk11
elinuxhenrikd8dfdf82023-01-03 14:52:58 +010057 branch: g-release
RehanRazaf54a4f82021-01-11 19:22:37 +010058
59- project:
60 <<: *portal_nonrtric_controlpanel_common
YongchaoWu95b39b02020-03-19 15:40:42 +010061 name: portal-nonrtric-controlpanel-release
62 # maven release requires sigul which requires centos
63 # container release requires docker
64 build-node: centos7-docker-2c-8g
65 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100066 - "{project-name}-gerrit-release-jobs"
YongchaoWu95b39b02020-03-19 15:40:42 +010067
68- project:
69 <<: *portal_nonrtric_controlpanel_common
elinuxhenrikb450b9c2022-09-22 09:11:54 +020070 name: portal-nonrtric-controlpanel-gateway-sonar
YongchaoWu95b39b02020-03-19 15:40:42 +010071 # template goal install builds docker image unnecessarily
Anil Belur439502c2023-05-07 12:39:38 +100072 mvn-params: "-Ddocker.skip=true -f nonrtric-gateway"
elinuxhenrikb450b9c2022-09-22 09:11:54 +020073 gerrit_trigger_file_paths:
74 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100075 pattern: "nonrtric-gateway/.*"
YongchaoWu95b39b02020-03-19 15:40:42 +010076 sonarcloud: true
Anil Belur439502c2023-05-07 12:39:38 +100077 sonarcloud-api-token: "{sonarcloud_api_token}"
78 sonarcloud-project-key: "{project-name}-gateway"
79 sonarcloud-project-organization: "{sonarcloud_project_organization}"
YongchaoWu95b39b02020-03-19 15:40:42 +010080 jobs:
Lathish58d9fbd2021-01-18 14:37:44 +000081 - gerrit-maven-sonar
82
83- project:
84 <<: *portal_nonrtric_controlpanel_common
elinuxhenrikb450b9c2022-09-22 09:11:54 +020085 name: portal-nonrtric-controlpanel-frontend-sonar
86 gerrit_trigger_file_paths:
87 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100088 pattern: "webapp-frontend/.*"
elinuxhenrikb450b9c2022-09-22 09:11:54 +020089 build-node: ubuntu1804-docker-4c-4g
90 java-version: openjdk11
91 sonarcloud: true
92 sonar-project-file: ""
93 jobs:
94 - gerrit-cli-sonar
95
96- project:
97 <<: *portal_nonrtric_controlpanel_common
Lathish58d9fbd2021-01-18 14:37:44 +000098 name: portal-nonrtric-controlpanel-gateway
Anil Belur439502c2023-05-07 12:39:38 +100099 project-name: "{name}"
100 mvn-params: "-f nonrtric-gateway"
Lathish58d9fbd2021-01-18 14:37:44 +0000101 gerrit_trigger_file_paths:
102 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +1000103 pattern: "nonrtric-gateway/.*"
Lathish58d9fbd2021-01-18 14:37:44 +0000104 build-node: ubuntu1804-builder-4c-4g
105 jobs:
106 - gerrit-maven-verify
107 - gerrit-maven-merge
108 - gerrit-maven-stage
109 - gerrit-maven-clm
110 stream:
111 - master:
112 branch: master
elinuxhenrikd8dfdf82023-01-03 14:52:58 +0100113 - g-release:
JohnKeeney31f91732023-03-23 15:05:14 +0000114 java-version: openjdk11
elinuxhenrikd8dfdf82023-01-03 14:52:58 +0100115 branch: g-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