blob: bf4cd35041bd415bfc1e668ea127dbe2ddfed04a [file] [log] [blame]
YongchaoWu3072a9d2019-11-07 20:27:07 +01001---
2- project:
3 name: nonrtric-project-view
4 project-name: nonrtric
5 views:
6 - project-view
7
8- project:
9 name: nonrtric-info
10 project: nonrtric
11 project-name: nonrtric
Aric Gardnerda252d22019-10-11 16:10:03 -040012 build-node: centos7-builder-1c-1g
YongchaoWu3072a9d2019-11-07 20:27:07 +010013 jobs:
14 - gerrit-info-yaml-verify
YongchaoWuba898322019-11-12 12:15:03 +010015
elinuxhenrikba9bee22020-06-02 11:53:56 +020016- nonrtric_jdk_common: &nonrtric_jdk_common
17 name: nonrtric-jdk-common
YongchaoWuba898322019-11-12 12:15:03 +010018 # git repo
19 project: nonrtric
20 # jenkins job name prefix
21 project-name: nonrtric
22 # maven settings file has docker credentials
23 mvn-settings: nonrtric-settings
YongchaoWuba898322019-11-12 12:15:03 +010024 mvn-version: mvn36
elinuxhenrikba9bee22020-06-02 11:53:56 +020025 java-version: openjdk11
26
YongchaoWuba898322019-11-12 12:15:03 +010027- project:
elinuxhenrikd1cada72020-06-17 08:37:11 +020028 <<: *nonrtric_jdk_common
elinuxhenrik952802d2021-10-27 09:30:21 +020029 mvn-params: -Dbuild.number=${{BUILD_NUMBER}}
YongchaoWuba898322019-11-12 12:15:03 +010030 jobs:
ecaiyanlinux433c26e2020-11-13 11:40:21 +010031 - gerrit-maven-docker-verify
YongchaoWuba898322019-11-12 12:15:03 +010032 - gerrit-maven-docker-merge
33 - gerrit-maven-docker-stage
34 stream:
35 - master:
wrider7f7c1c72019-11-19 00:13:13 -050036 branch: master
elinuxhenrikabf82032021-01-25 09:46:51 +010037 - cherry:
38 branch: cherry
ecaiyanlinux885236b2021-07-29 15:57:02 +020039 - dawn:
40 branch: dawn
elinuxhenrik566a79d2021-12-14 09:30:36 +010041 - e-release:
42 branch: e-release
wrider7f7c1c72019-11-19 00:13:13 -050043
elinuxhenrik89931c62021-12-08 10:07:53 +010044# nonrtric:policy-agent/
45# Maven artifacts for nonrtric-policy-agent/
46- project:
47 <<: *nonrtric_jdk_common
48 name: nonrtric-policy-agent
49 project-name: '{name}'
50 mvn-opts: '-Ddocker.skip=true'
51 mvn-params: '-f policy-agent/'
52 gerrit_trigger_file_paths:
53 - compare-type: REG_EXP
54 pattern: 'policy-agent/.*'
55 build-node: ubuntu1804-builder-4c-4g
56 jobs:
57 - gerrit-maven-verify
58 - gerrit-maven-merge
59 - gerrit-maven-stage
60 - gerrit-maven-clm
61 stream:
elinuxhenrikabf82032021-01-25 09:46:51 +010062 - cherry:
63 branch: cherry
ecaiyanlinux885236b2021-07-29 15:57:02 +020064 - dawn:
65 branch: dawn
elinuxhenrike2c327b2020-05-29 09:48:09 +020066
elinuxhenrik54cd5492020-06-03 14:00:26 +020067# nonrtric:sdnc-a1-controller
68# Maven artifacts for nonrtric-sdnc-a1-controller
elinuxhenrike2c327b2020-05-29 09:48:09 +020069- project:
elinuxhenrikd1cada72020-06-17 08:37:11 +020070 <<: *nonrtric_jdk_common
elinuxhenrik54cd5492020-06-03 14:00:26 +020071 name: nonrtric-sdnc-a1-controller
elinuxhenrikba9bee22020-06-02 11:53:56 +020072 project-name: '{name}'
ecaiyanlinux433c26e2020-11-13 11:40:21 +010073 mvn-opts: '-Ddocker.skip=true'
elinuxhenrik54cd5492020-06-03 14:00:26 +020074 mvn-params: '-f sdnc-a1-controller/northbound'
elinuxhenrikba9bee22020-06-02 11:53:56 +020075 gerrit_trigger_file_paths:
76 - compare-type: REG_EXP
elinuxhenrik54cd5492020-06-03 14:00:26 +020077 pattern: 'sdnc-a1-controller/northbound/.*'
elinuxhenrike2c327b2020-05-29 09:48:09 +020078 build-node: ubuntu1804-builder-4c-4g
79 jobs:
80 - gerrit-maven-verify
81 - gerrit-maven-merge
82 - gerrit-maven-stage
83 - gerrit-maven-clm
84 stream:
85 - master:
86 branch: master
elinuxhenrikabf82032021-01-25 09:46:51 +010087 - cherry:
88 branch: cherry
ecaiyanlinux885236b2021-07-29 15:57:02 +020089 - dawn:
90 branch: dawn
elinuxhenrik566a79d2021-12-14 09:30:36 +010091 - e-release:
92 branch: e-release
elinuxhenrike2c327b2020-05-29 09:48:09 +020093
elinuxhenrik89931c62021-12-08 10:07:53 +010094# nonrtric:enrichment-coordinator-service
95# Maven artifacts for nonrtric-enrichment-coordinator-service
96- project:
97 <<: *nonrtric_jdk_common
98 name: nonrtric-enrichment-coordinator-service
99 project-name: '{name}'
100 mvn-opts: '-Ddocker.skip=true'
101 mvn-params: '-f enrichment-coordinator-service'
102 gerrit_trigger_file_paths:
103 - compare-type: REG_EXP
104 pattern: 'enrichment-coordinator-service/.*'
105 build-node: ubuntu1804-builder-4c-4g
106 jobs:
107 - gerrit-maven-verify
108 - gerrit-maven-merge
109 - gerrit-maven-stage
110 - gerrit-maven-clm
111 stream:
elinuxhenrikabf82032021-01-25 09:46:51 +0100112 - cherry:
113 branch: cherry
ecaiyanlinux885236b2021-07-29 15:57:02 +0200114 - dawn:
115 branch: dawn
Lathish9d5999a2020-11-25 13:42:40 +0000116
wrider7f7c1c72019-11-19 00:13:13 -0500117- project:
elinuxhenrikd1cada72020-06-17 08:37:11 +0200118 <<: *nonrtric_jdk_common
PatrikBuhr7c9c0dc2022-03-18 09:16:12 +0100119 name: nonrtric-auth-token-fetch
120 project-name: '{name}'
121 # image name
122 docker-name: 'o-ran-sc/nonrtric-auth-token-fetch'
123 # get tag from YAML
124 container-tag-method: yaml-file
125 # use host network to clone from our gerrit
126 docker-build-args: '--network=host'
127 # Directory with Dockerfile
128 docker-root: 'auth-token-fetch'
129 # use host network to clone from our gerrit
130 docker-build-args: '--network=host'
131 # Directory where go test should be run
132 go-root: 'auth-token-fetch'
133 # Limit build trigger to appropriate files
134 gerrit_trigger_file_paths:
135 - compare-type: REG_EXP
136 pattern: 'auth-token-fetch/.*'
137 build-node: ubuntu1804-docker-4c-4g
138 # Includes verify and merge jobs
139 jobs:
140 - "{project-name}-gerrit-docker-jobs"
141 - gerrit-go-verify
142 stream:
143 - master:
144 branch: master
145
146- project:
147 <<: *nonrtric_jdk_common
148 name: nonrtric-auth-token-fetch-sonar
149 project-name: nonrtric-auth-token-fetch
150 # prescan script requires ubuntu
151 # golang is only on docker-enabled nodes
152 build-node: ubuntu1804-docker-4c-4g
153 sonar-prescan-script: !include-raw-escape: prescan-nonrtric-auth-token-fetch-ubuntu.sh
154 sonar-project-file: ""
155 java-version: openjdk11
156 # use sonarcloud values from defaults.yaml
157 sonar-properties: !include-raw: sonar-project.properties
158 jobs:
159 - gerrit-sonar-prescan-script
160
161- project:
162 <<: *nonrtric_jdk_common
elinuxhenrik0e790382021-12-13 18:14:04 +0100163 name: nonrtric-release
164 # maven release requires sigul which requires centos
165 # container release requires docker
166 build-node: centos7-docker-2c-8g
167 jobs:
168 - '{project-name}-gerrit-release-jobs'
169
170- project:
171 <<: *nonrtric_jdk_common
172 name: nonrtric-sonar
173 project-name: '{name}'
174 # template goal install builds docker image unnecessarily
175 mvn-params: '-Ddocker.skip=true'
176 sonarcloud: true
177 sonarcloud-api-token: '{sonarcloud_api_token}'
178 sonarcloud-project-key: '{sonarcloud_project_organization}_nonrtric'
179 sonarcloud-project-organization: '{sonarcloud_project_organization}'
180 jobs:
181 - gerrit-maven-sonar
182
183# Usecases
184- project:
185 <<: *nonrtric_jdk_common
186 name: nonrtric-o-ru-closed-loop-recovery
187 project-name: '{name}'
188 # image name
189 docker-name: 'o-ran-sc/nonrtric-o-ru-closed-loop-recovery'
190 # get tag from YAML
191 container-tag-method: yaml-file
192 # use host network to clone from our gerrit
193 docker-build-args: '--network=host'
194 # Directory with Dockerfile
195 docker-root: 'test/usecases/oruclosedlooprecovery/scriptversion/app'
196 # Limit build trigger to appropriate files
197 gerrit_trigger_file_paths:
198 - compare-type: REG_EXP
199 pattern: 'test/usecases/oruclosedlooprecovery/scriptversion/app/.*'
200 build-node: ubuntu1804-docker-4c-4g
201 # Includes verify and merge jobs
202 jobs:
203 - "{project-name}-gerrit-docker-jobs"
204 stream:
205 - master:
206 branch: master
207 - dawn:
208 branch: dawn
elinuxhenrik566a79d2021-12-14 09:30:36 +0100209 - e-release:
210 branch: e-release
elinuxhenrik0e790382021-12-13 18:14:04 +0100211
212- project:
213 <<: *nonrtric_jdk_common
elinuxhenrik6eb6f4a2021-12-21 08:18:44 +0100214 name: nonrtric-o-ru-closed-loop-consumer
215 project-name: '{name}'
216 # image name
217 docker-name: 'o-ran-sc/nonrtric-o-ru-closed-loop-consumer'
218 # get tag from YAML
219 container-tag-method: yaml-file
220 # use host network to clone from our gerrit
221 docker-build-args: '--network=host'
222 # Directory with Dockerfile
223 docker-root: 'test/usecases/oruclosedlooprecovery/goversion'
224 # Directory where go test should be run
225 go-root: 'test/usecases/oruclosedlooprecovery/goversion'
226 # Limit build trigger to appropriate files
227 gerrit_trigger_file_paths:
228 - compare-type: REG_EXP
229 pattern: 'test/usecases/oruclosedlooprecovery/goversion/.*'
230 build-node: ubuntu1804-docker-4c-4g
231 # Includes verify and merge jobs
232 jobs:
233 - "{project-name}-gerrit-docker-jobs"
234 - gerrit-go-verify
235 stream:
236 - master:
237 branch: master
238 - e-release:
239 branch: e-release
240
241- project:
242 <<: *nonrtric_jdk_common
elinuxhenrikb9b3ba02021-10-04 16:19:05 +0200243 name: nonrtric-o-ru-closed-loop-consumer-sonar
elinuxhenrik09103bf2021-11-05 14:43:55 +0100244 project-name: nonrtric-o-ru-closed-loop-consumer-sonar
elinuxhenrikb9b3ba02021-10-04 16:19:05 +0200245 # prescan script requires ubuntu
246 # golang is only on docker-enabled nodes
247 build-node: ubuntu1804-docker-4c-4g
248 sonar-prescan-script: !include-raw-escape: prescan-oruclosedloopconsumer-ubuntu.sh
249 sonar-project-file: ""
250 java-version: openjdk11
251 # use sonarcloud values from defaults.yaml
252 sonar-properties: |
253 # Required metadata
254 sonar.login={sonarcloud_api_token}
elinuxhenrikbd165fd2021-11-18 15:06:28 +0100255 sonar.projectKey={sonarcloud_project_organization}_nonrtric-o-ru-closed-loop-consumer
elinuxhenrikb9b3ba02021-10-04 16:19:05 +0200256 sonar.organization={sonarcloud_project_organization}
257 # Encoding
258 sonar.build.sourceEncoding=UTF-8
259 # Language
260 sonar.language=go
261 # Source
262 sonar.sources=.
263 # Unit tests
264 sonar.go.coverage.reportPaths=test/usecases/oruclosedlooprecovery/goversion/coverage.txt
265 # Inclusions
elinuxhenrik423e0c02021-10-22 14:25:56 +0200266 sonar.inclusions=test/usecases/oruclosedlooprecovery/goversion/internal/**/**.go,test/usecases/oruclosedlooprecovery/goversion/**.go
elinuxhenrikb9b3ba02021-10-04 16:19:05 +0200267 # Exclusions
elinuxhenrik09103bf2021-11-05 14:43:55 +0100268 sonar.exclusions=test/usecases/oruclosedlooprecovery/goversion/mocks/**.go,test/usecases/oruclosedlooprecovery/goversion/internal/**/**_test.go,test/usecases/oruclosedlooprecovery/goversion/**_test.go,test/usecases/oruclosedlooprecovery/goversion/simulator/**.go
elinuxhenrikb9b3ba02021-10-04 16:19:05 +0200269 jobs:
270 - gerrit-sonar-prescan-script