Add jenkins job for nonrtric-helm-manager
[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
40 # nonrtric:policy-agent
41 # Maven artifacts for nonrtric-policy-agent
42 - project:
43     <<: *nonrtric_jdk_common
44     name: nonrtric-policy-agent
45     project-name: '{name}'
46     mvn-opts: '-Ddocker.skip=true'
47     mvn-params: '-f policy-agent'
48     gerrit_trigger_file_paths:
49       - compare-type: REG_EXP
50         pattern: 'policy-agent/.*'
51     build-node: ubuntu1804-builder-4c-4g
52     jobs:
53       - gerrit-maven-verify
54       - gerrit-maven-merge
55       - gerrit-maven-stage
56       - gerrit-maven-clm
57     stream:
58       - master:
59           branch: master
60       - cherry:
61           branch: cherry
62
63 # nonrtric:sdnc-a1-controller
64 # Maven artifacts for nonrtric-sdnc-a1-controller
65 - project:
66     <<: *nonrtric_jdk_common
67     name: nonrtric-sdnc-a1-controller
68     project-name: '{name}'
69     mvn-opts: '-Ddocker.skip=true'
70     mvn-params: '-f sdnc-a1-controller/northbound'
71     gerrit_trigger_file_paths:
72       - compare-type: REG_EXP
73         pattern: 'sdnc-a1-controller/northbound/.*'
74     build-node: ubuntu1804-builder-4c-4g
75     jobs:
76       - gerrit-maven-verify
77       - gerrit-maven-merge
78       - gerrit-maven-stage
79       - gerrit-maven-clm
80     stream:
81       - master:
82           branch: master
83       - cherry:
84           branch: cherry
85
86 # nonrtric:enrichment-coordinator-service
87 # Maven artifacts for nonrtric-enrichment-coordinator-service
88 - project:
89     <<: *nonrtric_jdk_common
90     name: nonrtric-enrichment-coordinator-service
91     project-name: '{name}'
92     mvn-opts: '-Ddocker.skip=true'
93     mvn-params: '-f enrichment-coordinator-service'
94     gerrit_trigger_file_paths:
95       - compare-type: REG_EXP
96         pattern: 'enrichment-coordinator-service/.*'
97     build-node: ubuntu1804-builder-4c-4g
98     jobs:
99       - gerrit-maven-verify
100       - gerrit-maven-merge
101       - gerrit-maven-stage
102       - gerrit-maven-clm
103     stream:
104       - master:
105           branch: master
106       - cherry:
107           branch: cherry
108
109 # nonrtric:r-app-catalogue
110 # Maven artifacts for r-app-catalogue
111 - project:
112     <<: *nonrtric_jdk_common
113     name: nonrtric-r-app-catalogue
114     project-name: '{name}'
115     mvn-opts: '-Ddocker.skip=true'
116     mvn-params: '-f r-app-catalogue'
117     gerrit_trigger_file_paths:
118       - compare-type: REG_EXP
119         pattern: 'r-app-catalogue/.*'
120     build-node: ubuntu1804-builder-4c-4g
121     jobs:
122       - gerrit-maven-verify
123       - gerrit-maven-merge
124       - gerrit-maven-stage
125       - gerrit-maven-clm
126     stream:
127       - master:
128           branch: master
129       - cherry:
130           branch: cherry
131
132 # nonrtric:helm-manager
133 # Docker image for helm-manager
134 - project:
135     <<: *nonrtric_jdk_common
136     name: nonrtric-helm-manager
137     project-name: '{name}'
138     mvn-params: '-f helm-manager'
139     gerrit_trigger_file_paths:
140       - compare-type: REG_EXP
141         pattern: 'helm-manager/.*'
142     build-node: ubuntu1804-docker-4c-4g
143     jobs:
144       - gerrit-maven-docker-verify
145       - gerrit-maven-docker-merge
146       - gerrit-maven-docker-stage
147     stream:
148       - master:
149           branch: master
150
151 - project:
152     <<: *nonrtric_jdk_common
153     name: nonrtric-o-ru-closed-loop-recovery
154     project-name: '{name}'
155     # image name
156     docker-name: 'o-ran-sc/nonrtric-o-ru-closed-loop-recovery'
157     # get tag from YAML
158     container-tag-method: yaml-file
159     # use host network to clone from our gerrit
160     docker-build-args: '--network=host'
161     # Directory with Dockerfile
162     docker-root: 'test/usecases/oruclosedlooprecovery/scriptversion/app'
163     # Limit build trigger to appropriate files
164     gerrit_trigger_file_paths:
165       - compare-type: REG_EXP
166         pattern: 'test/usecases/oruclosedlooprecovery/scriptversion/app/.*'
167     build-node: ubuntu1804-docker-4c-4g
168     # Includes verify and merge jobs
169     jobs:
170       - "{project-name}-gerrit-docker-jobs"
171     stream:
172       - master:
173           branch: master
174
175 - project:
176     <<: *nonrtric_jdk_common
177     name: nonrtric-release
178     # maven release requires sigul which requires centos
179     # container release requires docker
180     build-node: centos7-docker-2c-8g
181     jobs:
182       - '{project-name}-gerrit-release-jobs'
183
184 - project:
185     <<: *nonrtric_jdk_common
186     name: nonrtric-sonar
187     # template goal install builds docker image unnecessarily
188     mvn-params: '-Ddocker.skip=true'
189     sonarcloud: true
190     sonarcloud-api-token: '{sonarcloud_api_token}'
191     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
192     sonarcloud-project-organization: '{sonarcloud_project_organization}'
193     jobs:
194       - gerrit-maven-sonar