Modify VPP artifacts
[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: ubuntu1604
56
57 - project:
58     name: hicn-sysrepo
59     jobs:
60       - 'hicn-sysrepo-plugin-verify-{stream}'
61       - 'hicn-sysrepo-plugin-merge-{stream}'
62     project: 'hicn'
63     stream:
64       - master:
65           branch: 'master'
66           repo-stream-part: 'master'
67     os: ubuntu1804
68
69 - project:
70     name: hicn-view
71     views:
72       - project-view
73     project-name: hicn
74
75 - job-template:
76     name: 'hicn-checkstyle-verify-{stream}'
77
78     project-type: freestyle
79     node: '{os}-us'
80     concurrent: true
81     archive-artifacts: '**/tmp/hicn-failed-unittests/*/* **/core'
82
83     build-discarder:
84       daysToKeep: '{build-days-to-keep}'
85       numToKeep: '{build-num-to-keep}'
86       artifactDaysToKeep: '{build-artifact-days-to-keep}'
87       artifactNumToKeep: '{build-artifact-num-to-keep}'
88
89     parameters:
90       - project-parameter:
91           project: '{project}'
92       - gerrit-parameter:
93           branch: '{branch}'
94       - os-parameter:
95           os: '{os}'
96       - repo-name-parameter:
97           repo-name: '{repo-stream-part}.ubuntu.xenial.main'
98       - string:
99           name: ARCHIVE_ARTIFACTS
100           default: '{archive-artifacts}'
101           description: Artifacts to archive to the logs server.
102
103     scm:
104       - gerrit-trigger-scm:
105           credentials-id: 'jenkins-gerrit-credentials'
106           refspec: '$GERRIT_REFSPEC'
107           choosing-strategy: 'gerrit'
108
109     wrappers:
110       - fdio-infra-wrappers:
111           build-timeout: '{build-timeout}'
112
113     triggers:
114       - gerrit:
115           server-name: 'Primary'
116           trigger-on:
117             - patchset-created-event:
118                 exclude-drafts: 'true'
119                 exclude-trivial-rebase: 'false'
120                 exclude-no-code-change: 'true'
121             - draft-published-event
122             - comment-added-contains-event:
123                 comment-contains-value: 'checkstylecheck'
124             - comment-added-contains-event:
125                 comment-contains-value: 'docsonly'
126             - comment-added-contains-event:
127                 comment-contains-value: 'recheck'
128             - comment-added-contains-event:
129                 comment-contains-value: 'reverify'
130           projects:
131             - project-compare-type: 'ANT'
132               project-pattern: '{project}'
133               branches:
134                 - branch-compare-type: 'ANT'
135                   branch-pattern: '**/{branch}'
136               file-paths:
137                 - compare-type: REG_EXP
138                   pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
139               disable-strict-forbidden-file-verification: 'true'
140           override-votes: true
141           gerrit-build-notbuilt-verified-value: 0
142           gerrit-build-successful-verified-value: 1
143           # yamllint disable-line rule:line-length
144           notbuilt-message: 'Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes.'
145           # yamllint disable-line rule:line-length
146           failed-message: 'Checkstyle failed. No further verify jobs will be started.'
147           successful-message: 'checkstyle_success'
148           skip-vote:
149             successful: true
150             failed: false
151             unstable: false
152             notbuilt: false
153
154     builders:
155       - shell:
156           !include-raw-escape: include-raw-hicn-checkstyle.sh
157
158     publishers:
159       - fdio-infra-shiplogs:
160           maven-version: 'mvn33-new'
161       - naginator:
162           rerun-unstable-builds: true
163           max-failed-builds: 1
164           fixed-delay: 90
165
166 - job-template:
167     name: 'hicn-verify-{stream}-{os}'
168
169     project-type: freestyle
170     node: '{os}-us'
171     concurrent: true
172     archive-artifacts: >
173       **/build/*.rpm,
174       **/build/*.deb
175     allow-empty: 'true'
176     fingerprint: false
177     only-if-success: true
178     default-excludes: false
179
180     build-discarder:
181       daysToKeep: '{build-days-to-keep}'
182       numToKeep: 100
183       artifactDaysToKeep: '{build-artifact-days-to-keep}'
184       artifactNumToKeep: '{build-artifact-num-to-keep}'
185
186     parameters:
187       - project-parameter:
188           project: '{project}'
189       - gerrit-parameter:
190           branch: '{branch}'
191       - os-parameter:
192           os: '{os}'
193       - repo-name-parameter:
194           repo-name: '{repo-stream-part}.{repo-os-part}'
195       - stream-parameter:
196           stream: '{stream}'
197       - string:
198           name: ARCHIVE_ARTIFACTS
199           default: '{archive-artifacts}'
200           description: Artifacts to archive to the logs server.
201
202     scm:
203       - gerrit-trigger-scm:
204           credentials-id: 'jenkins-gerrit-credentials'
205           refspec: '$GERRIT_REFSPEC'
206           choosing-strategy: 'gerrit'
207
208     wrappers:
209       - fdio-infra-wrappers:
210           build-timeout: 120
211
212     triggers:
213       - gerrit-trigger-checkstyle:
214           name: '{project}'
215           branch: '{branch}'
216
217     builders:
218       - shell:
219           !include-raw-escape:
220           - include-raw-hicn-build.sh
221
222     publishers:
223       - fdio-infra-shiplogs:
224           maven-version: 'mvn33-new'
225
226 - job-template:
227     name: 'hicn-arm-verify-{stream}-{os}'
228
229     project-type: freestyle
230     node: '{os}arm-us'
231     concurrent: true
232     archive-artifacts: >
233       **/build/*.deb
234     allow-empty: 'true'
235     fingerprint: false
236     only-if-success: true
237     default-excludes: false
238
239     build-discarder:
240       daysToKeep: '{build-days-to-keep}'
241       numToKeep: 100
242       artifactDaysToKeep: '{build-artifact-days-to-keep}'
243       artifactNumToKeep: '{build-artifact-num-to-keep}'
244
245     parameters:
246       - project-parameter:
247           project: '{project}'
248       - gerrit-parameter:
249           branch: '{branch}'
250       - os-parameter:
251           os: '{os}'
252       - repo-name-parameter:
253           repo-name: '{repo-stream-part}.{repo-os-part}'
254       - stream-parameter:
255           stream: '{stream}'
256       - string:
257           name: ARCHIVE_ARTIFACTS
258           default: '{archive-artifacts}'
259           description: Artifacts to archive to the logs server.
260
261     scm:
262       - gerrit-trigger-scm:
263           credentials-id: 'jenkins-gerrit-credentials'
264           refspec: '$GERRIT_REFSPEC'
265           choosing-strategy: 'gerrit'
266
267     wrappers:
268       - fdio-infra-wrappers:
269           build-timeout: 120
270
271     triggers:
272       - gerrit-trigger-checkstyle:
273           name: '{project}'
274           branch: '{branch}'
275
276     builders:
277       - shell:
278           !include-raw-escape:
279           - include-raw-hicn-build.sh
280
281     publishers:
282       - fdio-infra-shiplogs:
283           maven-version: 'mvn33-new'
284
285 - job-template:
286     name: 'hicn-merge-{stream}-{os}'
287
288     project-type: freestyle
289     node: '{os}-us'
290     archive-artifacts: >
291       **/build/*.rpm,
292       **/build/*.deb
293     allow-empty: 'true'
294     fingerprint: false
295     only-if-success: true
296     default-excludes: false
297
298     build-discarder:
299       daysToKeep: '{build-days-to-keep}'
300       numToKeep: 100
301       artifactDaysToKeep: '{build-artifact-days-to-keep}'
302       artifactNumToKeep: '{build-artifact-num-to-keep}'
303
304     parameters:
305       - project-parameter:
306           project: '{project}'
307       - gerrit-parameter:
308           branch: '{branch}'
309       - os-parameter:
310           os: '{os}'
311       - maven-project-parameter:
312           maven: 'mvn33-new'
313       - maven-exec:
314           maven-version: 'mvn33-new'
315       - stream-parameter:
316           stream: 'release'
317       - repo-name-parameter:
318           repo-name: '{repo-stream-part}.{repo-os-part}'
319       - string:
320           name: ARCHIVE_ARTIFACTS
321           default: '{archive-artifacts}'
322           description: Artifacts to archive to the logs server.
323
324     scm:
325       - gerrit-trigger-scm:
326           credentials-id: 'jenkins-gerrit-credentials'
327           refspec: ''
328           choosing-strategy: 'default'
329
330     wrappers:
331       - fdio-infra-wrappers:
332           build-timeout: '{build-timeout}'
333
334     triggers:
335       - gerrit-trigger-patch-merged:
336           name: '{project}'
337           branch: '{branch}'
338
339     builders:
340       - config-file-provider:
341           files:
342             - file-id: '.packagecloud'
343               target: '/root'
344       - config-file-provider:
345           files:
346             - file-id: 'packagecloud_api'
347               target: '/root'
348       - maven-target:
349           maven-version: 'mvn33-new'
350           goals: '--version'
351           settings: 'hicn-settings'
352           settings-type: cfp
353           global-settings: 'global-settings'
354           global-settings-type: cfp
355       - shell:
356           !include-raw-escape:
357           - include-raw-hicn-checkstyle.sh
358       - shell:
359           !include-raw-escape:
360           - include-raw-hicn-build.sh
361       - provide-maven-settings:
362           settings-file: 'hicn-settings'
363           global-settings-file: 'global-settings'
364       - shell:
365           !include-raw-escape:
366           - ../scripts/packagecloud_push.sh
367       - shell:
368           !include-raw-escape:
369           - ../scripts/maven_push_functions.sh
370           - include-raw-hicn-maven-push.sh
371
372     publishers:
373       - fdio-infra-shiplogs:
374           maven-version: 'mvn33-new'
375       - naginator:
376           rerun-unstable-builds: false
377           max-failed-builds: 1
378           fixed-delay: 90
379
380 - job-template:
381     name: 'hicn-arm-merge-{stream}-{os}'
382
383     project-type: freestyle
384     node: '{os}arm-us'
385     archive-artifacts: >
386       **/build/*.deb
387     allow-empty: 'true'
388     fingerprint: false
389     only-if-success: true
390     default-excludes: false
391
392     build-discarder:
393       daysToKeep: '{build-days-to-keep}'
394       numToKeep: 100
395       artifactDaysToKeep: '{build-artifact-days-to-keep}'
396       artifactNumToKeep: '{build-artifact-num-to-keep}'
397
398     parameters:
399       - project-parameter:
400           project: '{project}'
401       - gerrit-parameter:
402           branch: '{branch}'
403       - os-parameter:
404           os: '{os}'
405       - maven-project-parameter:
406           maven: 'mvn33-new'
407       - maven-exec:
408           maven-version: 'mvn33-new'
409       - stream-parameter:
410           stream: 'release'
411       - repo-name-parameter:
412           repo-name: '{repo-stream-part}.{repo-os-part}'
413       - string:
414           name: ARCHIVE_ARTIFACTS
415           default: '{archive-artifacts}'
416           description: Artifacts to archive to the logs server.
417
418     scm:
419       - gerrit-trigger-scm:
420           credentials-id: 'jenkins-gerrit-credentials'
421           refspec: ''
422           choosing-strategy: 'default'
423
424     wrappers:
425       - fdio-infra-wrappers:
426           build-timeout: '{build-timeout}'
427
428     triggers:
429       - gerrit-trigger-patch-merged:
430           name: '{project}'
431           branch: '{branch}'
432
433     builders:
434       - config-file-provider:
435           files:
436             - file-id: '.packagecloud'
437               target: '/root'
438       - config-file-provider:
439           files:
440             - file-id: 'packagecloud_api'
441               target: '/root'
442       - maven-target:
443           maven-version: 'mvn33-new'
444           goals: '--version'
445           settings: 'hicn-settings'
446           settings-type: cfp
447           global-settings: 'global-settings'
448           global-settings-type: cfp
449       - shell:
450           !include-raw-escape:
451           - include-raw-hicn-checkstyle.sh
452       - shell:
453           !include-raw-escape:
454           - include-raw-hicn-build.sh
455       - provide-maven-settings:
456           settings-file: 'hicn-settings'
457           global-settings-file: 'global-settings'
458       - shell:
459           !include-raw-escape:
460           - ../scripts/packagecloud_push.sh
461       - shell:
462           !include-raw-escape:
463           - ../scripts/maven_push_functions.sh
464           - include-raw-hicn-maven-push.sh
465
466     publishers:
467       - fdio-infra-shiplogs:
468           maven-version: 'mvn33-new'
469       - naginator:
470           rerun-unstable-builds: false
471           max-failed-builds: 1
472           fixed-delay: 90
473
474 - project:
475     name: hicn-sonar
476     project: hicn
477     project-name: hicn
478     mvn-settings: hicn-settings
479     mvn-version: 'mvn33-new'
480     branch: master
481     build-node: ubuntu1604-basebuild-4c-4g
482     jobs:
483       - gerrit-maven-sonar
484
485 - job-template:
486     name: 'hicn-sysrepo-plugin-verify-{stream}'
487
488     project-type: freestyle
489     node: '{os}-us'
490     concurrent: true
491     archive-artifacts: >
492       **/build/*.rpm,
493       **/build/*.deb
494     allow-empty: 'true'
495     fingerprint: false
496     only-if-success: true
497     default-excludes: false
498
499     build-discarder:
500       daysToKeep: '{build-days-to-keep}'
501       numToKeep: 100
502       artifactDaysToKeep: '{build-artifact-days-to-keep}'
503       artifactNumToKeep: '{build-artifact-num-to-keep}'
504
505     parameters:
506       - project-parameter:
507           project: '{project}'
508       - gerrit-parameter:
509           branch: '{branch}'
510       - os-parameter:
511           os: '{os}'
512       - repo-name-parameter:
513           repo-name: '{repo-stream-part}.ubuntu.bionic.main'
514       - stream-parameter:
515           stream: '{stream}'
516       - string:
517           name: ARCHIVE_ARTIFACTS
518           default: '{archive-artifacts}'
519           description: Artifacts to archive to the logs server.
520
521     scm:
522       - gerrit-trigger-scm:
523           credentials-id: 'jenkins-gerrit-credentials'
524           refspec: '$GERRIT_REFSPEC'
525           choosing-strategy: 'gerrit'
526
527     wrappers:
528       - fdio-infra-wrappers:
529           build-timeout: 120
530
531     triggers:
532       - gerrit:
533           server-name: 'Primary'
534           trigger-on:
535             - comment-added-contains-event:
536                 comment-contains-value: 'verify_sysrepo'
537           projects:
538             - project-compare-type: 'ANT'
539               project-pattern: '{project}'
540               branches:
541                 - branch-compare-type: 'ANT'
542                   branch-pattern: '**/{branch}'
543
544     builders:
545       - shell:
546           !include-raw-escape:
547           - include-raw-hicn-sysrepo-build.sh
548
549     publishers:
550       - fdio-infra-shiplogs:
551           maven-version: 'mvn33-new'
552
553 - job-template:
554     name: 'hicn-sysrepo-plugin-merge-{stream}'
555
556     project-type: freestyle
557     node: '{os}-us'
558     archive-artifacts: >
559       **/build/*.rpm,
560       **/build/*.deb
561     allow-empty: 'true'
562     fingerprint: false
563     only-if-success: true
564     default-excludes: false
565
566     build-discarder:
567       daysToKeep: '{build-days-to-keep}'
568       numToKeep: 100
569       artifactDaysToKeep: '{build-artifact-days-to-keep}'
570       artifactNumToKeep: '{build-artifact-num-to-keep}'
571
572     parameters:
573       - project-parameter:
574           project: '{project}'
575       - gerrit-parameter:
576           branch: '{branch}'
577       - os-parameter:
578           os: '{os}'
579       - maven-project-parameter:
580           maven: 'mvn33-new'
581       - maven-exec:
582           maven-version: 'mvn33-new'
583       - stream-parameter:
584           stream: 'release'
585       - repo-name-parameter:
586           repo-name: '{repo-stream-part}.ubuntu.bionic.main'
587       - string:
588           name: ARCHIVE_ARTIFACTS
589           default: '{archive-artifacts}'
590           description: Artifacts to archive to the logs server.
591
592     scm:
593       - gerrit-trigger-scm:
594           credentials-id: 'jenkins-gerrit-credentials'
595           refspec: ''
596           choosing-strategy: 'default'
597
598     wrappers:
599       - fdio-infra-wrappers:
600           build-timeout: '{build-timeout}'
601
602     triggers:
603       - gerrit:
604           server-name: 'Primary'
605           trigger-on:
606             - comment-added-contains-event:
607                 comment-contains-value: 'merge_sysrepo'
608           projects:
609             - project-compare-type: 'ANT'
610               project-pattern: '{project}'
611               branches:
612                 - branch-compare-type: 'ANT'
613                   branch-pattern: '**/{branch}'
614
615     builders:
616       - config-file-provider:
617           files:
618             - file-id: '.packagecloud'
619               target: '/root'
620       - config-file-provider:
621           files:
622             - file-id: 'packagecloud_api'
623               target: '/root'
624       - maven-target:
625           maven-version: 'mvn33-new'
626           goals: '--version'
627           settings: 'hicn-settings'
628           settings-type: cfp
629           global-settings: 'global-settings'
630           global-settings-type: cfp
631       - shell:
632           !include-raw-escape:
633           - include-raw-hicn-checkstyle.sh
634       - shell:
635           !include-raw-escape:
636           - include-raw-hicn-sysrepo-build.sh
637       - provide-maven-settings:
638           settings-file: 'hicn-settings'
639           global-settings-file: 'global-settings'
640       - shell:
641           !include-raw-escape:
642           - ../scripts/packagecloud_push.sh
643       - shell:
644           !include-raw-escape:
645           - ../scripts/maven_push_functions.sh
646           - include-raw-hicn-maven-push.sh
647
648     publishers:
649       - fdio-infra-shiplogs:
650           maven-version: 'mvn33-new'
651       - naginator:
652           rerun-unstable-builds: false
653           max-failed-builds: 1
654           fixed-delay: 90
655
656 - project:
657     name: hicn-info
658     project-name: hicn
659     jobs:
660       - gerrit-info-yaml-verify
661     build-node: centos7-builder-4c-4g
662     project: hicn
663     branch: master