ba97330a4b98298352f23367600852dd552b4b53
[ci-management.git] / nonrtric-plt-ranpm.yaml
1 ---
2 - project:
3     name: nonrtric-plt-ranpm-project-view
4     project-name: nonrtric-plt-ranpm
5     views:
6       - project-view
7
8 - project:
9     name: nonrtric-plt-ranpm-info
10     project: nonrtric/plt/ranpm
11     project-name: nonrtric-plt-ranpm
12     build-node: centos7-builder-1c-1g
13     branch: master
14     jobs:
15       - gerrit-info-yaml-verify
16
17 - _nonrtric-plt-ranpm_common: &nonrtric_plt_ranpm_jdk_common
18     name: nonrtric-plt-ranpm-common
19     # git repo
20     project: nonrtric/plt/ranpm
21     # jenkins job name prefix
22     project-name: nonrtric-plt-ranpm
23     # maven settings file has docker credentials
24     mvn-settings: nonrtric-plt-ranpm-settings
25     mvn-version: mvn36
26     java-version: openjdk17
27
28 - project:
29     <<: *nonrtric_plt_ranpm_jdk_common
30     name: nonrtric-plt-ranpm-gerrit-release
31     project-name: nonrtric-plt-ranpm
32     # maven release requires sigul which requires centos
33     # container release requires docker
34     build-node: centos7-docker-2c-8g
35     jobs:
36       - "{project-name}-gerrit-release-jobs"
37
38 # Jobs for nonrtric-plt-ranpm-datafilecollector
39 - project:
40     <<: *nonrtric_plt_ranpm_jdk_common
41     name: nonrtric-plt-ranpm-datafilecollector-gerrit-maven-docker
42     #job name prefix
43     project-name: nonrtric-plt-ranpm-datafilecollector
44     mvn-params: "-f datafilecollector -Dbuild.number=${{BUILD_NUMBER}}"
45     gerrit_trigger_file_paths:
46       - compare-type: REG_EXP
47         pattern: "datafilecollector/.*"
48     jobs:
49       - gerrit-maven-clm
50       - gerrit-maven-verify-dependencies
51       - gerrit-maven-docker-merge
52       - gerrit-maven-docker-stage
53       - gerrit-maven-docker-verify
54     stream:
55       - master:
56           branch: master
57       - h-release:
58           branch: h-release
59       - i-release:
60           branch: i-release
61
62 # Jobs for nonrtric-plt-ranpm-pmproducer
63 - project:
64     <<: *nonrtric_plt_ranpm_jdk_common
65     name: nonrtric-plt-ranpm-pmproducer-gerrit-maven-docker
66     #job name prefix
67     project-name: nonrtric-plt-ranpm-pmproducer
68     mvn-params: "-f pmproducer -Dbuild.number=${{BUILD_NUMBER}}"
69     gerrit_trigger_file_paths:
70       - compare-type: REG_EXP
71         pattern: "pmproducer/.*"
72     jobs:
73       - gerrit-maven-clm
74       - gerrit-maven-verify-dependencies
75       - gerrit-maven-docker-merge
76       - gerrit-maven-docker-stage
77       - gerrit-maven-docker-verify
78     stream:
79       - master:
80           branch: master
81       - h-release:
82           branch: h-release
83       - i-release:
84           branch: i-release
85
86 # Jobs for nonrtric-plt-ranpm-influxlogger
87 - project:
88     <<: *nonrtric_plt_ranpm_jdk_common
89     name: nonrtric-plt-ranpm-influxlogger-gerrit-maven-docker
90     #job name prefix
91     project-name: nonrtric-plt-ranpm-influxlogger
92     mvn-params: "-f influxlogger -Dbuild.number=${{BUILD_NUMBER}}"
93     gerrit_trigger_file_paths:
94       - compare-type: REG_EXP
95         pattern: "influxlogger/.*"
96     jobs:
97       - gerrit-maven-clm
98       - gerrit-maven-verify-dependencies
99       - gerrit-maven-docker-merge
100       - gerrit-maven-docker-stage
101       - gerrit-maven-docker-verify
102     stream:
103       - master:
104           branch: master
105       - h-release:
106           branch: h-release
107       - i-release:
108           branch: i-release
109
110 - project:
111     <<: *nonrtric_plt_ranpm_jdk_common
112     name: nonrtric-plt-ranpm-pm-file-converter
113     project-name: "{name}"
114     # image name
115     docker-name: "o-ran-sc/nonrtric-plt-ranpm-pm-file-converter"
116     # get tag from YAML
117     container-tag-method: yaml-file
118     # use host network to clone from our gerrit
119     docker-build-args: "--network=host"
120     # Directory with Dockerfile
121     docker-root: "pm-file-converter"
122     # Directory where go test should be run
123     go-root: "pm-file-converter"
124     gerrit_trigger_file_paths:
125       - compare-type: REG_EXP
126         pattern: "pm-file-converter/.*"
127     build-node: ubuntu1804-docker-4c-4g
128     # Includes verify and merge jobs
129     jobs:
130       - "{project-name}-gerrit-docker-jobs"
131       - gerrit-go-verify
132     stream:
133       - master:
134           branch: master
135       - h-release:
136           branch: h-release
137       - i-release:
138           branch: i-release
139
140 # Jobs for nonrtric-plt-ranpm-pm-file-converter SONAR
141 - project:
142     <<: *nonrtric_plt_ranpm_jdk_common
143     name: nonrtric-plt-ranpm-pm-file-converter-sonar
144     project-name: nonrtric-plt-ranpm-pm-file-converter
145     # prescan script requires ubuntu
146     # golang is only on docker-enabled nodes
147     build-node: ubuntu1804-docker-4c-4g
148     gerrit_trigger_file_paths:
149       - compare-type: REG_EXP
150         pattern: "pm-file-converter/.*"
151     sonar-prescan-script: !include-raw-escape: prescan-pm-file-converter-ubuntu.sh
152     sonar-project-file: ""
153     java-version: openjdk11
154     # use sonarcloud values from defaults.yaml
155     sonar-properties: |
156       sonar.login={sonarcloud_api_token}
157       sonar.projectKey={sonarcloud_project_organization}_{project-name}
158       sonar.organization={sonarcloud_project_organization}
159       sonar.projectName={project-name}
160       sonar.build.sourceEncoding=UTF-8
161       sonar.language=go
162       sonar.projectBaseDir=pm-file-converter
163       sonar.go.coverage.reportPaths=coverage.txt
164       sonar.inclusions=**/*.go
165       sonar.exclusions=**/*_test.go
166     jobs:
167       - gerrit-sonar-prescan-script
168
169 - project:
170     <<: *nonrtric_plt_ranpm_jdk_common
171     name: nonrtric-plt-ranpm-datafilecollector-sonar
172     project-name: nonrtric-plt-ranpm-datafilecollector
173     # template goal install builds docker image unnecessarily
174     mvn-params: "-f datafilecollector -Ddocker.skip=true"
175     gerrit_trigger_file_paths:
176       - compare-type: REG_EXP
177         pattern: "datafilecollector/.*"
178     sonarcloud: true
179     sonarcloud-api-token: "{sonarcloud_api_token}"
180     sonarcloud-project-key: "nonrtric-plt-ranpm-datafilecollector"
181     sonarcloud-project-organization: "{sonarcloud_project_organization}"
182     jobs:
183       - gerrit-maven-sonar
184
185 - project:
186     <<: *nonrtric_plt_ranpm_jdk_common
187     name: nonrtric-plt-ranpm-pmproducer-sonar
188     project-name: nonrtric-plt-ranpm-pmproducer
189     # template goal install builds docker image unnecessarily
190     mvn-params: "-f pmproducer -Ddocker.skip=true"
191     gerrit_trigger_file_paths:
192       - compare-type: REG_EXP
193         pattern: "pmproducer/.*"
194     sonarcloud: true
195     sonarcloud-api-token: "{sonarcloud_api_token}"
196     sonarcloud-project-key: "nonrtric-plt-ranpm-pmproducer"
197     sonarcloud-project-organization: "{sonarcloud_project_organization}"
198     jobs:
199       - gerrit-maven-sonar
200
201 - project:
202     <<: *nonrtric_plt_ranpm_jdk_common
203     name: nonrtric-plt-ranpm-influxlogger-sonar
204     project-name: nonrtric-plt-ranpm-influxlogger
205     # template goal install builds docker image unnecessarily
206     mvn-params: "-f influxlogger -Ddocker.skip=true"
207     gerrit_trigger_file_paths:
208       - compare-type: REG_EXP
209         pattern: "influxlogger/.*"
210     sonarcloud: true
211     sonarcloud-api-token: "{sonarcloud_api_token}"
212     sonarcloud-project-key: "nonrtric-plt-ranpm-influxlogger"
213     sonarcloud-project-organization: "{sonarcloud_project_organization}"
214     jobs:
215       - gerrit-maven-sonar