Merge "chore: remove unused FDIONOMAD executor configs."
[ci-management.git] / jjb / hicn / hicn.yaml
1 # Copyright (c) 2021 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 ---
15 - project:
16     name: hicn-x86_64
17     jobs:
18       - "hicn-verify-build-{stream}-{os}-{executor-arch}"
19       - "hicn-verify-functest-{stream}-{os}-{executor-arch}"
20       - "hicn-merge-{stream}-{os}-{executor-arch}"
21     project: "hicn"
22     os: ubuntu2004
23     executor-arch: "x86_64"
24     stream:
25       - hicn:
26           branch: "master"
27
28 - project:
29     name: hicn-aarch64
30     jobs:
31       - "hicn-verify-build-{stream}-{os}-{executor-arch}"
32       - "hicn-merge-{stream}-{os}-{executor-arch}"
33     project: "hicn"
34     os: ubuntu2004
35     executor-arch: "aarch64"
36     stream:
37       - hicn:
38           branch: "master"
39
40 - project:
41     name: hicn-misc
42     jobs:
43       - "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
44     project: "hicn"
45     stream:
46       - hicn:
47           branch: "master"
48     os: ubuntu2004
49     executor-arch: "x86_64"
50
51 - project:
52     name: hicn-extras-x86_64
53     jobs:
54       - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
55       - "hicn-extras-build-{stream}-{os}-{executor-arch}"
56     project: "hicn"
57     os: ubuntu2004
58     executor-arch: "x86_64"
59     stream:
60       - hicn:
61           branch: "master"
62
63 - project:
64     name: hicn-extras-aarch64
65     jobs:
66       - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
67       - "hicn-extras-build-{stream}-{os}-{executor-arch}"
68     project: "hicn"
69     os: ubuntu2004
70     executor-arch: "aarch64"
71     stream:
72       - hicn:
73           branch: "master"
74
75 - project:
76     name: hicn-vpp-latest-x86_64
77     jobs:
78       - "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
79     project: "hicn"
80     os: ubuntu2004
81     executor-arch: "x86_64"
82     stream:
83       - master:
84           branch: "master"
85
86 - project:
87     name: hicn-vpp-latest-aarch64
88     jobs:
89       - "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
90     project: "hicn"
91     os: ubuntu2004
92     executor-arch: "aarch64"
93     stream:
94       - master:
95           branch: "master"
96
97 - project:
98     name: hicn-view
99     views:
100       - project-view
101     project-name: hicn
102
103 - project:
104     name: hicn-sonar
105     jobs:
106       - hicn-sonar-scanner
107     project: hicn
108     sonarcloud: true
109     sonarcloud-project-organization: "{sonarcloud_project_organization}"
110     sonarcloud-api-token: "{sonarcloud_api_token}"
111     sonarcloud-project-key: "{sonarcloud_project_organization}-{project}"
112     stream:
113       - hicn:
114           branch: "master"
115
116 - job-template:
117     name: hicn-sonar-scanner
118
119     project-type: freestyle
120     node: centos7-docker-4c-4g
121     concurrent: true
122
123     parameters:
124       - project-parameter:
125           project: "{project}"
126       - gerrit-parameter:
127           branch: "{branch}"
128       - stream-parameter:
129           stream: "{stream}"
130
131     scm:
132       - gerrit-trigger-scm:
133           credentials-id: "jenkins-gerrit-credentials"
134           refspec: ""
135           choosing-strategy: "default"
136
137     wrappers:
138       - fdio-infra-wrappers:
139           build-timeout: "{build-timeout}"
140
141     triggers:
142       - gerrit-trigger-patch-merged:
143           name: "{project}"
144           branch: "{branch}"
145
146     builders:
147       - inject:
148           properties-content: |
149             SONAR_HOST_URL=https://sonarcloud.io
150             PROJECT_KEY={sonarcloud-project-key}
151             PROJECT_ORGANIZATION={sonarcloud-project-organization}
152             API_TOKEN={sonarcloud-api-token}
153       - shell: !include-raw-escape:
154           - ../scripts/hicn/sonar.sh
155
156 - job-template:
157     name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
158
159     project-type: freestyle
160     node: "builder-{os}-prod-{executor-arch}"
161     concurrent: true
162
163     properties:
164       - lf-infra-properties:
165           build-days-to-keep: "{build-days-to-keep}"
166
167     parameters:
168       - project-parameter:
169           project: "{project}"
170       - gerrit-parameter:
171           branch: "{branch}"
172       - os-parameter:
173           os: "{os}"
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:
187           server-name: "Primary"
188           trigger-on:
189             - patchset-created-event:
190                 exclude-drafts: "true"
191                 exclude-trivial-rebase: "false"
192                 exclude-no-code-change: "true"
193             - draft-published-event
194             - comment-added-contains-event:
195                 comment-contains-value: "checkstylecheck"
196             - comment-added-contains-event:
197                 comment-contains-value: "docsonly"
198             - comment-added-contains-event:
199                 comment-contains-value: "recheck"
200             - comment-added-contains-event:
201                 comment-contains-value: "reverify"
202           projects:
203             - project-compare-type: "ANT"
204               project-pattern: "{project}"
205               branches:
206                 - branch-compare-type: "ANT"
207                   branch-pattern: "**/{branch}"
208               file-paths:
209                 - compare-type: REG_EXP
210                   pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
211               disable-strict-forbidden-file-verification: "true"
212           override-votes: true
213           gerrit-build-notbuilt-verified-value: 0
214           gerrit-build-successful-verified-value: 1
215           # yamllint disable-line rule:line-length
216           notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
217           # yamllint disable-line rule:line-length
218           failed-message: "Checkstyle failed. No further verify jobs will be started."
219           successful-message: "checkstyle_success"
220           skip-vote:
221             successful: true
222             failed: false
223             unstable: false
224             notbuilt: false
225
226     builders:
227       - shell: !include-raw-escape:
228           - ../scripts/setup_executor_env.sh
229       - shell: !include-raw-escape:
230           - ../scripts/hicn/checkstyle.sh
231
232     publishers:
233       - fdio-infra-publish
234       - naginator:
235           rerun-unstable-builds: true
236           max-failed-builds: 1
237           fixed-delay: 90
238
239 - job-template:
240     name: "hicn-verify-build-{stream}-{os}-{executor-arch}"
241
242     project-type: freestyle
243     node: "builder-{os}-prod-{executor-arch}"
244     concurrent: true
245
246     properties:
247       - lf-infra-properties:
248           build-days-to-keep: "{build-days-to-keep}"
249
250     parameters:
251       - project-parameter:
252           project: "{project}"
253       - gerrit-parameter:
254           branch: "{branch}"
255       - os-parameter:
256           os: "{os}"
257       - stream-parameter:
258           stream: "{stream}"
259
260     scm:
261       - gerrit-trigger-scm:
262           credentials-id: "jenkins-gerrit-credentials"
263           refspec: "$GERRIT_REFSPEC"
264           choosing-strategy: "gerrit"
265
266     wrappers:
267       - fdio-infra-wrappers:
268           build-timeout: 120
269
270     triggers:
271       - gerrit:
272           server-name: "Primary"
273           trigger-on:
274             - comment-added-contains-event:
275                 comment-contains-value: "checkstyle_success"
276           projects:
277             - project-compare-type: "ANT"
278               project-pattern: "{project}"
279               branches:
280                 - branch-compare-type: "ANT"
281                   branch-pattern: "**/{branch}"
282           override-votes: true
283           gerrit-build-notbuilt-verified-value: 0
284           gerrit-build-successful-verified-value: 1
285           # yamllint disable-line rule:line-length
286           notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
287           # yamllint disable-line rule:line-length
288           failed-message: "Build failed. No further verify jobs will be started."
289           successful-message: "build_success-{stream}-{os}-{executor-arch}"
290           skip-vote:
291             successful: true
292             failed: false
293             unstable: false
294             notbuilt: false
295
296     builders:
297       - shell: !include-raw-escape:
298           - ../scripts/setup_executor_env.sh
299       - shell: !include-raw-escape:
300           - ../scripts/hicn/build.sh
301
302     publishers:
303       - fdio-infra-publish
304       - archive-artifacts:
305           artifacts: "packages/*.deb, packages/*.rpm"
306       - xunit:
307           thresholdmode: 'percent'
308           thresholds:
309             - failed:
310                   failure: 0
311           types:
312             - gtest:
313                 pattern: "**/reports/*report.xml"
314
315 - job-template:
316     name: "hicn-verify-functest-{stream}-{os}-{executor-arch}"
317
318     project-type: freestyle
319     node: "centos7-docker-4c-4g"
320     concurrent: true
321
322     properties:
323       - lf-infra-properties:
324           build-days-to-keep: "{build-days-to-keep}"
325
326     parameters:
327       - project-parameter:
328           project: "{project}"
329       - gerrit-parameter:
330           branch: "{branch}"
331       - os-parameter:
332           os: "{os}"
333       - stream-parameter:
334           stream: "{stream}"
335
336     scm:
337       - gerrit-trigger-scm:
338           credentials-id: "jenkins-gerrit-credentials"
339           refspec: "$GERRIT_REFSPEC"
340           choosing-strategy: "gerrit"
341
342     wrappers:
343       - fdio-infra-wrappers:
344           build-timeout: 120
345
346     triggers:
347       - gerrit-trigger-build:
348           name: "{project}"
349           branch: "{branch}"
350           stream: "{stream}"
351           os: "{os}"
352           executor-arch: "{executor-arch}"
353
354     builders:
355       - shell: !include-raw-escape:
356           - ../scripts/hicn/functest.sh
357
358     publishers:
359       - robot:
360           output-path: "tests"
361           pass-threshold: 75.0
362
363 - job-template:
364     name: "hicn-merge-{stream}-{os}-{executor-arch}"
365
366     project-type: freestyle
367     node: "builder-{os}-prod-{executor-arch}"
368
369     properties:
370       - lf-infra-properties:
371           build-days-to-keep: "{build-days-to-keep}"
372
373     parameters:
374       - project-parameter:
375           project: "{project}"
376       - gerrit-parameter:
377           branch: "{branch}"
378       - os-parameter:
379           os: "{os}"
380       - stream-parameter:
381           stream: "{stream}"
382
383     scm:
384       - gerrit-trigger-scm:
385           credentials-id: "jenkins-gerrit-credentials"
386           refspec: ""
387           choosing-strategy: "default"
388
389     wrappers:
390       - fdio-infra-wrappers:
391           build-timeout: "{build-timeout}"
392
393     triggers:
394       - gerrit-trigger-patch-merged:
395           name: "{project}"
396           branch: "{branch}"
397
398     builders:
399       - config-file-provider:
400           files:
401             - file-id: ".packagecloud"
402               target: "/root/.packagecloud"
403       - config-file-provider:
404           files:
405             - file-id: "packagecloud_api"
406               target: "/root/packagecloud_api"
407       - shell: !include-raw-escape:
408           - ../scripts/setup_executor_env.sh
409       - shell: !include-raw-escape:
410           - ../scripts/hicn/checkstyle.sh
411       - shell: !include-raw-escape:
412           - ../scripts/hicn/build.sh
413       - shell: !include-raw-escape:
414           - ../scripts/packagecloud_push.sh
415
416     publishers:
417       - fdio-infra-publish
418       - xunit:
419           thresholdmode: 'percent'
420           thresholds:
421             - failed:
422                   failure: 0
423           types:
424             - gtest:
425                 pattern: "**/reports/*report.xml"
426
427 - job-template:
428     name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
429
430     project-type: freestyle
431     node: "builder-{os}-prod-{executor-arch}"
432     concurrent: true
433
434     properties:
435       - lf-infra-properties:
436           build-days-to-keep: "{build-days-to-keep}"
437
438     parameters:
439       - project-parameter:
440           project: "{project}"
441       - gerrit-parameter:
442           branch: "{branch}"
443       - os-parameter:
444           os: "{os}"
445       - stream-parameter:
446           stream: "{stream}"
447
448     scm:
449       - gerrit-trigger-scm:
450           credentials-id: "jenkins-gerrit-credentials"
451           refspec: "$GERRIT_REFSPEC"
452           choosing-strategy: "gerrit"
453
454     wrappers:
455       - fdio-infra-wrappers:
456           build-timeout: 120
457
458     triggers:
459       - gerrit:
460           server-name: "Primary"
461           trigger-on:
462             - comment-added-contains-event:
463                 comment-contains-value: "verify-extras"
464           projects:
465             - project-compare-type: "ANT"
466               project-pattern: "{project}"
467               branches:
468                 - branch-compare-type: "ANT"
469                   branch-pattern: "**/{branch}"
470
471     builders:
472       - shell: !include-raw-escape:
473           - ../scripts/setup_executor_env.sh
474       - shell: !include-raw-escape:
475           - ../scripts/hicn/build-extras.sh
476
477     publishers:
478       - fdio-infra-publish
479
480 - job-template:
481     name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
482
483     project-type: freestyle
484     node: "builder-{os}-prod-{executor-arch}"
485
486     properties:
487       - lf-infra-properties:
488           build-days-to-keep: "{build-days-to-keep}"
489
490     parameters:
491       - project-parameter:
492           project: "{project}"
493       - gerrit-parameter:
494           branch: "{branch}"
495       - os-parameter:
496           os: "{os}"
497       - stream-parameter:
498           stream: "hicn"
499
500     scm:
501       - gerrit-trigger-scm:
502           credentials-id: "jenkins-gerrit-credentials"
503           refspec: ""
504           choosing-strategy: "default"
505
506     wrappers:
507       - fdio-infra-wrappers:
508           build-timeout: "{build-timeout}"
509
510     triggers:
511       - gerrit:
512           server-name: "Primary"
513           trigger-on:
514             - comment-added-contains-event:
515                 comment-contains-value: "build-extras"
516           projects:
517             - project-compare-type: "ANT"
518               project-pattern: "{project}"
519               branches:
520                 - branch-compare-type: "ANT"
521                   branch-pattern: "**/{branch}"
522
523     builders:
524       - config-file-provider:
525           files:
526             - file-id: ".packagecloud"
527               target: "/root/.packagecloud"
528       - config-file-provider:
529           files:
530             - file-id: "packagecloud_api"
531               target: "/root/packagecloud_api"
532       - shell: !include-raw-escape:
533           - ../scripts/setup_executor_env.sh
534       - shell: !include-raw-escape:
535           - ../scripts/hicn/build-extras.sh
536       - shell: !include-raw-escape:
537           - ../scripts/packagecloud_push.sh
538
539     publishers:
540       - fdio-infra-publish
541
542 - job-template:
543     name: "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
544
545     project-type: freestyle
546     node: "builder-{os}-prod-{executor-arch}"
547     concurrent: true
548
549     properties:
550       - lf-infra-properties:
551           build-days-to-keep: "{build-days-to-keep}"
552
553     parameters:
554       - project-parameter:
555           project: "{project}"
556       - gerrit-parameter:
557           branch: "{branch}"
558       - os-parameter:
559           os: "{os}"
560       - stream-parameter:
561           stream: "{stream}"
562
563     scm:
564       - gerrit-trigger-scm:
565           credentials-id: "jenkins-gerrit-credentials"
566           refspec: "$GERRIT_REFSPEC"
567           choosing-strategy: "gerrit"
568
569     wrappers:
570       - fdio-infra-wrappers:
571           build-timeout: 120
572
573     triggers:
574
575       - timed: 'H H * * *'
576       - gerrit-trigger-manually-triggered:
577           comment-trigger-value: 'verify-vpp-latest'
578           name: '{project}'
579           branch: '{branch}'
580
581     builders:
582       - shell: !include-raw-escape:
583           - ../scripts/setup_executor_env.sh
584       - shell: !include-raw-escape:
585           - ../scripts/hicn/build-vpp-latest.sh
586
587     publishers:
588       - fdio-infra-publish
589
590 - project:
591     name: hicn-info
592     project-name: hicn
593     jobs:
594       - gerrit-info-yaml-verify
595     build-node: centos7-builder-2c-2g
596     project: hicn
597     branch: master