Merge "Chore: Archive aal/mgmt project"
[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-dmaap-mediator-producer
171     project-name: '{name}'
172     # image name
173     docker-name: 'o-ran-sc/nonrtric-dmaap-mediator-producer'
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: 'dmaap-mediator-producer'
180     # Limit build trigger to appropriate files
181     gerrit_trigger_file_paths:
182       - compare-type: REG_EXP
183         pattern: 'dmaap-mediator-producer/.*'
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     # prescan script requires ubuntu
196     # golang is only on docker-enabled nodes
197     build-node: ubuntu1804-docker-4c-4g
198     sonar-prescan-script: !include-raw-escape: prescan-dmaapmediatorproducer-ubuntu.sh
199     sonar-project-file: ""
200     java-version: openjdk11
201     # use sonarcloud values from defaults.yaml
202     sonar-properties: |
203         # Required metadata
204         sonar.login={sonarcloud_api_token}
205         sonar.projectKey={sonarcloud_project_organization}_{project-name}
206         sonar.projectName={project-name}
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=./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/internal/**/**_test.go
220     jobs:
221       - gerrit-sonar-prescan-script
222
223 - project:
224     <<: *nonrtric_jdk_common
225     name: nonrtric-release
226     # maven release requires sigul which requires centos
227     # container release requires docker
228     build-node: centos7-docker-2c-8g
229     jobs:
230       - '{project-name}-gerrit-release-jobs'
231
232 - project:
233     <<: *nonrtric_jdk_common
234     name: nonrtric-sonar
235     # template goal install builds docker image unnecessarily
236     mvn-params: '-Ddocker.skip=true'
237     sonarcloud: true
238     sonarcloud-api-token: '{sonarcloud_api_token}'
239     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
240     sonarcloud-project-organization: '{sonarcloud_project_organization}'
241     jobs:
242       - gerrit-maven-sonar