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