Remove hicn jobs for ubuntu 18 and centos 8
[ci-management.git] / jjb / hicn / hicn.yaml
1 # Copyright (c) 2020 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-os-eol-x86_64
17     jobs:
18       - "hicn-verify-{stream}-{os}-{executor-arch}"
19       - "hicn-merge-{stream}-{os}-{executor-arch}"
20
21     project: "hicn"
22     os:
23       - ubuntu1804:
24           repo-os-part: "ubuntu.bionic.main"
25       - centos7:
26           repo-os-part: "centos7"
27
28     executor-arch: "x86_64"
29
30     stream:
31       - "2009":
32           branch: "stable/2009"
33           repo-stream-part: "stable.2009"
34           repository-name: "hicn"
35       - "2005":
36           branch: "stable/2005"
37           repo-stream-part: "stable.2005"
38           repository-name: "hicn"
39
40 - project:
41     name: hicn-x86_64
42     jobs:
43       - "hicn-verify-{stream}-{os}-{executor-arch}"
44       - "hicn-merge-{stream}-{os}-{executor-arch}"
45
46     project: "hicn"
47     os:
48       - ubuntu2004:
49           repo-os-part: "ubuntu.focal.main"
50
51     executor-arch: "x86_64"
52
53     stream:
54       - "master":
55           branch: "master"
56           repo-stream-part: "master"
57           repository-name: "hicn"
58       - "2009":
59           branch: "stable/2009"
60           repo-stream-part: "stable.2009"
61           repository-name: "hicn"
62       - "2005":
63           branch: "stable/2005"
64           repo-stream-part: "stable.2005"
65           repository-name: "hicn"
66
67 - project:
68     name: hicn-aarch64
69     jobs:
70       - "hicn-verify-{stream}-{os}-{executor-arch}"
71       - "hicn-merge-{stream}-{os}-{executor-arch}"
72
73     project: "hicn"
74
75     os:
76       - ubuntu2004:
77           repo-os-part: "ubuntu-arm.focal.main"
78
79     executor-arch: "aarch64"
80
81     stream:
82       - master:
83           branch: "master"
84           repo-stream-part: "master"
85           repository-name: "hicn"
86
87 - project:
88     name: hicn-beta-x86_64
89     jobs:
90       - "hicn-verify-{stream}-{os}-{executor-arch}"
91
92     project: "hicn"
93     os:
94       - ubuntu2004:
95           repo-os-part: "ubuntu.focal.main"
96
97     executor-arch: "x86_64"
98
99     stream:
100       - lightng:
101           branch: "hicn-light-ng"
102           repo-stream-part: "hicn-light-ng"
103
104 - project:
105     name: hicn-beta-aarch64
106     jobs:
107       - "hicn-verify-{stream}-{os}-{executor-arch}"
108
109     project: "hicn"
110     os:
111       - ubuntu2004:
112           repo-os-part: "ubuntu-arm.focal.main"
113
114     executor-arch: "aarch64"
115
116     stream:
117       - lightng:
118           branch: "hicn-light-ng"
119           repo-stream-part: "hicn-light-ng"
120
121 - project:
122     name: hicn-misc
123     jobs:
124       - "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
125     project: "hicn"
126     stream:
127       - master:
128           branch: "master"
129           repo-stream-part: "master"
130       - lightng:
131           branch: "hicn-light-ng"
132           repo-stream-part: "hicn-light-ng"
133     os:
134       - ubuntu2004:
135           repo-os-part: "ubuntu.focal.main"
136     executor-arch: "x86_64"
137
138 - project:
139     name: hicn-extras-x86_64
140     jobs:
141       - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
142       - "hicn-extras-build-{stream}-{os}-{executor-arch}"
143     project: "hicn"
144     os:
145       - ubuntu2004:
146           repo-os-part: "ubuntu.focal.main"
147
148     executor-arch: "x86_64"
149
150     stream:
151       - master:
152           branch: "master"
153           repo-stream-part: "master"
154
155 - project:
156     name: hicn-extras-aarch64
157     jobs:
158       - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
159       - "hicn-extras-build-{stream}-{os}-{executor-arch}"
160
161     project: "hicn"
162     os:
163       - ubuntu2004:
164           repo-os-part: "ubuntu-arm.focal.main"
165
166     executor-arch: "aarch64"
167
168     stream:
169       - master:
170           branch: "master"
171           repo-stream-part: "master"
172
173 - project:
174     name: hicn-view
175     views:
176       - project-view
177     project-name: hicn
178
179 - job-template:
180     name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
181
182     project-type: freestyle
183     node: "builder-{os}-prod-{executor-arch}"
184     concurrent: true
185     archive-artifacts: "**/tmp/hicn-failed-unittests/*/* **/core"
186
187     build-discarder:
188       daysToKeep: "{build-days-to-keep}"
189       numToKeep: "{build-num-to-keep}"
190       artifactDaysToKeep: "{build-artifact-days-to-keep}"
191       artifactNumToKeep: "{build-artifact-num-to-keep}"
192
193     parameters:
194       - project-parameter:
195           project: "{project}"
196       - gerrit-parameter:
197           branch: "{branch}"
198       - os-parameter:
199           os: "{os}"
200       - repo-name-parameter:
201           repo-name: "{repo-stream-part}.ubuntu.bionic.main"
202       - archive-artifacts-parameter:
203           artifacts: '{archive-artifacts}'
204
205     scm:
206       - gerrit-trigger-scm:
207           credentials-id: "jenkins-gerrit-credentials"
208           refspec: "$GERRIT_REFSPEC"
209           choosing-strategy: "gerrit"
210
211     wrappers:
212       - fdio-infra-wrappers:
213           build-timeout: "{build-timeout}"
214
215     triggers:
216       - gerrit:
217           server-name: "Primary"
218           trigger-on:
219             - patchset-created-event:
220                 exclude-drafts: "true"
221                 exclude-trivial-rebase: "false"
222                 exclude-no-code-change: "true"
223             - draft-published-event
224             - comment-added-contains-event:
225                 comment-contains-value: "checkstylecheck"
226             - comment-added-contains-event:
227                 comment-contains-value: "docsonly"
228             - comment-added-contains-event:
229                 comment-contains-value: "recheck"
230             - comment-added-contains-event:
231                 comment-contains-value: "reverify"
232           projects:
233             - project-compare-type: "ANT"
234               project-pattern: "{project}"
235               branches:
236                 - branch-compare-type: "ANT"
237                   branch-pattern: "**/{branch}"
238               file-paths:
239                 - compare-type: REG_EXP
240                   pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
241               disable-strict-forbidden-file-verification: "true"
242           override-votes: true
243           gerrit-build-notbuilt-verified-value: 0
244           gerrit-build-successful-verified-value: 1
245           # yamllint disable-line rule:line-length
246           notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
247           # yamllint disable-line rule:line-length
248           failed-message: "Checkstyle failed. No further verify jobs will be started."
249           successful-message: "checkstyle_success"
250           skip-vote:
251             successful: true
252             failed: false
253             unstable: false
254             notbuilt: false
255
256     builders:
257       - shell: !include-raw-escape:
258           - ../scripts/setup_executor_env.sh
259       - shell: !include-raw-escape:
260           - include-raw-hicn-checkstyle.sh
261
262     publishers:
263       - fdio-infra-publish
264       - naginator:
265           rerun-unstable-builds: true
266           max-failed-builds: 1
267           fixed-delay: 90
268
269 - job-template:
270     name: "hicn-verify-{stream}-{os}-{executor-arch}"
271
272     project-type: freestyle
273     node: "builder-{os}-prod-{executor-arch}"
274     concurrent: true
275
276     build-discarder:
277       daysToKeep: "{build-days-to-keep}"
278       numToKeep: 100
279       artifactDaysToKeep: "{build-artifact-days-to-keep}"
280       artifactNumToKeep: "{build-artifact-num-to-keep}"
281
282     parameters:
283       - project-parameter:
284           project: "{project}"
285       - gerrit-parameter:
286           branch: "{branch}"
287       - os-parameter:
288           os: "{os}"
289       - repo-name-parameter:
290           repo-name: "{repo-stream-part}.{repo-os-part}"
291       - stream-parameter:
292           stream: "{stream}"
293       - archive-artifacts-parameter:
294           artifacts: '{archive-artifacts}'
295
296     scm:
297       - gerrit-trigger-scm:
298           credentials-id: "jenkins-gerrit-credentials"
299           refspec: "$GERRIT_REFSPEC"
300           choosing-strategy: "gerrit"
301
302     wrappers:
303       - fdio-infra-wrappers:
304           build-timeout: 120
305
306     triggers:
307       - gerrit-trigger-checkstyle:
308           name: "{project}"
309           branch: "{branch}"
310
311     builders:
312       - shell: !include-raw-escape:
313           - ../scripts/setup_executor_env.sh
314       - shell: !include-raw-escape:
315           - include-raw-hicn-build.sh
316
317     publishers:
318       - fdio-infra-publish
319       - naginator:
320           rerun-unstable-builds: false
321           max-failed-builds: 2
322           fixed-delay: 90
323
324 - job-template:
325     name: "hicn-merge-{stream}-{os}-{executor-arch}"
326
327     project-type: freestyle
328     node: "builder-{os}-prod-{executor-arch}"
329
330     build-discarder:
331       daysToKeep: "{build-days-to-keep}"
332       numToKeep: 100
333       artifactDaysToKeep: "{build-artifact-days-to-keep}"
334       artifactNumToKeep: "{build-artifact-num-to-keep}"
335
336     parameters:
337       - project-parameter:
338           project: "{project}"
339       - gerrit-parameter:
340           branch: "{branch}"
341       - os-parameter:
342           os: "{os}"
343       - maven-project-parameter:
344           maven: "mvn33-new"
345       - maven-exec:
346           maven-version: "mvn33-new"
347       - stream-parameter:
348           stream: "{repository-name}"
349       - repo-name-parameter:
350           repo-name: "{repo-stream-part}.{repo-os-part}"
351       - archive-artifacts-parameter:
352           artifacts: '{archive-artifacts}'
353
354     scm:
355       - gerrit-trigger-scm:
356           credentials-id: "jenkins-gerrit-credentials"
357           refspec: ""
358           choosing-strategy: "default"
359
360     wrappers:
361       - fdio-infra-wrappers:
362           build-timeout: "{build-timeout}"
363
364     triggers:
365       - gerrit-trigger-patch-merged:
366           name: "{project}"
367           branch: "{branch}"
368
369     builders:
370       - config-file-provider:
371           files:
372             - file-id: ".packagecloud"
373               target: "/root/.packagecloud"
374       - config-file-provider:
375           files:
376             - file-id: "packagecloud_api"
377               target: "/root/packagecloud_api"
378       - maven-target:
379           maven-version: "mvn33-new"
380           goals: "--version"
381           settings: "hicn-settings"
382           settings-type: cfp
383           global-settings: "global-settings"
384           global-settings-type: cfp
385       - shell: !include-raw-escape:
386           - ../scripts/setup_executor_env.sh
387       - shell: !include-raw-escape:
388           - include-raw-hicn-checkstyle.sh
389       - shell: !include-raw-escape:
390           - include-raw-hicn-build.sh
391       - provide-maven-settings:
392           settings-file: "hicn-settings"
393           global-settings-file: "global-settings"
394       - shell: !include-raw-escape:
395           - ../scripts/packagecloud_push.sh
396       - shell: !include-raw-escape:
397           - ../scripts/maven_push_functions.sh
398           - include-raw-hicn-maven-push.sh
399
400     publishers:
401       - fdio-infra-publish
402       - naginator:
403           rerun-unstable-builds: false
404           max-failed-builds: 1
405           fixed-delay: 90
406
407 - project:
408     name: hicn-sonar
409     project: hicn
410     project-name: hicn
411     mvn-settings: hicn-settings
412     sonarcloud: true
413     sonarcloud-project-organization: "{sonarcloud_project_organization}"
414     sonarcloud-api-token: "{sonarcloud_api_token}"
415     sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
416     branch: master
417     build-node: centos7-docker-2c-2g
418     jobs:
419       - gerrit-maven-sonar
420
421 - job-template:
422     name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
423
424     project-type: freestyle
425     node: "builder-{os}-prod-{executor-arch}"
426     concurrent: true
427
428     build-discarder:
429       daysToKeep: "{build-days-to-keep}"
430       numToKeep: 100
431       artifactDaysToKeep: "{build-artifact-days-to-keep}"
432       artifactNumToKeep: "{build-artifact-num-to-keep}"
433
434     parameters:
435       - project-parameter:
436           project: "{project}"
437       - gerrit-parameter:
438           branch: "{branch}"
439       - os-parameter:
440           os: "{os}"
441       - repo-name-parameter:
442           repo-name: "{repo-stream-part}.{repo-os-part}"
443       - stream-parameter:
444           stream: "{stream}"
445       - archive-artifacts-parameter:
446           artifacts: '{archive-artifacts}'
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           - include-raw-hicn-extras-build.sh
476
477     publishers:
478       - fdio-infra-publish
479       - naginator:
480           rerun-unstable-builds: false
481           max-failed-builds: 2
482           fixed-delay: 90
483
484 - job-template:
485     name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
486
487     project-type: freestyle
488     node: "builder-{os}-prod-{executor-arch}"
489
490     build-discarder:
491       daysToKeep: "{build-days-to-keep}"
492       numToKeep: 100
493       artifactDaysToKeep: "{build-artifact-days-to-keep}"
494       artifactNumToKeep: "{build-artifact-num-to-keep}"
495
496     parameters:
497       - project-parameter:
498           project: "{project}"
499       - gerrit-parameter:
500           branch: "{branch}"
501       - os-parameter:
502           os: "{os}"
503       - maven-project-parameter:
504           maven: "mvn33-new"
505       - maven-exec:
506           maven-version: "mvn33-new"
507       - stream-parameter:
508           stream: "hicn"
509       - repo-name-parameter:
510           repo-name: "{repo-stream-part}.{repo-os-part}"
511       - archive-artifacts-parameter:
512           artifacts: '{archive-artifacts}'
513
514     scm:
515       - gerrit-trigger-scm:
516           credentials-id: "jenkins-gerrit-credentials"
517           refspec: ""
518           choosing-strategy: "default"
519
520     wrappers:
521       - fdio-infra-wrappers:
522           build-timeout: "{build-timeout}"
523
524     triggers:
525       - gerrit:
526           server-name: "Primary"
527           trigger-on:
528             - comment-added-contains-event:
529                 comment-contains-value: "build-extras"
530           projects:
531             - project-compare-type: "ANT"
532               project-pattern: "{project}"
533               branches:
534                 - branch-compare-type: "ANT"
535                   branch-pattern: "**/{branch}"
536
537     builders:
538       - config-file-provider:
539           files:
540             - file-id: ".packagecloud"
541               target: "/root/.packagecloud"
542       - config-file-provider:
543           files:
544             - file-id: "packagecloud_api"
545               target: "/root/packagecloud_api"
546       - maven-target:
547           maven-version: "mvn33-new"
548           goals: "--version"
549           settings: "hicn-settings"
550           settings-type: cfp
551           global-settings: "global-settings"
552           global-settings-type: cfp
553       - shell: !include-raw-escape:
554           - ../scripts/setup_executor_env.sh
555       - shell: !include-raw-escape:
556           - include-raw-hicn-extras-build.sh
557       - provide-maven-settings:
558           settings-file: "hicn-settings"
559           global-settings-file: "global-settings"
560       - shell: !include-raw-escape:
561           - ../scripts/packagecloud_push.sh
562       - shell: !include-raw-escape:
563           - ../scripts/maven_push_functions.sh
564           - include-raw-hicn-maven-push.sh
565
566     publishers:
567       - fdio-infra-publish
568       - naginator:
569           rerun-unstable-builds: false
570           max-failed-builds: 1
571           fixed-delay: 90
572
573 - project:
574     name: hicn-info
575     project-name: hicn
576     jobs:
577       - gerrit-info-yaml-verify
578     build-node: centos7-builder-2c-2g
579     project: hicn
580     branch: master