Fix path of managed files .packagecloud and packagecloud_api
[ci-management.git] / jjb / cicn / cicn.yaml
1 ---
2
3 - project:
4     name: cicn-libparc
5     jobs:
6       - 'cicn-libparc-verify-{stream}-{os}'
7       - 'cicn-libparc-merge-{stream}-{os}'
8       - 'cicn-libparc-docs-verify-{stream}'
9       - 'cicn-libparc-docs-merge-{stream}'
10
11     project: 'cicn'
12     os:
13       - ubuntu1804:
14           repo-os-part: 'ubuntu.bionic.main'
15       - ubuntu1604:
16           repo-os-part: 'ubuntu.xenial.main'
17       - centos7:
18           repo-os-part: 'centos7'
19
20     stream:
21       - master:
22           branch: 'cframework/master'
23           repo-stream-part: 'master'
24
25     type:
26       - short
27       - long
28
29 - project:
30     name: cicn-libparc-arm64
31     jobs:
32       - 'cicn-arm64-libparc-verify-{stream}-{os}'
33       - 'cicn-arm64-libparc-merge-{stream}-{os}'
34
35     project: 'cicn'
36     stream:
37       - master:
38           branch: 'cframework/master'
39           repo-stream-part: 'master'
40     os:
41       - ubuntu1804:
42           repo-os-part: 'ubuntu-arm.bionic.main'
43
44     type:
45       - short
46       - long
47
48 - project:
49     name: cicn-viper
50     jobs:
51       - 'cicn-viper-verify-{stream}-{os}'
52       - 'cicn-viper-merge-{stream}-{os}'
53
54     project: 'cicn'
55     os:
56       - ubuntu1804:
57           repo-os-part: 'ubuntu.bionic.main'
58
59     stream:
60       - master:
61           branch: 'viper/master'
62           repo-stream-part: 'master'
63
64     type:
65       - short
66       - long
67
68 - job-template:
69     name: 'cicn-libparc-merge-{stream}-{os}'
70
71     project-type: freestyle
72     node: '{os}-m'
73
74     build-discarder:
75       daysToKeep: '{build-days-to-keep}'
76       numToKeep: '{build-num-to-keep}'
77       artifactDaysToKeep: '{build-artifact-days-to-keep}'
78       artifactNumToKeep: '{build-artifact-num-to-keep}'
79
80     parameters:
81       - project-parameter:
82           project: '{project}'
83       - gerrit-parameter:
84           branch: '{branch}'
85       - os-parameter:
86           os: '{os}'
87       - maven-project-parameter:
88           maven: 'mvn33-new'
89       - maven-exec:
90           maven-version: 'mvn33-new'
91       - repo-name-parameter:
92           repo-name: '{repo-stream-part}.{repo-os-part}'
93       - stream-parameter:
94           stream: 'release'
95       - string:
96           name: ARCHIVE_ARTIFACTS
97           default: '{archive-artifacts}'
98           description: Artifacts to archive to the logs server.
99
100     scm:
101       - gerrit-trigger-scm:
102           credentials-id: 'jenkins-gerrit-credentials'
103           refspec: ''
104           choosing-strategy: 'default'
105
106     wrappers:
107       - fdio-infra-wrappers:
108           build-timeout: '{build-timeout}'
109
110     triggers:
111       - reverse:
112           jobs: 'cicn-longbow-merge-{stream}-ubuntu1604'
113           result: 'success'
114       - gerrit-trigger-patch-merged:
115           name: '{project}'
116           branch: '{branch}'
117       - reverse:
118           jobs: 'cicn-longbow-merge-{stream}-{os}'
119           result: 'failure'
120
121     builders:
122       - config-file-provider:
123           files:
124             - file-id: '.packagecloud'
125               target: '/root/.packagecloud'
126       - config-file-provider:
127           files:
128             - file-id: 'packagecloud_api'
129               target: '/root/packagecloud_api'
130       - maven-target:
131           maven-version: 'mvn33-new'
132           goals: '--version'
133           settings: 'cicn-settings'
134           settings-type: cfp
135           global-settings: 'global-settings'
136           global-settings-type: cfp
137       - shell:
138           !include-raw-escape:
139           - include-raw-cicn-libparc-build.sh
140       - provide-maven-settings:
141           settings-file: 'cicn-settings'
142           global-settings-file: 'global-settings'
143       - shell:
144           !include-raw-escape:
145           - ../scripts/maven_push_functions.sh
146           - include-raw-cicn-maven-push.sh
147       - shell:
148           !include-raw-escape:
149           - ../scripts/packagecloud_push.sh
150
151     publishers:
152       - fdio-infra-shiplogs:
153           maven-version: 'mvn33-new'
154
155 - job-template:
156     name: 'cicn-libparc-verify-{stream}-{os}'
157
158     project-type: freestyle
159     node: '{os}-m'
160     concurrent: true
161
162     build-discarder:
163       daysToKeep: '{build-days-to-keep}'
164       numToKeep: '{build-num-to-keep}'
165       artifactDaysToKeep: '{build-artifact-days-to-keep}'
166       artifactNumToKeep: '{build-artifact-num-to-keep}'
167
168     parameters:
169       - project-parameter:
170           project: '{project}'
171       - gerrit-parameter:
172           branch: '{branch}'
173       - os-parameter:
174           os: '{os}'
175       - string:
176           name: ARCHIVE_ARTIFACTS
177           default: '{archive-artifacts}'
178           description: Artifacts to archive to the logs server.
179
180     scm:
181       - gerrit-trigger-scm:
182           credentials-id: 'jenkins-gerrit-credentials'
183           refspec: '$GERRIT_REFSPEC'
184           choosing-strategy: 'gerrit'
185
186     wrappers:
187       - fdio-infra-wrappers:
188           build-timeout: '{build-timeout}'
189
190     triggers:
191       - gerrit-trigger-patch-submitted:
192           name: '{project}'
193           branch: '{branch}'
194
195     builders:
196       - shell:
197           !include-raw-escape:
198           - include-raw-cicn-libparc-build.sh
199
200     publishers:
201       - fdio-infra-shiplogs:
202           maven-version: 'mvn33-new'
203
204 - job-template:
205     name: 'cicn-libparc-docs-merge-{stream}'
206
207     project-type: freestyle
208     node: 'ubuntu1604-builder-8c-32g'
209     concurrent: true
210     archive-artifacts: 'libparc/build/documentation/*.tar'
211     allow-empty: 'true'
212     fingerprint: false
213     only-if-success: true
214     default-excludes: false
215
216     build-discarder:
217       daysToKeep: '{build-days-to-keep}'
218       numToKeep: '{build-num-to-keep}'
219       artifactDaysToKeep: '{build-artifact-days-to-keep}'
220       artifactNumToKeep: '{build-artifact-num-to-keep}'
221
222     parameters:
223       - project-parameter:
224           project: '{project}'
225       - gerrit-parameter:
226           branch: '{branch}'
227       - maven-exec:
228           maven-version: 'mvn33-new'
229       - string:
230           name: ARCHIVE_ARTIFACTS
231           default: '{archive-artifacts}'
232           description: Artifacts to archive to the logs server.
233
234     scm:
235       - gerrit-trigger-scm:
236           credentials-id: 'jenkins-gerrit-credentials'
237           refspec: ''
238           choosing-strategy: 'default'
239
240     wrappers:
241       - fdio-infra-wrappers:
242           build-timeout: '{build-timeout}'
243
244     triggers:
245       - reverse:
246           jobs: 'cicn-libparc-merge-{stream}-ubuntu1604'
247           result: 'success'
248       - gerrit:
249           server-name: 'Primary'
250           trigger-on:
251             - comment-added-contains-event:
252                 comment-contains-value: 'run-docs'
253           projects:
254             - project-compare-type: 'ANT'
255               project-pattern: '{project}'
256               branches:
257                 - branch-compare-type: 'ANT'
258                   branch-pattern: '**/{branch}'
259           skip-vote:
260             successful: true
261             failed: true
262             unstable: true
263             notbuilt: true
264
265     builders:
266       - maven-target:
267           maven-version: 'mvn33-new'
268           goals: '--version'
269           settings: 'vpp-settings'
270           settings-type: cfp
271           global-settings: 'global-settings'
272           global-settings-type: cfp
273       - provide-maven-settings:
274           settings-file: 'cicn-settings'
275           global-settings-file: 'global-settings'
276       - shell:
277           !include-raw-escape:
278           - include-raw-cicn-libparc-docs.sh
279
280     publishers:
281       - fdio-infra-shiplogs:
282           maven-version: 'mvn33-new'
283
284 - job-template:
285     name: 'cicn-libparc-docs-verify-{stream}'
286
287     project-type: freestyle
288     node: 'ubuntu1604-builder-8c-32g'
289     concurrent: true
290     archive-artifacts: 'libparc/build/documentation/*.tar'
291     allow-empty: 'true'
292     fingerprint: false
293     only-if-success: true
294     default-excludes: false
295
296     build-discarder:
297       daysToKeep: '{build-days-to-keep}'
298       numToKeep: '{build-num-to-keep}'
299       artifactDaysToKeep: '{build-artifact-days-to-keep}'
300       artifactNumToKeep: '{build-artifact-num-to-keep}'
301
302     parameters:
303       - project-parameter:
304           project: '{project}'
305       - gerrit-parameter:
306           branch: '{branch}'
307       - maven-exec:
308           maven-version: 'mvn33-new'
309       - string:
310           name: ARCHIVE_ARTIFACTS
311           default: '{archive-artifacts}'
312           description: Artifacts to archive to the logs server.
313
314     scm:
315       - gerrit-trigger-scm:
316           credentials-id: 'jenkins-gerrit-credentials'
317           refspec: ''
318           choosing-strategy: 'default'
319
320     wrappers:
321       - fdio-infra-wrappers:
322           build-timeout: '{build-timeout}'
323
324     triggers:
325       - gerrit-trigger-patch-submitted:
326           name: '{project}'
327           branch: '{branch}'
328
329     builders:
330       - maven-target:
331           maven-version: 'mvn33-new'
332           goals: '--version'
333           settings: 'vpp-settings'
334           settings-type: cfp
335           global-settings: 'global-settings'
336           global-settings-type: cfp
337       - provide-maven-settings:
338           settings-file: 'cicn-settings'
339           global-settings-file: 'global-settings'
340       - shell:
341           !include-raw-escape:
342           - include-raw-cicn-libparc-docs.sh
343
344     publishers:
345       - fdio-infra-shiplogs:
346           maven-version: 'mvn33-new'
347
348 - job-template:
349     name: 'cicn-arm64-libparc-merge-{stream}-{os}'
350
351     project-type: freestyle
352     node: '{os}arm-us'
353
354     build-discarder:
355       daysToKeep: '{build-days-to-keep}'
356       numToKeep: '{build-num-to-keep}'
357       artifactDaysToKeep: '{build-artifact-days-to-keep}'
358       artifactNumToKeep: '{build-artifact-num-to-keep}'
359
360     parameters:
361       - project-parameter:
362           project: '{project}'
363       - gerrit-parameter:
364           branch: '{branch}'
365       - os-parameter:
366           os: '{os}'
367       - maven-project-parameter:
368           maven: 'mvn33-new'
369       - maven-exec:
370           maven-version: 'mvn33-new'
371       - repo-name-parameter:
372           repo-name: '{repo-stream-part}.{repo-os-part}'
373       - stream-parameter:
374           stream: 'release'
375       - string:
376           name: ARCHIVE_ARTIFACTS
377           default: '{archive-artifacts}'
378           description: Artifacts to archive to the logs server.
379
380     scm:
381       - gerrit-trigger-scm:
382           credentials-id: 'jenkins-gerrit-credentials'
383           refspec: ''
384           choosing-strategy: 'default'
385
386     wrappers:
387       - fdio-infra-wrappers:
388           build-timeout: '{build-timeout}'
389
390     triggers:
391       - gerrit-trigger-patch-merged:
392           name: '{project}'
393           branch: '{branch}'
394
395     builders:
396       - config-file-provider:
397           files:
398             - file-id: '.packagecloud'
399               target: '/root/.packagecloud'
400       - config-file-provider:
401           files:
402             - file-id: 'packagecloud_api'
403               target: '/root/packagecloud_api'
404       - maven-target:
405           maven-version: 'mvn33-new'
406           goals: '--version'
407           settings: 'cicn-settings'
408           settings-type: cfp
409           global-settings: 'global-settings'
410           global-settings-type: cfp
411       - shell:
412           !include-raw-escape:
413           - include-raw-cicn-libparc-build.sh
414       - provide-maven-settings:
415           settings-file: 'cicn-settings'
416           global-settings-file: 'global-settings'
417       - shell:
418           !include-raw-escape:
419           - ../scripts/maven_push_functions.sh
420           - include-raw-cicn-maven-push.sh
421       - shell:
422           !include-raw-escape:
423           - ../scripts/packagecloud_push.sh
424
425     publishers:
426       - fdio-infra-shiplogs:
427           maven-version: 'mvn33-new'
428
429 - job-template:
430     name: 'cicn-arm64-libparc-verify-{stream}-{os}'
431
432     project-type: freestyle
433     node: '{os}arm-us'
434     concurrent: true
435
436     build-discarder:
437       daysToKeep: '{build-days-to-keep}'
438       numToKeep: '{build-num-to-keep}'
439       artifactDaysToKeep: '{build-artifact-days-to-keep}'
440       artifactNumToKeep: '{build-artifact-num-to-keep}'
441
442     parameters:
443       - project-parameter:
444           project: '{project}'
445       - gerrit-parameter:
446           branch: '{branch}'
447       - os-parameter:
448           os: '{os}'
449       - string:
450           name: ARCHIVE_ARTIFACTS
451           default: '{archive-artifacts}'
452           description: Artifacts to archive to the logs server.
453
454     scm:
455       - gerrit-trigger-scm:
456           credentials-id: 'jenkins-gerrit-credentials'
457           refspec: '$GERRIT_REFSPEC'
458           choosing-strategy: 'gerrit'
459
460     wrappers:
461       - fdio-infra-wrappers:
462           build-timeout: '{build-timeout}'
463
464     triggers:
465       - gerrit-trigger-patch-submitted:
466           name: '{project}'
467           branch: '{branch}'
468
469     builders:
470       - shell:
471           !include-raw-escape:
472           - include-raw-cicn-libparc-build.sh
473
474     publishers:
475       - fdio-infra-shiplogs:
476           maven-version: 'mvn33-new'
477
478 - job-template:
479     name: 'cicn-viper-merge-{stream}-{os}'
480
481     project-type: freestyle
482     node: '{os}-m'
483
484     build-discarder:
485       daysToKeep: '{build-days-to-keep}'
486       numToKeep: '{build-num-to-keep}'
487       artifactDaysToKeep: '{build-artifact-days-to-keep}'
488       artifactNumToKeep: '{build-artifact-num-to-keep}'
489
490     parameters:
491       - project-parameter:
492           project: '{project}'
493       - gerrit-parameter:
494           branch: '{branch}'
495       - os-parameter:
496           os: '{os}'
497       - maven-project-parameter:
498           maven: 'mvn33-new'
499       - maven-exec:
500           maven-version: 'mvn33-new'
501       - repo-name-parameter:
502           repo-name: '{repo-stream-part}.{repo-os-part}'
503       - stream-parameter:
504           stream: 'master'
505       - string:
506           name: ARCHIVE_ARTIFACTS
507           default: '{archive-artifacts}'
508           description: Artifacts to archive to the logs server.
509
510     scm:
511       - gerrit-trigger-scm:
512           credentials-id: 'jenkins-gerrit-credentials'
513           refspec: ''
514           choosing-strategy: 'default'
515
516     wrappers:
517       - fdio-infra-wrappers:
518           build-timeout: '{build-timeout}'
519
520     triggers:
521       - gerrit-trigger-patch-merged:
522           name: '{project}'
523           branch: '{branch}'
524       - reverse:
525           jobs: 'cicn-libicnet-merge-{stream}-{os}'
526           result: 'failure'
527
528     builders:
529       - config-file-provider:
530           files:
531             - file-id: '.packagecloud'
532               target: '/root/.packagecloud'
533       - config-file-provider:
534           files:
535             - file-id: 'packagecloud_api'
536               target: '/root/packagecloud_api'
537       - maven-target:
538           maven-version: 'mvn33-new'
539           goals: '--version'
540           settings: 'cicn-settings'
541           settings-type: cfp
542           global-settings: 'global-settings'
543           global-settings-type: cfp
544       - shell:
545           !include-raw-escape:
546           - include-raw-cicn-viper-build.sh
547       - provide-maven-settings:
548           settings-file: 'cicn-settings'
549           global-settings-file: 'global-settings'
550       - shell:
551           !include-raw-escape:
552           - ../scripts/maven_push_functions.sh
553           - include-raw-cicn-maven-push.sh
554       - shell:
555           !include-raw-escape:
556           - ../scripts/packagecloud_push.sh
557
558     publishers:
559       - fdio-infra-shiplogs:
560           maven-version: 'mvn33-new'
561
562 - job-template:
563     name: 'cicn-viper-verify-{stream}-{os}'
564
565     project-type: freestyle
566     node: '{os}-m'
567     concurrent: true
568
569     build-discarder:
570       daysToKeep: '{build-days-to-keep}'
571       numToKeep: '{build-num-to-keep}'
572       artifactDaysToKeep: '{build-artifact-days-to-keep}'
573       artifactNumToKeep: '{build-artifact-num-to-keep}'
574
575     parameters:
576       - project-parameter:
577           project: '{project}'
578       - gerrit-parameter:
579           branch: '{branch}'
580       - os-parameter:
581           os: '{os}'
582       - string:
583           name: ARCHIVE_ARTIFACTS
584           default: '{archive-artifacts}'
585           description: Artifacts to archive to the logs server.
586
587     scm:
588       - gerrit-trigger-scm:
589           credentials-id: 'jenkins-gerrit-credentials'
590           refspec: '$GERRIT_REFSPEC'
591           choosing-strategy: 'gerrit'
592
593     wrappers:
594       - fdio-infra-wrappers:
595           build-timeout: '{build-timeout}'
596
597     triggers:
598       - gerrit-trigger-patch-submitted:
599           name: '{project}'
600           branch: '{branch}'
601
602     builders:
603       - shell:
604           !include-raw-escape:
605           - include-raw-cicn-viper-build.sh
606
607     publishers:
608       - fdio-infra-shiplogs:
609           maven-version: 'mvn33-new'
610
611 - project:
612     name: cicn-info
613     project-name: cicn
614     jobs:
615       - gerrit-info-yaml-verify
616     build-node: centos7-builder-4c-4g
617     project: cicn
618     branch: master