Merge "Correct rApp Catalogue maven config"
[ci-management.git] / jjb / nonrtric / nonrtric.yaml
1 ---
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
12     build-node: centos7-builder-1c-1g
13     jobs:
14       - gerrit-info-yaml-verify
15
16 - nonrtric_jdk_common: &nonrtric_jdk_common
17     name: nonrtric-jdk-common
18     # 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
24     mvn-version: mvn36
25     java-version: openjdk11
26
27 - project:
28     <<: *nonrtric_jdk_common
29     mvn-params: -Dbuild.number=${{BUILD_NUMBER}}
30     jobs:
31       - gerrit-maven-docker-verify
32       - gerrit-maven-docker-merge
33       - gerrit-maven-docker-stage
34     stream:
35       - master:
36           branch: master
37       - cherry:
38           branch: cherry
39       - dawn:
40           branch: dawn
41       - e-release:
42           branch: e-release
43
44 # nonrtric:a1-policy-management-service/
45 # Maven artifacts for nonrtric-a1-policy-management-service/
46 - project:
47     <<: *nonrtric_jdk_common
48     name: nonrtric-a1-policy-management-service
49     project-name: '{name}'
50     mvn-opts: '-Ddocker.skip=true'
51     mvn-params: '-f a1-policy-management-service/'
52     gerrit_trigger_file_paths:
53       - compare-type: REG_EXP
54         pattern: 'a1-policy-management-service/.*'
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:
62       - master:
63           branch: master
64       - e-release:
65           branch: e-release
66
67 # nonrtric:policy-agent/
68 # Maven artifacts for nonrtric-policy-agent/
69 - project:
70     <<: *nonrtric_jdk_common
71     name: nonrtric-policy-agent
72     project-name: '{name}'
73     mvn-opts: '-Ddocker.skip=true'
74     mvn-params: '-f policy-agent/'
75     gerrit_trigger_file_paths:
76       - compare-type: REG_EXP
77         pattern: 'policy-agent/.*'
78     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       - cherry:
86           branch: cherry
87       - dawn:
88           branch: dawn
89
90 # nonrtric:sdnc-a1-controller
91 # Maven artifacts for nonrtric-sdnc-a1-controller
92 - project:
93     <<: *nonrtric_jdk_common
94     name: nonrtric-sdnc-a1-controller
95     project-name: '{name}'
96     mvn-opts: '-Ddocker.skip=true'
97     mvn-params: '-f sdnc-a1-controller/northbound'
98     gerrit_trigger_file_paths:
99       - compare-type: REG_EXP
100         pattern: 'sdnc-a1-controller/northbound/.*'
101     build-node: ubuntu1804-builder-4c-4g
102     jobs:
103       - gerrit-maven-verify
104       - gerrit-maven-merge
105       - gerrit-maven-stage
106       - gerrit-maven-clm
107     stream:
108       - master:
109           branch: master
110       - cherry:
111           branch: cherry
112       - dawn:
113           branch: dawn
114       - e-release:
115           branch: e-release
116
117 # nonrtric:information-coordinator-service
118 # Maven artifacts for nonrtric-information-coordinator-service
119 - project:
120     <<: *nonrtric_jdk_common
121     name: nonrtric-information-coordinator-service
122     project-name: '{name}'
123     mvn-opts: '-Ddocker.skip=true'
124     mvn-params: '-f information-coordinator-service'
125     gerrit_trigger_file_paths:
126       - compare-type: REG_EXP
127         pattern: 'information-coordinator-service/.*'
128     build-node: ubuntu1804-builder-4c-4g
129     jobs:
130       - gerrit-maven-verify
131       - gerrit-maven-merge
132       - gerrit-maven-stage
133       - gerrit-maven-clm
134     stream:
135       - master:
136           branch: master
137       - e-release:
138           branch: e-release
139
140 # nonrtric:enrichment-coordinator-service
141 # Maven artifacts for nonrtric-enrichment-coordinator-service
142 - project:
143     <<: *nonrtric_jdk_common
144     name: nonrtric-enrichment-coordinator-service
145     project-name: '{name}'
146     mvn-opts: '-Ddocker.skip=true'
147     mvn-params: '-f enrichment-coordinator-service'
148     gerrit_trigger_file_paths:
149       - compare-type: REG_EXP
150         pattern: 'enrichment-coordinator-service/.*'
151     build-node: ubuntu1804-builder-4c-4g
152     jobs:
153       - gerrit-maven-verify
154       - gerrit-maven-merge
155       - gerrit-maven-stage
156       - gerrit-maven-clm
157     stream:
158       - cherry:
159           branch: cherry
160       - dawn:
161           branch: dawn
162
163 - project:
164     <<: *nonrtric_jdk_common
165     name: nonrtric-release
166     # maven release requires sigul which requires centos
167     # container release requires docker
168     build-node: centos7-docker-2c-8g
169     jobs:
170       - '{project-name}-gerrit-release-jobs'
171
172 - project:
173     <<: *nonrtric_jdk_common
174     name: nonrtric-sonar
175     project-name: '{name}'
176     # template goal install builds docker image unnecessarily
177     mvn-params: '-Ddocker.skip=true'
178     sonarcloud: true
179     sonarcloud-api-token: '{sonarcloud_api_token}'
180     sonarcloud-project-key: '{sonarcloud_project_organization}_nonrtric'
181     sonarcloud-project-organization: '{sonarcloud_project_organization}'
182     jobs:
183       - gerrit-maven-sonar
184
185 # Usecases
186 - project:
187     <<: *nonrtric_jdk_common
188     name: nonrtric-o-ru-closed-loop-recovery
189     project-name: '{name}'
190     # image name
191     docker-name: 'o-ran-sc/nonrtric-o-ru-closed-loop-recovery'
192     # get tag from YAML
193     container-tag-method: yaml-file
194     # use host network to clone from our gerrit
195     docker-build-args: '--network=host'
196     # Directory with Dockerfile
197     docker-root: 'test/usecases/oruclosedlooprecovery/scriptversion/app'
198     # Limit build trigger to appropriate files
199     gerrit_trigger_file_paths:
200       - compare-type: REG_EXP
201         pattern: 'test/usecases/oruclosedlooprecovery/scriptversion/app/.*'
202     build-node: ubuntu1804-docker-4c-4g
203     # Includes verify and merge jobs
204     jobs:
205       - "{project-name}-gerrit-docker-jobs"
206     stream:
207       - master:
208           branch: master
209       - dawn:
210           branch: dawn
211       - e-release:
212           branch: e-release
213
214 - project:
215     <<: *nonrtric_jdk_common
216     name: nonrtric-o-ru-closed-loop-consumer
217     project-name: '{name}'
218     # image name
219     docker-name: 'o-ran-sc/nonrtric-o-ru-closed-loop-consumer'
220     # get tag from YAML
221     container-tag-method: yaml-file
222     # use host network to clone from our gerrit
223     docker-build-args: '--network=host'
224     # Directory with Dockerfile
225     docker-root: 'test/usecases/oruclosedlooprecovery/goversion'
226     # Directory where go test should be run
227     go-root: 'test/usecases/oruclosedlooprecovery/goversion'
228     # Limit build trigger to appropriate files
229     gerrit_trigger_file_paths:
230       - compare-type: REG_EXP
231         pattern: 'test/usecases/oruclosedlooprecovery/goversion/.*'
232     build-node: ubuntu1804-docker-4c-4g
233     # Includes verify and merge jobs
234     jobs:
235       - "{project-name}-gerrit-docker-jobs"
236       - gerrit-go-verify
237     stream:
238       - master:
239           branch: master
240       - e-release:
241           branch: e-release
242
243 - project:
244     <<: *nonrtric_jdk_common
245     name: nonrtric-o-ru-closed-loop-consumer-sonar
246     project-name: nonrtric-o-ru-closed-loop-consumer-sonar
247     # prescan script requires ubuntu
248     # golang is only on docker-enabled nodes
249     build-node: ubuntu1804-docker-4c-4g
250     sonar-prescan-script: !include-raw-escape: prescan-oruclosedloopconsumer-ubuntu.sh
251     sonar-project-file: ""
252     java-version: openjdk11
253     # use sonarcloud values from defaults.yaml
254     sonar-properties: |
255         # Required metadata
256         sonar.login={sonarcloud_api_token}
257         sonar.projectKey={sonarcloud_project_organization}_nonrtric-o-ru-closed-loop-consumer
258         sonar.organization={sonarcloud_project_organization}
259         # Encoding
260         sonar.build.sourceEncoding=UTF-8
261         # Language
262         sonar.language=go
263         # Source
264         sonar.sources=.
265         # Unit tests
266         sonar.go.coverage.reportPaths=test/usecases/oruclosedlooprecovery/goversion/coverage.txt
267         # Inclusions
268         sonar.inclusions=test/usecases/oruclosedlooprecovery/goversion/internal/**/**.go,test/usecases/oruclosedlooprecovery/goversion/**.go
269         # Exclusions
270         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
271     jobs:
272       - gerrit-sonar-prescan-script