0353ea84f1f2452ff120221c616090a45e0ee3ce
[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 - _nonrtric_jdk_common: &nonrtric_jdk_common
9     # git repo
10     project: nonrtric
11     # jenkins job name prefix
12     project-name: nonrtric
13     # maven settings file has docker credentials
14     mvn-settings: nonrtric-settings
15     mvn-version: mvn36
16     java-version: openjdk17
17
18 - _nonrtric_docker_common: &nonrtric_docker_common
19     <<: *nonrtric_jdk_common
20     # get tag from YAML
21     container-tag-method: yaml-file
22     # use host network to clone from our gerrit
23     docker-build-args: "--network=host"
24
25 - project:
26     <<: *nonrtric_jdk_common
27     name: nonrtric-release
28     # maven release requires sigul which requires centos
29     # container release requires docker
30     build-node: centos7-docker-2c-8g
31     jobs:
32       - "{project-name}-gerrit-release-jobs"
33
34 # Jobs to verify / build / sonar for functional releaseable funtions
35 - project:
36     <<: *nonrtric_docker_common
37     name: nonrtric-plt-auth-token-fetch
38     project-name: "{name}"
39     # image name
40     docker-name: "o-ran-sc/nonrtric-plt-auth-token-fetch"
41     # Directory with Dockerfile
42     docker-root: "auth-token-fetch"
43     # Directory where go test should be run
44     go-root: "auth-token-fetch"
45     # Limit build trigger to appropriate files
46     gerrit_trigger_file_paths:
47       - compare-type: REG_EXP
48         pattern: "auth-token-fetch/.*"
49     build-node: ubuntu1804-docker-4c-4g
50     # Includes verify and merge jobs
51     jobs:
52       - "{project-name}-gerrit-docker-jobs"
53       - gerrit-go-verify
54     stream:
55       - master:
56           branch: master
57       - g-release:
58           java-version: openjdk11
59           branch: g-release
60       - h-release:
61           branch: h-release
62       - i-release:
63           branch: i-release
64
65 # Jobs to verify / build sample uService images
66 - project:
67     <<: *nonrtric_docker_common
68     name: nonrtric-sample-helloworld-sme-invoker
69     project-name: "{name}"
70     # image name
71     docker-name: "o-ran-sc/nonrtric-sample-helloworld-sme-invoker"
72     # Directory with Dockerfile
73     docker-root: "sample-services/hello-world-sme-invoker"
74     # Limit build trigger to appropriate files
75     gerrit_trigger_file_paths:
76       - compare-type: REG_EXP
77         pattern: "sample-services/hello-world-sme-invoker/.*"
78     build-node: ubuntu1804-docker-4c-4g
79     # Includes verify and merge jobs
80     jobs:
81       - "{project-name}-gerrit-docker-jobs"
82     stream:
83       - master:
84           branch: master
85
86 - project:
87     <<: *nonrtric_docker_common
88     name: nonrtric-sample-helloworld
89     project-name: "{name}"
90     # image name
91     docker-name: "o-ran-sc/nonrtric-sample-helloworld"
92     # Directory with Dockerfile
93     docker-root: "sample-services/hello-world"
94     # Limit build trigger to appropriate files
95     gerrit_trigger_file_paths:
96       - compare-type: REG_EXP
97         pattern: "sample-services/hello-world/.*"
98     build-node: ubuntu1804-docker-4c-4g
99     # Includes verify and merge jobs
100     jobs:
101       - "{project-name}-gerrit-docker-jobs"
102     stream:
103       - master:
104           branch: master
105
106 - project:
107     <<: *nonrtric_docker_common
108     name: nonrtric-sample-icsproducer
109     project-name: "{name}"
110     # image name
111     docker-name: "o-ran-sc/nonrtric-sample-icsproducer"
112     # Directory with Dockerfile
113     docker-root: "sample-services/ics-producer-consumer/producer"
114     # Limit build trigger to appropriate files
115     gerrit_trigger_file_paths:
116       - compare-type: REG_EXP
117         pattern: "sample-services/ics-producer-consumer/producer/.*"
118     build-node: ubuntu1804-docker-4c-4g
119     post_docker_build_script: !include-raw-escape:
120       - ics-producer-consumer-tests.sh
121     # Includes verify and merge jobs
122     jobs:
123       - "{project-name}-gerrit-docker-jobs"
124     stream:
125       - master:
126           branch: master
127
128 - project:
129     <<: *nonrtric_docker_common
130     name: nonrtric-sample-icsconsumer
131     project-name: "{name}"
132     # image name
133     docker-name: "o-ran-sc/nonrtric-sample-icsconsumer"
134     # Directory with Dockerfile
135     docker-root: "sample-services/ics-producer-consumer/consumer"
136     # Limit build trigger to appropriate files
137     gerrit_trigger_file_paths:
138       - compare-type: REG_EXP
139         pattern: "sample-services/ics-producer-consumer/consumer/.*"
140     build-node: ubuntu1804-docker-4c-4g
141     post_docker_build_script: !include-raw-escape:
142       - ics-producer-consumer-tests.sh
143     # Includes verify and merge jobs
144     jobs:
145       - "{project-name}-gerrit-docker-jobs"
146     stream:
147       - master:
148           branch: master
149
150 # Jobs to verify / build images for testing
151 - project:
152     <<: *nonrtric_docker_common
153     name: nonrtric-test-kafka-procon
154     project-name: "{name}"
155     # image name
156     docker-name: "kafka-procon"
157     # Directory with Dockerfile
158     docker-root: "test/kafka-procon"
159     # Limit build trigger to appropriate files
160     gerrit_trigger_file_paths:
161       - compare-type: REG_EXP
162         pattern: "test/kafka-procon/.*"
163     build-node: ubuntu1804-docker-4c-4g
164     # Includes verify and merge jobs
165     jobs:
166       - gerrit-docker-verify
167     stream:
168       - master:
169           branch: master
170
171 - project:
172     <<: *nonrtric_docker_common
173     name: nonrtric-test-http-https-proxy
174     project-name: "{name}"
175     # image name
176     docker-name: "nodejs-kube-proxy"
177     # Directory with Dockerfile
178     docker-root: "test/http-https-proxy"
179     # Limit build trigger to appropriate files
180     gerrit_trigger_file_paths:
181       - compare-type: REG_EXP
182         pattern: "test/http-https-proxy/.*"
183     build-node: ubuntu1804-docker-4c-4g
184     # Includes verify and merge jobs
185     jobs:
186       - gerrit-docker-verify
187     stream:
188       - master:
189           branch: master
190
191 - project:
192     <<: *nonrtric_docker_common
193     name: nonrtric-test-cr
194     project-name: "{name}"
195     # image name
196     docker-name: "callback-receiver"
197     # Directory with Dockerfile
198     docker-root: "test/cr"
199     # Limit build trigger to appropriate files
200     gerrit_trigger_file_paths:
201       - compare-type: REG_EXP
202         pattern: "test/cr/.*"
203     build-node: ubuntu1804-docker-4c-4g
204     # Includes verify and merge jobs
205     jobs:
206       - gerrit-docker-verify
207     stream:
208       - master:
209           branch: master
210
211 - project:
212     <<: *nonrtric_docker_common
213     name: nonrtric-test-prodstub
214     project-name: "{name}"
215     # image name
216     docker-name: "producer-stub"
217     # Directory with Dockerfile
218     docker-root: "test/prodstub"
219     # Limit build trigger to appropriate files
220     gerrit_trigger_file_paths:
221       - compare-type: REG_EXP
222         pattern: "test/prodstub/.*"
223     build-node: ubuntu1804-docker-4c-4g
224     # Includes verify and merge jobs
225     jobs:
226       - gerrit-docker-verify
227     stream:
228       - master:
229           branch: master
230
231 - project:
232     <<: *nonrtric_docker_common
233     name: nonrtric-test-mrstub
234     project-name: "{name}"
235     # image name
236     docker-name: "mrstub"
237     # Directory with Dockerfile
238     docker-root: "test/mrstub"
239     # Limit build trigger to appropriate files
240     gerrit_trigger_file_paths:
241       - compare-type: REG_EXP
242         pattern: "test/mrstub/.*"
243     build-node: ubuntu1804-docker-4c-4g
244     # Includes verify and merge jobs
245     jobs:
246       - gerrit-docker-verify
247     stream:
248       - master:
249           branch: master