53352fb205e97f1d4a3c5d0a4c0f312015cbbd4d
[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 - project:
66     <<: *nonrtric_jdk_common
67     name: nonrtric-plt-auth-token-fetch-sonar
68     project-name: nonrtric-plt-auth-token-fetch
69     # prescan script requires ubuntu
70     # golang is only on docker-enabled nodes
71     build-node: ubuntu1804-docker-4c-4g
72     sonar-prescan-script: !include-raw-escape: prescan-nonrtric-auth-token-fetch-ubuntu.sh
73     sonar-project-file: ""
74     java-version: openjdk11
75     # use sonarcloud values from defaults.yaml
76     sonar-properties: !include-raw-escape: sonar-project.properties
77     jobs:
78       - gerrit-sonar-prescan-script
79
80 # Jobs to verify / build sample uService images
81 - project:
82     <<: *nonrtric_docker_common
83     name: nonrtric-sample-helloworld-sme-invoker
84     project-name: "{name}"
85     # image name
86     docker-name: "o-ran-sc/nonrtric-sample-helloworld-sme-invoker"
87     # Directory with Dockerfile
88     docker-root: "sample-services/hello-world-sme-invoker"
89     # Limit build trigger to appropriate files
90     gerrit_trigger_file_paths:
91       - compare-type: REG_EXP
92         pattern: "sample-services/hello-world-sme-invoker/.*"
93     build-node: ubuntu1804-docker-4c-4g
94     # Includes verify and merge jobs
95     jobs:
96       - "{project-name}-gerrit-docker-jobs"
97     stream:
98       - master:
99           branch: master
100
101 - project:
102     <<: *nonrtric_docker_common
103     name: nonrtric-sample-helloworld
104     project-name: "{name}"
105     # image name
106     docker-name: "o-ranc-sc/nonrtric-sample-helloworld"
107     # Directory with Dockerfile
108     docker-root: "sample-services/hello-world"
109     # Limit build trigger to appropriate files
110     gerrit_trigger_file_paths:
111       - compare-type: REG_EXP
112         pattern: "sample-services/hello-world/.*"
113     build-node: ubuntu1804-docker-4c-4g
114     # Includes verify and merge jobs
115     jobs:
116       - "{project-name}-gerrit-docker-jobs"
117     stream:
118       - master:
119           branch: master
120
121 # Jobs to verify / build images for testing
122 - project:
123     <<: *nonrtric_docker_common
124     name: nonrtric-test-kafka-procon
125     project-name: "{name}"
126     # image name
127     docker-name: "kafka-procon"
128     # Directory with Dockerfile
129     docker-root: "test/kafka-procon"
130     # Limit build trigger to appropriate files
131     gerrit_trigger_file_paths:
132       - compare-type: REG_EXP
133         pattern: "test/kafka-procon/.*"
134     build-node: ubuntu1804-docker-4c-4g
135     # Includes verify and merge jobs
136     jobs:
137       - gerrit-docker-verify
138     stream:
139       - master:
140           branch: master
141
142 - project:
143     <<: *nonrtric_docker_common
144     name: nonrtric-test-http-https-proxy
145     project-name: "{name}"
146     # image name
147     docker-name: "nodejs-kube-proxy"
148     # Directory with Dockerfile
149     docker-root: "test/http-https-proxy"
150     # Limit build trigger to appropriate files
151     gerrit_trigger_file_paths:
152       - compare-type: REG_EXP
153         pattern: "test/http-https-proxy/.*"
154     build-node: ubuntu1804-docker-4c-4g
155     # Includes verify and merge jobs
156     jobs:
157       - gerrit-docker-verify
158     stream:
159       - master:
160           branch: master
161
162 - project:
163     <<: *nonrtric_docker_common
164     name: nonrtric-test-cr
165     project-name: "{name}"
166     # image name
167     docker-name: "callback-receiver"
168     # Directory with Dockerfile
169     docker-root: "test/cr"
170     # Limit build trigger to appropriate files
171     gerrit_trigger_file_paths:
172       - compare-type: REG_EXP
173         pattern: "test/cr/.*"
174     build-node: ubuntu1804-docker-4c-4g
175     # Includes verify and merge jobs
176     jobs:
177       - gerrit-docker-verify
178     stream:
179       - master:
180           branch: master
181
182 - project:
183     <<: *nonrtric_docker_common
184     name: nonrtric-test-prodstub
185     project-name: "{name}"
186     # image name
187     docker-name: "producer-stub"
188     # Directory with Dockerfile
189     docker-root: "test/prodstub"
190     # Limit build trigger to appropriate files
191     gerrit_trigger_file_paths:
192       - compare-type: REG_EXP
193         pattern: "test/prodstub/.*"
194     build-node: ubuntu1804-docker-4c-4g
195     # Includes verify and merge jobs
196     jobs:
197       - gerrit-docker-verify
198     stream:
199       - master:
200           branch: master
201
202 - project:
203     <<: *nonrtric_docker_common
204     name: nonrtric-test-mrstub
205     project-name: "{name}"
206     # image name
207     docker-name: "mrstub"
208     # Directory with Dockerfile
209     docker-root: "test/mrstub"
210     # Limit build trigger to appropriate files
211     gerrit_trigger_file_paths:
212       - compare-type: REG_EXP
213         pattern: "test/mrstub/.*"
214     build-node: ubuntu1804-docker-4c-4g
215     # Includes verify and merge jobs
216     jobs:
217       - gerrit-docker-verify
218     stream:
219       - master:
220           branch: master