6e9a93d68d1c0490439321405c1b36bd1f0b8140
[ci-management.git] / jjb / cicn / cicn.yaml
1 ---
2 - project:
3     name: cicn-libparc-x86_64
4     jobs:
5       - "cicn-libparc-verify-{stream}-{os}-{executor-arch}"
6       - "cicn-libparc-merge-{stream}-{os}-{executor-arch}"
7
8     project: "cicn"
9     os:
10       - ubuntu1804:
11           repo-os-part: "ubuntu.bionic.main"
12       - ubuntu2004:
13           repo-os-part: "ubuntu.focal.main"
14       - centos7:
15           repo-os-part: "centos7"
16
17     executor-arch: "x86_64"
18
19     stream:
20       - master:
21           branch: "cframework/master"
22           repo-stream-part: "master"
23
24     type:
25       - short
26       - long
27
28 - project:
29     name: cicn-libparc-aarch64
30     jobs:
31       - "cicn-libparc-verify-{stream}-{os}-{executor-arch}"
32       - "cicn-libparc-merge-{stream}-{os}-{executor-arch}"
33
34     project: "cicn"
35     os:
36       - ubuntu1804:
37           repo-os-part: "ubuntu-arm.bionic.main"
38
39     executor-arch: "aarch64"
40
41     stream:
42       - master:
43           branch: "cframework/master"
44           repo-stream-part: "master"
45
46     type:
47       - short
48       - long
49
50 - project:
51     name: cicn-viper
52     jobs:
53       - "cicn-viper-verify-{stream}-{os}-{executor-arch}"
54       - "cicn-viper-merge-{stream}-{os}-{executor-arch}"
55
56     project: "cicn"
57     os:
58       - ubuntu1804:
59           repo-os-part: "ubuntu.bionic.main"
60
61     executor-arch: "x86_64"
62
63     stream:
64       - master:
65           branch: "viper/master"
66           repo-stream-part: "master"
67
68     type:
69       - short
70       - long
71
72 - job-template:
73     name: "cicn-libparc-merge-{stream}-{os}-{executor-arch}"
74
75     project-type: freestyle
76     node: "{os}-m"
77
78     build-discarder:
79       daysToKeep: "{build-days-to-keep}"
80       numToKeep: "{build-num-to-keep}"
81       artifactDaysToKeep: "{build-artifact-days-to-keep}"
82       artifactNumToKeep: "{build-artifact-num-to-keep}"
83
84     parameters:
85       - project-parameter:
86           project: "{project}"
87       - gerrit-parameter:
88           branch: "{branch}"
89       - os-parameter:
90           os: "{os}"
91       - maven-project-parameter:
92           maven: "mvn33-new"
93       - maven-exec:
94           maven-version: "mvn33-new"
95       - repo-name-parameter:
96           repo-name: "{repo-stream-part}.{repo-os-part}"
97       - stream-parameter:
98           stream: "hicn"
99       - string:
100           name: ARCHIVE_ARTIFACTS
101           default: "{archive-artifacts}"
102           description: Artifacts to archive to the logs server.
103
104     scm:
105       - gerrit-trigger-scm:
106           credentials-id: "jenkins-gerrit-credentials"
107           refspec: ""
108           choosing-strategy: "default"
109
110     wrappers:
111       - fdio-infra-wrappers:
112           build-timeout: "{build-timeout}"
113
114     triggers:
115       - gerrit-trigger-patch-merged:
116           name: "{project}"
117           branch: "{branch}"
118
119     builders:
120       - config-file-provider:
121           files:
122             - file-id: ".packagecloud"
123               target: "/root/.packagecloud"
124       - config-file-provider:
125           files:
126             - file-id: "packagecloud_api"
127               target: "/root/packagecloud_api"
128       - maven-target:
129           maven-version: "mvn33-new"
130           goals: "--version"
131           settings: "cicn-settings"
132           settings-type: cfp
133           global-settings: "global-settings"
134           global-settings-type: cfp
135       - shell: !include-raw-escape:
136           - include-raw-cicn-libparc-build.sh
137       - provide-maven-settings:
138           settings-file: "cicn-settings"
139           global-settings-file: "global-settings"
140       - shell: !include-raw-escape:
141           - ../scripts/maven_push_functions.sh
142           - include-raw-cicn-maven-push.sh
143       - shell: !include-raw-escape:
144           - ../scripts/packagecloud_push.sh
145
146     publishers:
147       - fdio-infra-shiplogs:
148           maven-version: "mvn33-new"
149
150 - job-template:
151     name: "cicn-libparc-verify-{stream}-{os}-{executor-arch}"
152
153     project-type: freestyle
154     node: "{os}-m"
155     concurrent: true
156
157     build-discarder:
158       daysToKeep: "{build-days-to-keep}"
159       numToKeep: "{build-num-to-keep}"
160       artifactDaysToKeep: "{build-artifact-days-to-keep}"
161       artifactNumToKeep: "{build-artifact-num-to-keep}"
162
163     parameters:
164       - project-parameter:
165           project: "{project}"
166       - gerrit-parameter:
167           branch: "{branch}"
168       - os-parameter:
169           os: "{os}"
170       - string:
171           name: ARCHIVE_ARTIFACTS
172           default: "{archive-artifacts}"
173           description: Artifacts to archive to the logs server.
174
175     scm:
176       - gerrit-trigger-scm:
177           credentials-id: "jenkins-gerrit-credentials"
178           refspec: "$GERRIT_REFSPEC"
179           choosing-strategy: "gerrit"
180
181     wrappers:
182       - fdio-infra-wrappers:
183           build-timeout: "{build-timeout}"
184
185     triggers:
186       - gerrit-trigger-patch-submitted:
187           name: "{project}"
188           branch: "{branch}"
189
190     builders:
191       - shell: !include-raw-escape:
192           - include-raw-cicn-libparc-build.sh
193
194     publishers:
195       - fdio-infra-shiplogs:
196           maven-version: "mvn33-new"
197
198 - job-template:
199     name: "cicn-viper-merge-{stream}-{os}-{executor-arch}"
200
201     project-type: freestyle
202     node: "{os}-m"
203
204     build-discarder:
205       daysToKeep: "{build-days-to-keep}"
206       numToKeep: "{build-num-to-keep}"
207       artifactDaysToKeep: "{build-artifact-days-to-keep}"
208       artifactNumToKeep: "{build-artifact-num-to-keep}"
209
210     parameters:
211       - project-parameter:
212           project: "{project}"
213       - gerrit-parameter:
214           branch: "{branch}"
215       - os-parameter:
216           os: "{os}"
217       - maven-project-parameter:
218           maven: "mvn33-new"
219       - maven-exec:
220           maven-version: "mvn33-new"
221       - repo-name-parameter:
222           repo-name: "{repo-stream-part}.{repo-os-part}"
223       - stream-parameter:
224           stream: "hicn"
225       - string:
226           name: ARCHIVE_ARTIFACTS
227           default: "{archive-artifacts}"
228           description: Artifacts to archive to the logs server.
229
230     scm:
231       - gerrit-trigger-scm:
232           credentials-id: "jenkins-gerrit-credentials"
233           refspec: ""
234           choosing-strategy: "default"
235
236     wrappers:
237       - fdio-infra-wrappers:
238           build-timeout: "{build-timeout}"
239
240     triggers:
241       - gerrit-trigger-patch-merged:
242           name: "{project}"
243           branch: "{branch}"
244       - reverse:
245           jobs: "cicn-libicnet-merge-{stream}-{os}"
246           result: "failure"
247
248     builders:
249       - config-file-provider:
250           files:
251             - file-id: ".packagecloud"
252               target: "/root/.packagecloud"
253       - config-file-provider:
254           files:
255             - file-id: "packagecloud_api"
256               target: "/root/packagecloud_api"
257       - maven-target:
258           maven-version: "mvn33-new"
259           goals: "--version"
260           settings: "cicn-settings"
261           settings-type: cfp
262           global-settings: "global-settings"
263           global-settings-type: cfp
264       - shell: !include-raw-escape:
265           - include-raw-cicn-viper-build.sh
266       - provide-maven-settings:
267           settings-file: "cicn-settings"
268           global-settings-file: "global-settings"
269       - shell: !include-raw-escape:
270           - ../scripts/maven_push_functions.sh
271           - include-raw-cicn-maven-push.sh
272       - shell: !include-raw-escape:
273           - ../scripts/packagecloud_push.sh
274
275     publishers:
276       - fdio-infra-shiplogs:
277           maven-version: "mvn33-new"
278
279 - job-template:
280     name: "cicn-viper-verify-{stream}-{os}-{executor-arch}"
281
282     project-type: freestyle
283     node: "{os}-m"
284     concurrent: true
285
286     build-discarder:
287       daysToKeep: "{build-days-to-keep}"
288       numToKeep: "{build-num-to-keep}"
289       artifactDaysToKeep: "{build-artifact-days-to-keep}"
290       artifactNumToKeep: "{build-artifact-num-to-keep}"
291
292     parameters:
293       - project-parameter:
294           project: "{project}"
295       - gerrit-parameter:
296           branch: "{branch}"
297       - os-parameter:
298           os: "{os}"
299       - string:
300           name: ARCHIVE_ARTIFACTS
301           default: "{archive-artifacts}"
302           description: Artifacts to archive to the logs server.
303
304     scm:
305       - gerrit-trigger-scm:
306           credentials-id: "jenkins-gerrit-credentials"
307           refspec: "$GERRIT_REFSPEC"
308           choosing-strategy: "gerrit"
309
310     wrappers:
311       - fdio-infra-wrappers:
312           build-timeout: "{build-timeout}"
313
314     triggers:
315       - gerrit-trigger-patch-submitted:
316           name: "{project}"
317           branch: "{branch}"
318
319     builders:
320       - shell: !include-raw-escape:
321           - include-raw-cicn-viper-build.sh
322
323     publishers:
324       - fdio-infra-shiplogs:
325           maven-version: "mvn33-new"
326
327 - project:
328     name: cicn-info
329     project-name: cicn
330     jobs:
331       - gerrit-info-yaml-verify
332     build-node: centos7-builder-2c-2g
333     project: cicn
334     branch: master
335
336 - project:
337     name: cicn-sonar
338     project: cicn
339     project-name: cicn
340     mvn-settings: cicn-settings
341     sonarcloud: true
342     sonarcloud-project-organization: "{sonarcloud_project_organization}"
343     sonarcloud-api-token: "{sonarcloud_api_token}"
344     sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
345     branch: master
346     build-node: centos7-builder-2c-2g
347     jobs:
348       - gerrit-maven-sonar