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