Modify logs publisher
[ci-management.git] / jjb / hicn / hicn.yaml
1 ---
2 - project:
3     name: hicn
4     jobs:
5       - 'hicn-verify-{stream}-{os}'
6       - 'hicn-merge-{stream}-{os}'
7
8     project: 'hicn'
9     os:
10       - ubuntu1804:
11           repo-os-part: 'ubuntu.bionic.main'
12       - ubuntu1604:
13           repo-os-part: 'ubuntu.xenial.main'
14       - centos7:
15           repo-os-part: 'centos7'
16
17     stream:
18       - master:
19           branch: 'master'
20           repo-stream-part: 'master'
21
22     type:
23       - short
24       - long
25
26 - project:
27     name: hicn-misc
28     jobs:
29       - 'hicn-checkstyle-verify-{stream}'
30     project: 'hicn'
31     stream:
32       - master:
33           branch: 'master'
34           repo-stream-part: 'master'
35     os: ubuntu1604
36
37 - project:
38     name: hicn-sysrepo
39     jobs:
40       - 'hicn-sysrepo-plugin-verify-{stream}'
41       - 'hicn-sysrepo-plugin-merge-{stream}'
42     project: 'hicn'
43     stream:
44       - master:
45           branch: 'master'
46           repo-stream-part: 'master'
47     os: ubuntu1804
48
49 - project:
50     name: hicn-view
51     views:
52       - project-view
53     project-name: hicn
54
55 - job-template:
56     name: 'hicn-checkstyle-verify-{stream}'
57
58     project-type: freestyle
59     node: '{os}-us'
60     concurrent: true
61     archive-artifacts: '**/tmp/hicn-failed-unittests/*/* **/core'
62
63     build-discarder:
64       daysToKeep: '{build-days-to-keep}'
65       numToKeep: '{build-num-to-keep}'
66       artifactDaysToKeep: '{build-artifact-days-to-keep}'
67       artifactNumToKeep: '{build-artifact-num-to-keep}'
68
69     parameters:
70       - project-parameter:
71           project: '{project}'
72       - gerrit-parameter:
73           branch: '{branch}'
74       - os-parameter:
75           os: '{os}'
76       - repo-name-parameter:
77           repo-name: '{repo-stream-part}.ubuntu.xenial.main'
78       - string:
79           name: ARCHIVE_ARTIFACTS
80           default: '{archive-artifacts}'
81           description: Artifacts to archive to the logs server.
82
83     scm:
84       - gerrit-trigger-scm:
85           credentials-id: 'jenkins-gerrit-credentials'
86           refspec: '$GERRIT_REFSPEC'
87           choosing-strategy: 'gerrit'
88
89     wrappers:
90       - fdio-infra-wrappers:
91           build-timeout: '{build-timeout}'
92
93     triggers:
94       - gerrit:
95           server-name: 'Primary'
96           trigger-on:
97             - patchset-created-event:
98                 exclude-drafts: 'true'
99                 exclude-trivial-rebase: 'false'
100                 exclude-no-code-change: 'true'
101             - draft-published-event
102             - comment-added-contains-event:
103                 comment-contains-value: 'checkstylecheck'
104             - comment-added-contains-event:
105                 comment-contains-value: 'docsonly'
106             - comment-added-contains-event:
107                 comment-contains-value: 'recheck'
108             - comment-added-contains-event:
109                 comment-contains-value: 'reverify'
110           projects:
111             - project-compare-type: 'ANT'
112               project-pattern: '{project}'
113               branches:
114                 - branch-compare-type: 'ANT'
115                   branch-pattern: '**/{branch}'
116               file-paths:
117                 - compare-type: REG_EXP
118                   pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
119               disable-strict-forbidden-file-verification: 'true'
120           override-votes: true
121           gerrit-build-notbuilt-verified-value: 0
122           gerrit-build-successful-verified-value: 1
123           # yamllint disable-line rule:line-length
124           notbuilt-message: 'Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes.'
125           # yamllint disable-line rule:line-length
126           failed-message: 'Checkstyle failed. No further verify jobs will be started.'
127           successful-message: 'checkstyle_success'
128           skip-vote:
129             successful: true
130             failed: false
131             unstable: false
132             notbuilt: false
133
134     builders:
135       - shell:
136           !include-raw-escape: include-raw-hicn-checkstyle.sh
137
138     publishers:
139       - fdio-infra-shiplogs:
140           maven-version: 'mvn33-new'
141       - naginator:
142           rerun-unstable-builds: true
143           max-failed-builds: 1
144           fixed-delay: 90
145
146 - job-template:
147     name: 'hicn-verify-{stream}-{os}'
148
149     project-type: freestyle
150     node: '{os}-us'
151     concurrent: true
152     archive-artifacts: >
153       **/build/*.rpm,
154       **/build/*.deb
155     allow-empty: 'true'
156     fingerprint: false
157     only-if-success: true
158     default-excludes: false
159
160     build-discarder:
161       daysToKeep: '{build-days-to-keep}'
162       numToKeep: 100
163       artifactDaysToKeep: '{build-artifact-days-to-keep}'
164       artifactNumToKeep: '{build-artifact-num-to-keep}'
165
166     parameters:
167       - project-parameter:
168           project: '{project}'
169       - gerrit-parameter:
170           branch: '{branch}'
171       - os-parameter:
172           os: '{os}'
173       - repo-name-parameter:
174           repo-name: '{repo-stream-part}.{repo-os-part}'
175       - stream-parameter:
176           stream: '{stream}'
177       - string:
178           name: ARCHIVE_ARTIFACTS
179           default: '{archive-artifacts}'
180           description: Artifacts to archive to the logs server.
181
182     scm:
183       - gerrit-trigger-scm:
184           credentials-id: 'jenkins-gerrit-credentials'
185           refspec: '$GERRIT_REFSPEC'
186           choosing-strategy: 'gerrit'
187
188     wrappers:
189       - fdio-infra-wrappers:
190           build-timeout: 120
191
192     triggers:
193       - gerrit-trigger-checkstyle:
194           name: '{project}'
195           branch: '{branch}'
196
197     builders:
198       - shell:
199           !include-raw-escape:
200           - include-raw-hicn-build.sh
201
202     publishers:
203       - fdio-infra-shiplogs:
204           maven-version: 'mvn33-new'
205
206 - job-template:
207     name: 'hicn-merge-{stream}-{os}'
208
209     project-type: freestyle
210     node: '{os}-us'
211     archive-artifacts: >
212       **/build/*.rpm,
213       **/build/*.deb
214     allow-empty: 'true'
215     fingerprint: false
216     only-if-success: true
217     default-excludes: false
218
219     build-discarder:
220       daysToKeep: '{build-days-to-keep}'
221       numToKeep: 100
222       artifactDaysToKeep: '{build-artifact-days-to-keep}'
223       artifactNumToKeep: '{build-artifact-num-to-keep}'
224
225     parameters:
226       - project-parameter:
227           project: '{project}'
228       - gerrit-parameter:
229           branch: '{branch}'
230       - os-parameter:
231           os: '{os}'
232       - maven-project-parameter:
233           maven: 'mvn33-new'
234       - maven-exec:
235           maven-version: 'mvn33-new'
236       - stream-parameter:
237           stream: 'release'
238       - repo-name-parameter:
239           repo-name: '{repo-stream-part}.{repo-os-part}'
240       - string:
241           name: ARCHIVE_ARTIFACTS
242           default: '{archive-artifacts}'
243           description: Artifacts to archive to the logs server.
244
245     scm:
246       - gerrit-trigger-scm:
247           credentials-id: 'jenkins-gerrit-credentials'
248           refspec: ''
249           choosing-strategy: 'default'
250
251     wrappers:
252       - fdio-infra-wrappers:
253           build-timeout: '{build-timeout}'
254
255     triggers:
256       - gerrit-trigger-patch-merged:
257           name: '{project}'
258           branch: '{branch}'
259
260     builders:
261       - config-file-provider:
262           files:
263             - file-id: '.packagecloud'
264               target: '/root'
265       - config-file-provider:
266           files:
267             - file-id: 'packagecloud_api'
268               target: '/root'
269       - maven-target:
270           maven-version: 'mvn33-new'
271           goals: '--version'
272           settings: 'hicn-settings'
273           settings-type: cfp
274           global-settings: 'global-settings'
275           global-settings-type: cfp
276       - shell:
277           !include-raw-escape:
278           - include-raw-hicn-checkstyle.sh
279       - shell:
280           !include-raw-escape:
281           - include-raw-hicn-build.sh
282       - provide-maven-settings:
283           settings-file: 'hicn-settings'
284           global-settings-file: 'global-settings'
285       - shell:
286           !include-raw-escape:
287           - ../scripts/packagecloud_push.sh
288       - shell:
289           !include-raw-escape:
290           - ../scripts/maven_push_functions.sh
291           - include-raw-hicn-maven-push.sh
292
293     publishers:
294       - fdio-infra-shiplogs:
295           maven-version: 'mvn33-new'
296       - naginator:
297           rerun-unstable-builds: false
298           max-failed-builds: 1
299           fixed-delay: 90
300
301 - project:
302     name: hicn-sonar
303     project: hicn
304     project-name: hicn
305     mvn-settings: hicn-settings
306     mvn-version: 'mvn33-new'
307     branch: master
308     build-node: ubuntu1604-basebuild-4c-4g
309     jobs:
310       - gerrit-maven-sonar
311
312 - job-template:
313     name: 'hicn-sysrepo-plugin-verify-{stream}'
314
315     project-type: freestyle
316     node: '{os}-us'
317     concurrent: true
318     archive-artifacts: >
319       **/build/*.rpm,
320       **/build/*.deb
321     allow-empty: 'true'
322     fingerprint: false
323     only-if-success: true
324     default-excludes: false
325
326     build-discarder:
327       daysToKeep: '{build-days-to-keep}'
328       numToKeep: 100
329       artifactDaysToKeep: '{build-artifact-days-to-keep}'
330       artifactNumToKeep: '{build-artifact-num-to-keep}'
331
332     parameters:
333       - project-parameter:
334           project: '{project}'
335       - gerrit-parameter:
336           branch: '{branch}'
337       - os-parameter:
338           os: '{os}'
339       - repo-name-parameter:
340           repo-name: '{repo-stream-part}.ubuntu.bionic.main'
341       - stream-parameter:
342           stream: '{stream}'
343       - string:
344           name: ARCHIVE_ARTIFACTS
345           default: '{archive-artifacts}'
346           description: Artifacts to archive to the logs server.
347
348     scm:
349       - gerrit-trigger-scm:
350           credentials-id: 'jenkins-gerrit-credentials'
351           refspec: '$GERRIT_REFSPEC'
352           choosing-strategy: 'gerrit'
353
354     wrappers:
355       - fdio-infra-wrappers:
356           build-timeout: 120
357
358     triggers:
359       - gerrit:
360           server-name: 'Primary'
361           trigger-on:
362             - comment-added-contains-event:
363                 comment-contains-value: 'verify_sysrepo'
364           projects:
365             - project-compare-type: 'ANT'
366               project-pattern: '{project}'
367               branches:
368                 - branch-compare-type: 'ANT'
369                   branch-pattern: '**/{branch}'
370
371     builders:
372       - shell:
373           !include-raw-escape:
374           - include-raw-hicn-sysrepo-build.sh
375
376     publishers:
377       - fdio-infra-shiplogs:
378           maven-version: 'mvn33-new'
379
380 - job-template:
381     name: 'hicn-sysrepo-plugin-merge-{stream}'
382
383     project-type: freestyle
384     node: '{os}-us'
385     archive-artifacts: >
386       **/build/*.rpm,
387       **/build/*.deb
388     allow-empty: 'true'
389     fingerprint: false
390     only-if-success: true
391     default-excludes: false
392
393     build-discarder:
394       daysToKeep: '{build-days-to-keep}'
395       numToKeep: 100
396       artifactDaysToKeep: '{build-artifact-days-to-keep}'
397       artifactNumToKeep: '{build-artifact-num-to-keep}'
398
399     parameters:
400       - project-parameter:
401           project: '{project}'
402       - gerrit-parameter:
403           branch: '{branch}'
404       - os-parameter:
405           os: '{os}'
406       - maven-project-parameter:
407           maven: 'mvn33-new'
408       - maven-exec:
409           maven-version: 'mvn33-new'
410       - stream-parameter:
411           stream: 'release'
412       - repo-name-parameter:
413           repo-name: '{repo-stream-part}.ubuntu.bionic.main'
414       - string:
415           name: ARCHIVE_ARTIFACTS
416           default: '{archive-artifacts}'
417           description: Artifacts to archive to the logs server.
418
419     scm:
420       - gerrit-trigger-scm:
421           credentials-id: 'jenkins-gerrit-credentials'
422           refspec: ''
423           choosing-strategy: 'default'
424
425     wrappers:
426       - fdio-infra-wrappers:
427           build-timeout: '{build-timeout}'
428
429     triggers:
430       - gerrit:
431           server-name: 'Primary'
432           trigger-on:
433             - comment-added-contains-event:
434                 comment-contains-value: 'merge_sysrepo'
435           projects:
436             - project-compare-type: 'ANT'
437               project-pattern: '{project}'
438               branches:
439                 - branch-compare-type: 'ANT'
440                   branch-pattern: '**/{branch}'
441
442     builders:
443       - config-file-provider:
444           files:
445             - file-id: '.packagecloud'
446               target: '/root'
447       - config-file-provider:
448           files:
449             - file-id: 'packagecloud_api'
450               target: '/root'
451       - maven-target:
452           maven-version: 'mvn33-new'
453           goals: '--version'
454           settings: 'hicn-settings'
455           settings-type: cfp
456           global-settings: 'global-settings'
457           global-settings-type: cfp
458       - shell:
459           !include-raw-escape:
460           - include-raw-hicn-checkstyle.sh
461       - shell:
462           !include-raw-escape:
463           - include-raw-hicn-sysrepo-build.sh
464       - provide-maven-settings:
465           settings-file: 'hicn-settings'
466           global-settings-file: 'global-settings'
467       - shell:
468           !include-raw-escape:
469           - ../scripts/packagecloud_push.sh
470       - shell:
471           !include-raw-escape:
472           - ../scripts/maven_push_functions.sh
473           - include-raw-hicn-maven-push.sh
474
475     publishers:
476       - fdio-infra-shiplogs:
477           maven-version: 'mvn33-new'
478       - naginator:
479           rerun-unstable-builds: false
480           max-failed-builds: 1
481           fixed-delay: 90
482
483 - project:
484     name: hicn-info
485     project-name: hicn
486     jobs:
487       - gerrit-info-yaml-verify
488     build-node: centos7-builder-4c-4g
489     project: hicn
490     branch: master