Modify HICN Sonar job node
[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-arm
28     jobs:
29       - 'hicn-arm-verify-{stream}-{os}'
30       - 'hicn-arm-merge-{stream}-{os}'
31
32     project: 'hicn'
33     os:
34       - ubuntu1804:
35           repo-os-part: 'ubuntu-arm.bionic.main'
36
37     stream:
38       - master:
39           branch: 'master'
40           repo-stream-part: 'master'
41
42     type:
43       - short
44       - long
45
46 - project:
47     name: hicn-misc
48     jobs:
49       - 'hicn-checkstyle-verify-{stream}'
50     project: 'hicn'
51     stream:
52       - master:
53           branch: 'master'
54           repo-stream-part: 'master'
55     os: ubuntu1804
56
57 - project:
58     name: hicn-extras
59     jobs:
60       - 'hicn-extras-verify-{stream}-{os}'
61       - 'hicn-extras-build-{stream}-{os}'
62     project: 'hicn'
63     os:
64       - ubuntu1804:
65           repo-os-part: 'ubuntu.bionic.main'
66       - ubuntu1604:
67           repo-os-part: 'ubuntu.xenial.main'
68       - centos7:
69           repo-os-part: 'centos7'
70
71     stream:
72       - master:
73           branch: 'master'
74           repo-stream-part: 'master'
75
76     type:
77       - short
78       - long
79
80 - project:
81     name: hicn-extras-arm
82     jobs:
83       - 'hicn-extras-arm-verify-{stream}-{os}'
84       - 'hicn-extras-arm-build-{stream}-{os}'
85
86     project: 'hicn'
87     os:
88       - ubuntu1804:
89           repo-os-part: 'ubuntu-arm.bionic.main'
90
91     stream:
92       - master:
93           branch: 'master'
94           repo-stream-part: 'master'
95
96     type:
97       - short
98       - long
99
100
101 - project:
102     name: hicn-view
103     views:
104       - project-view
105     project-name: hicn
106
107 - job-template:
108     name: 'hicn-checkstyle-verify-{stream}'
109
110     project-type: freestyle
111     node: '{os}-us'
112     concurrent: true
113     archive-artifacts: '**/tmp/hicn-failed-unittests/*/* **/core'
114
115     build-discarder:
116       daysToKeep: '{build-days-to-keep}'
117       numToKeep: '{build-num-to-keep}'
118       artifactDaysToKeep: '{build-artifact-days-to-keep}'
119       artifactNumToKeep: '{build-artifact-num-to-keep}'
120
121     parameters:
122       - project-parameter:
123           project: '{project}'
124       - gerrit-parameter:
125           branch: '{branch}'
126       - os-parameter:
127           os: '{os}'
128       - repo-name-parameter:
129           repo-name: '{repo-stream-part}.ubuntu.xenial.main'
130       - string:
131           name: ARCHIVE_ARTIFACTS
132           default: '{archive-artifacts}'
133           description: Artifacts to archive to the logs server.
134
135     scm:
136       - gerrit-trigger-scm:
137           credentials-id: 'jenkins-gerrit-credentials'
138           refspec: '$GERRIT_REFSPEC'
139           choosing-strategy: 'gerrit'
140
141     wrappers:
142       - fdio-infra-wrappers:
143           build-timeout: '{build-timeout}'
144
145     triggers:
146       - gerrit:
147           server-name: 'Primary'
148           trigger-on:
149             - patchset-created-event:
150                 exclude-drafts: 'true'
151                 exclude-trivial-rebase: 'false'
152                 exclude-no-code-change: 'true'
153             - draft-published-event
154             - comment-added-contains-event:
155                 comment-contains-value: 'checkstylecheck'
156             - comment-added-contains-event:
157                 comment-contains-value: 'docsonly'
158             - comment-added-contains-event:
159                 comment-contains-value: 'recheck'
160             - comment-added-contains-event:
161                 comment-contains-value: 'reverify'
162           projects:
163             - project-compare-type: 'ANT'
164               project-pattern: '{project}'
165               branches:
166                 - branch-compare-type: 'ANT'
167                   branch-pattern: '**/{branch}'
168               file-paths:
169                 - compare-type: REG_EXP
170                   pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
171               disable-strict-forbidden-file-verification: 'true'
172           override-votes: true
173           gerrit-build-notbuilt-verified-value: 0
174           gerrit-build-successful-verified-value: 1
175           # yamllint disable-line rule:line-length
176           notbuilt-message: 'Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes.'
177           # yamllint disable-line rule:line-length
178           failed-message: 'Checkstyle failed. No further verify jobs will be started.'
179           successful-message: 'checkstyle_success'
180           skip-vote:
181             successful: true
182             failed: false
183             unstable: false
184             notbuilt: false
185
186     builders:
187       - shell:
188           !include-raw-escape: include-raw-hicn-checkstyle.sh
189
190     publishers:
191       - fdio-infra-shiplogs:
192           maven-version: 'mvn36'
193       - naginator:
194           rerun-unstable-builds: true
195           max-failed-builds: 1
196           fixed-delay: 90
197
198 - job-template:
199     name: 'hicn-verify-{stream}-{os}'
200
201     project-type: freestyle
202     node: '{os}-us'
203     concurrent: true
204
205     build-discarder:
206       daysToKeep: '{build-days-to-keep}'
207       numToKeep: 100
208       artifactDaysToKeep: '{build-artifact-days-to-keep}'
209       artifactNumToKeep: '{build-artifact-num-to-keep}'
210
211     parameters:
212       - project-parameter:
213           project: '{project}'
214       - gerrit-parameter:
215           branch: '{branch}'
216       - os-parameter:
217           os: '{os}'
218       - repo-name-parameter:
219           repo-name: '{repo-stream-part}.{repo-os-part}'
220       - stream-parameter:
221           stream: '{stream}'
222       - string:
223           name: ARCHIVE_ARTIFACTS
224           default: '{archive-artifacts}'
225           description: Artifacts to archive to the logs server.
226
227     scm:
228       - gerrit-trigger-scm:
229           credentials-id: 'jenkins-gerrit-credentials'
230           refspec: '$GERRIT_REFSPEC'
231           choosing-strategy: 'gerrit'
232
233     wrappers:
234       - fdio-infra-wrappers:
235           build-timeout: 120
236
237     triggers:
238       - gerrit-trigger-checkstyle:
239           name: '{project}'
240           branch: '{branch}'
241
242     builders:
243       - shell:
244           !include-raw-escape:
245           - include-raw-hicn-build.sh
246
247     publishers:
248       - fdio-infra-shiplogs:
249           maven-version: 'mvn36'
250       - naginator:
251           rerun-unstable-builds: false
252           max-failed-builds: 2
253           fixed-delay: 90
254
255 - job-template:
256     name: 'hicn-arm-verify-{stream}-{os}'
257
258     project-type: freestyle
259     node: '{os}arm-us'
260     concurrent: true
261
262     build-discarder:
263       daysToKeep: '{build-days-to-keep}'
264       numToKeep: 100
265       artifactDaysToKeep: '{build-artifact-days-to-keep}'
266       artifactNumToKeep: '{build-artifact-num-to-keep}'
267
268     parameters:
269       - project-parameter:
270           project: '{project}'
271       - gerrit-parameter:
272           branch: '{branch}'
273       - os-parameter:
274           os: '{os}'
275       - repo-name-parameter:
276           repo-name: '{repo-stream-part}.{repo-os-part}'
277       - stream-parameter:
278           stream: '{stream}'
279       - string:
280           name: ARCHIVE_ARTIFACTS
281           default: '{archive-artifacts}'
282           description: Artifacts to archive to the logs server.
283
284     scm:
285       - gerrit-trigger-scm:
286           credentials-id: 'jenkins-gerrit-credentials'
287           refspec: '$GERRIT_REFSPEC'
288           choosing-strategy: 'gerrit'
289
290     wrappers:
291       - fdio-infra-wrappers:
292           build-timeout: 120
293
294     triggers:
295       - gerrit-trigger-checkstyle:
296           name: '{project}'
297           branch: '{branch}'
298
299     builders:
300       - shell:
301           !include-raw-escape:
302           - include-raw-hicn-build.sh
303
304     publishers:
305       - fdio-infra-shiplogs:
306           maven-version: 'mvn36'
307       - naginator:
308           rerun-unstable-builds: false
309           max-failed-builds: 1
310           fixed-delay: 90
311
312 - job-template:
313     name: 'hicn-merge-{stream}-{os}'
314
315     project-type: freestyle
316     node: '{os}-us'
317
318     build-discarder:
319       daysToKeep: '{build-days-to-keep}'
320       numToKeep: 100
321       artifactDaysToKeep: '{build-artifact-days-to-keep}'
322       artifactNumToKeep: '{build-artifact-num-to-keep}'
323
324     parameters:
325       - project-parameter:
326           project: '{project}'
327       - gerrit-parameter:
328           branch: '{branch}'
329       - os-parameter:
330           os: '{os}'
331       - maven-project-parameter:
332           maven: 'mvn33-new'
333       - maven-exec:
334           maven-version: 'mvn33-new'
335       - stream-parameter:
336           stream: 'release'
337       - repo-name-parameter:
338           repo-name: '{repo-stream-part}.{repo-os-part}'
339       - string:
340           name: ARCHIVE_ARTIFACTS
341           default: '{archive-artifacts}'
342           description: Artifacts to archive to the logs server.
343
344     scm:
345       - gerrit-trigger-scm:
346           credentials-id: 'jenkins-gerrit-credentials'
347           refspec: ''
348           choosing-strategy: 'default'
349
350     wrappers:
351       - fdio-infra-wrappers:
352           build-timeout: '{build-timeout}'
353
354     triggers:
355       - gerrit-trigger-patch-merged:
356           name: '{project}'
357           branch: '{branch}'
358
359     builders:
360       - config-file-provider:
361           files:
362             - file-id: '.packagecloud'
363               target: '/root/.packagecloud'
364       - config-file-provider:
365           files:
366             - file-id: 'packagecloud_api'
367               target: '/root/packagecloud_api'
368       - maven-target:
369           maven-version: 'mvn33-new'
370           goals: '--version'
371           settings: 'hicn-settings'
372           settings-type: cfp
373           global-settings: 'global-settings'
374           global-settings-type: cfp
375       - shell:
376           !include-raw-escape:
377           - include-raw-hicn-checkstyle.sh
378       - shell:
379           !include-raw-escape:
380           - include-raw-hicn-build.sh
381       - provide-maven-settings:
382           settings-file: 'hicn-settings'
383           global-settings-file: 'global-settings'
384       - shell:
385           !include-raw-escape:
386           - ../scripts/packagecloud_push.sh
387       - shell:
388           !include-raw-escape:
389           - ../scripts/maven_push_functions.sh
390           - include-raw-hicn-maven-push.sh
391
392     publishers:
393       - fdio-infra-shiplogs:
394           maven-version: 'mvn36'
395       - naginator:
396           rerun-unstable-builds: false
397           max-failed-builds: 1
398           fixed-delay: 90
399
400 - job-template:
401     name: 'hicn-arm-merge-{stream}-{os}'
402
403     project-type: freestyle
404     node: '{os}arm-us'
405
406     build-discarder:
407       daysToKeep: '{build-days-to-keep}'
408       numToKeep: 100
409       artifactDaysToKeep: '{build-artifact-days-to-keep}'
410       artifactNumToKeep: '{build-artifact-num-to-keep}'
411
412     parameters:
413       - project-parameter:
414           project: '{project}'
415       - gerrit-parameter:
416           branch: '{branch}'
417       - os-parameter:
418           os: '{os}'
419       - maven-project-parameter:
420           maven: 'mvn33-new'
421       - maven-exec:
422           maven-version: 'mvn33-new'
423       - stream-parameter:
424           stream: 'release'
425       - repo-name-parameter:
426           repo-name: '{repo-stream-part}.{repo-os-part}'
427       - string:
428           name: ARCHIVE_ARTIFACTS
429           default: '{archive-artifacts}'
430           description: Artifacts to archive to the logs server.
431
432     scm:
433       - gerrit-trigger-scm:
434           credentials-id: 'jenkins-gerrit-credentials'
435           refspec: ''
436           choosing-strategy: 'default'
437
438     wrappers:
439       - fdio-infra-wrappers:
440           build-timeout: '{build-timeout}'
441
442     triggers:
443       - gerrit-trigger-patch-merged:
444           name: '{project}'
445           branch: '{branch}'
446
447     builders:
448       - config-file-provider:
449           files:
450             - file-id: '.packagecloud'
451               target: '/root'
452       - config-file-provider:
453           files:
454             - file-id: 'packagecloud_api'
455               target: '/root'
456       - maven-target:
457           maven-version: 'mvn33-new'
458           goals: '--version'
459           settings: 'hicn-settings'
460           settings-type: cfp
461           global-settings: 'global-settings'
462           global-settings-type: cfp
463       - shell:
464           !include-raw-escape:
465           - include-raw-hicn-checkstyle.sh
466       - shell:
467           !include-raw-escape:
468           - include-raw-hicn-build.sh
469       - provide-maven-settings:
470           settings-file: 'hicn-settings'
471           global-settings-file: 'global-settings'
472       - shell:
473           !include-raw-escape:
474           - ../scripts/packagecloud_push.sh
475       - shell:
476           !include-raw-escape:
477           - ../scripts/maven_push_functions.sh
478           - include-raw-hicn-maven-push.sh
479
480     publishers:
481       - fdio-infra-shiplogs:
482           maven-version: 'mvn36'
483       - naginator:
484           rerun-unstable-builds: false
485           max-failed-builds: 1
486           fixed-delay: 90
487
488 - project:
489     name: hicn-sonar
490     project: hicn
491     project-name: hicn
492     mvn-settings: hicn-settings
493     mvn-version: 'mvn33-new'
494     branch: master
495     build-node: ubuntu1604-builder-4c-4g
496     jobs:
497       - gerrit-maven-sonar
498
499 - job-template:
500     name: 'hicn-extras-verify-{stream}-{os}'
501
502     project-type: freestyle
503     node: '{os}-us'
504     concurrent: true
505
506     build-discarder:
507       daysToKeep: '{build-days-to-keep}'
508       numToKeep: 100
509       artifactDaysToKeep: '{build-artifact-days-to-keep}'
510       artifactNumToKeep: '{build-artifact-num-to-keep}'
511
512     parameters:
513       - project-parameter:
514           project: '{project}'
515       - gerrit-parameter:
516           branch: '{branch}'
517       - os-parameter:
518           os: '{os}'
519       - repo-name-parameter:
520           repo-name: '{repo-stream-part}.{repo-os-part}'
521       - stream-parameter:
522           stream: '{stream}'
523       - string:
524           name: ARCHIVE_ARTIFACTS
525           default: '{archive-artifacts}'
526           description: Artifacts to archive to the logs server.
527
528     scm:
529       - gerrit-trigger-scm:
530           credentials-id: 'jenkins-gerrit-credentials'
531           refspec: '$GERRIT_REFSPEC'
532           choosing-strategy: 'gerrit'
533
534     wrappers:
535       - fdio-infra-wrappers:
536           build-timeout: 120
537
538     triggers:
539       - gerrit:
540           server-name: 'Primary'
541           trigger-on:
542             - comment-added-contains-event:
543                 comment-contains-value: 'verify-extras'
544           projects:
545             - project-compare-type: 'ANT'
546               project-pattern: '{project}'
547               branches:
548                 - branch-compare-type: 'ANT'
549                   branch-pattern: '**/{branch}'
550
551     builders:
552       - shell:
553           !include-raw-escape:
554           - include-raw-hicn-extras-build.sh
555
556     publishers:
557       - fdio-infra-shiplogs:
558           maven-version: 'mvn36'
559       - naginator:
560           rerun-unstable-builds: false
561           max-failed-builds: 2
562           fixed-delay: 90
563
564 - job-template:
565     name: 'hicn-extras-build-{stream}-{os}'
566
567     project-type: freestyle
568     node: '{os}-us'
569
570     build-discarder:
571       daysToKeep: '{build-days-to-keep}'
572       numToKeep: 100
573       artifactDaysToKeep: '{build-artifact-days-to-keep}'
574       artifactNumToKeep: '{build-artifact-num-to-keep}'
575
576     parameters:
577       - project-parameter:
578           project: '{project}'
579       - gerrit-parameter:
580           branch: '{branch}'
581       - os-parameter:
582           os: '{os}'
583       - maven-project-parameter:
584           maven: 'mvn33-new'
585       - maven-exec:
586           maven-version: 'mvn33-new'
587       - stream-parameter:
588           stream: 'release'
589       - repo-name-parameter:
590           repo-name: '{repo-stream-part}.{repo-os-part}'
591       - string:
592           name: ARCHIVE_ARTIFACTS
593           default: '{archive-artifacts}'
594           description: Artifacts to archive to the logs server.
595
596     scm:
597       - gerrit-trigger-scm:
598           credentials-id: 'jenkins-gerrit-credentials'
599           refspec: ''
600           choosing-strategy: 'default'
601
602     wrappers:
603       - fdio-infra-wrappers:
604           build-timeout: '{build-timeout}'
605
606     triggers:
607       - gerrit:
608           server-name: 'Primary'
609           trigger-on:
610             - comment-added-contains-event:
611                 comment-contains-value: 'build-extras'
612           projects:
613             - project-compare-type: 'ANT'
614               project-pattern: '{project}'
615               branches:
616                 - branch-compare-type: 'ANT'
617                   branch-pattern: '**/{branch}'
618
619     builders:
620       - config-file-provider:
621           files:
622             - file-id: '.packagecloud'
623               target: '/root/.packagecloud'
624       - config-file-provider:
625           files:
626             - file-id: 'packagecloud_api'
627               target: '/root/packagecloud_api'
628       - maven-target:
629           maven-version: 'mvn33-new'
630           goals: '--version'
631           settings: 'hicn-settings'
632           settings-type: cfp
633           global-settings: 'global-settings'
634           global-settings-type: cfp
635       - shell:
636           !include-raw-escape:
637           - include-raw-hicn-extras-build.sh
638       - provide-maven-settings:
639           settings-file: 'hicn-settings'
640           global-settings-file: 'global-settings'
641       - shell:
642           !include-raw-escape:
643           - ../scripts/packagecloud_push.sh
644       - shell:
645           !include-raw-escape:
646           - ../scripts/maven_push_functions.sh
647           - include-raw-hicn-maven-push.sh
648
649     publishers:
650       - fdio-infra-shiplogs:
651           maven-version: 'mvn36'
652       - naginator:
653           rerun-unstable-builds: false
654           max-failed-builds: 1
655           fixed-delay: 90
656
657 - job-template:
658     name: 'hicn-extras-arm-verify-{stream}-{os}'
659
660     project-type: freestyle
661     node: '{os}arm-us'
662
663     build-discarder:
664       daysToKeep: '{build-days-to-keep}'
665       numToKeep: 100
666       artifactDaysToKeep: '{build-artifact-days-to-keep}'
667       artifactNumToKeep: '{build-artifact-num-to-keep}'
668
669     parameters:
670       - project-parameter:
671           project: '{project}'
672       - gerrit-parameter:
673           branch: '{branch}'
674       - os-parameter:
675           os: '{os}'
676       - repo-name-parameter:
677           repo-name: '{repo-stream-part}.{repo-os-part}'
678       - stream-parameter:
679           stream: '{stream}'
680       - string:
681           name: ARCHIVE_ARTIFACTS
682           default: '{archive-artifacts}'
683           description: Artifacts to archive to the logs server.
684
685     scm:
686       - gerrit-trigger-scm:
687           credentials-id: 'jenkins-gerrit-credentials'
688           refspec: ''
689           choosing-strategy: 'default'
690
691     wrappers:
692       - fdio-infra-wrappers:
693           build-timeout: '{build-timeout}'
694
695     triggers:
696       - gerrit:
697           server-name: 'Primary'
698           trigger-on:
699             - comment-added-contains-event:
700                 comment-contains-value: 'verify-extras'
701           projects:
702             - project-compare-type: 'ANT'
703               project-pattern: '{project}'
704               branches:
705                 - branch-compare-type: 'ANT'
706                   branch-pattern: '**/{branch}'
707
708           builders:
709             - shell:
710                 !include-raw-escape:
711                 - include-raw-hicn-extras-build.sh
712
713     publishers:
714       - fdio-infra-shiplogs:
715           maven-version: 'mvn36'
716       - naginator:
717           rerun-unstable-builds: false
718           max-failed-builds: 1
719           fixed-delay: 90
720
721 - job-template:
722     name: 'hicn-extras-arm-build-{stream}-{os}'
723
724     project-type: freestyle
725     node: '{os}arm-us'
726
727     build-discarder:
728       daysToKeep: '{build-days-to-keep}'
729       numToKeep: 100
730       artifactDaysToKeep: '{build-artifact-days-to-keep}'
731       artifactNumToKeep: '{build-artifact-num-to-keep}'
732
733     parameters:
734       - project-parameter:
735           project: '{project}'
736       - gerrit-parameter:
737           branch: '{branch}'
738       - os-parameter:
739           os: '{os}'
740       - maven-project-parameter:
741           maven: 'mvn33-new'
742       - maven-exec:
743           maven-version: 'mvn33-new'
744       - stream-parameter:
745           stream: 'release'
746       - repo-name-parameter:
747           repo-name: '{repo-stream-part}.{repo-os-part}'
748       - string:
749           name: ARCHIVE_ARTIFACTS
750           default: '{archive-artifacts}'
751           description: Artifacts to archive to the logs server.
752
753     scm:
754       - gerrit-trigger-scm:
755           credentials-id: 'jenkins-gerrit-credentials'
756           refspec: ''
757           choosing-strategy: 'default'
758
759     wrappers:
760       - fdio-infra-wrappers:
761           build-timeout: '{build-timeout}'
762
763     triggers:
764       - gerrit:
765           server-name: 'Primary'
766           trigger-on:
767             - comment-added-contains-event:
768                 comment-contains-value: 'build-extras'
769           projects:
770             - project-compare-type: 'ANT'
771               project-pattern: '{project}'
772               branches:
773                 - branch-compare-type: 'ANT'
774                   branch-pattern: '**/{branch}'
775
776     builders:
777       - config-file-provider:
778           files:
779             - file-id: '.packagecloud'
780               target: '/root/.packagecloud'
781       - config-file-provider:
782           files:
783             - file-id: 'packagecloud_api'
784               target: '/root/packagecloud_api'
785       - maven-target:
786           maven-version: 'mvn33-new'
787           goals: '--version'
788           settings: 'hicn-settings'
789           settings-type: cfp
790           global-settings: 'global-settings'
791           global-settings-type: cfp
792       - shell:
793           !include-raw-escape:
794           - include-raw-hicn-extras-build.sh
795       - provide-maven-settings:
796           settings-file: 'hicn-settings'
797           global-settings-file: 'global-settings'
798       - shell:
799           !include-raw-escape:
800           - ../scripts/packagecloud_push.sh
801       - shell:
802           !include-raw-escape:
803           - ../scripts/maven_push_functions.sh
804           - include-raw-hicn-maven-push.sh
805
806     publishers:
807       - fdio-infra-shiplogs:
808           maven-version: 'mvn36'
809       - naginator:
810           rerun-unstable-builds: false
811           max-failed-builds: 1
812           fixed-delay: 90
813
814 - project:
815     name: hicn-info
816     project-name: hicn
817     jobs:
818       - gerrit-info-yaml-verify
819     build-node: centos7-builder-4c-4g
820     project: hicn
821     branch: master