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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 name: hicn-os-eol-x86_64
18 - "hicn-verify-{stream}-{os}-{executor-arch}"
19 - "hicn-merge-{stream}-{os}-{executor-arch}"
24 repo-os-part: "centos7"
26 executor-arch: "x86_64"
31 repo-stream-part: "stable.2009"
32 repository-name: "hicn"
35 repo-stream-part: "stable.2005"
36 repository-name: "hicn"
41 - "hicn-verify-{stream}-{os}-{executor-arch}"
42 - "hicn-merge-{stream}-{os}-{executor-arch}"
47 repo-os-part: "ubuntu.bionic.main"
49 repo-os-part: "ubuntu.focal.main"
51 executor-arch: "x86_64"
56 repo-stream-part: "master"
57 repository-name: "hicn"
60 repo-stream-part: "stable.2009"
61 repository-name: "hicn"
64 repo-stream-part: "stable.2005"
65 repository-name: "hicn"
68 name: hicn-os-in-master-x86_64
70 - "hicn-verify-{stream}-{os}-{executor-arch}"
71 - "hicn-merge-{stream}-{os}-{executor-arch}"
76 repo-os-part: "centos8"
78 executor-arch: "x86_64"
83 repo-stream-part: "master"
84 repository-name: "hicn"
89 - "hicn-verify-{stream}-{os}-{executor-arch}"
90 - "hicn-merge-{stream}-{os}-{executor-arch}"
96 repo-os-part: "ubuntu-arm.bionic.main"
98 executor-arch: "aarch64"
103 repo-stream-part: "master"
104 repository-name: "hicn"
106 branch: "stable/2005"
107 repo-stream-part: "stable.2005"
108 repository-name: "hicn"
111 name: hicn-beta-x86_64
113 - "hicn-verify-{stream}-{os}-{executor-arch}"
118 repo-os-part: "ubuntu.bionic.main"
120 repo-os-part: "ubuntu.focal.main"
122 repo-os-part: "centos8"
124 executor-arch: "x86_64"
128 branch: "hicn-light-ng"
129 repo-stream-part: "hicn-light-ng"
132 name: hicn-beta-aarch64
134 - "hicn-verify-{stream}-{os}-{executor-arch}"
139 repo-os-part: "ubuntu-arm.bionic.main"
141 executor-arch: "aarch64"
145 branch: "hicn-light-ng"
146 repo-stream-part: "hicn-light-ng"
151 - "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
156 repo-stream-part: "master"
158 branch: "hicn-light-ng"
159 repo-stream-part: "hicn-light-ng"
162 repo-os-part: "ubuntu.focal.main"
163 executor-arch: "x86_64"
166 name: hicn-extras-x86_64
168 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
169 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
173 repo-os-part: "ubuntu.bionic.main"
175 repo-os-part: "ubuntu.focal.main"
177 repo-os-part: "centos8"
179 executor-arch: "x86_64"
184 repo-stream-part: "master"
187 name: hicn-extras-aarch64
189 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
190 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
195 repo-os-part: "ubuntu-arm.bionic.main"
197 executor-arch: "aarch64"
202 repo-stream-part: "master"
211 name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
213 project-type: freestyle
214 node: "builder-{os}-prod-{executor-arch}"
216 archive-artifacts: "**/tmp/hicn-failed-unittests/*/* **/core"
219 daysToKeep: "{build-days-to-keep}"
220 numToKeep: "{build-num-to-keep}"
221 artifactDaysToKeep: "{build-artifact-days-to-keep}"
222 artifactNumToKeep: "{build-artifact-num-to-keep}"
231 - repo-name-parameter:
232 repo-name: "{repo-stream-part}.ubuntu.bionic.main"
233 - archive-artifacts-parameter:
234 artifacts: '{archive-artifacts}'
237 - gerrit-trigger-scm:
238 credentials-id: "jenkins-gerrit-credentials"
239 refspec: "$GERRIT_REFSPEC"
240 choosing-strategy: "gerrit"
243 - fdio-infra-wrappers:
244 build-timeout: "{build-timeout}"
248 server-name: "Primary"
250 - patchset-created-event:
251 exclude-drafts: "true"
252 exclude-trivial-rebase: "false"
253 exclude-no-code-change: "true"
254 - draft-published-event
255 - comment-added-contains-event:
256 comment-contains-value: "checkstylecheck"
257 - comment-added-contains-event:
258 comment-contains-value: "docsonly"
259 - comment-added-contains-event:
260 comment-contains-value: "recheck"
261 - comment-added-contains-event:
262 comment-contains-value: "reverify"
264 - project-compare-type: "ANT"
265 project-pattern: "{project}"
267 - branch-compare-type: "ANT"
268 branch-pattern: "**/{branch}"
270 - compare-type: REG_EXP
271 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
272 disable-strict-forbidden-file-verification: "true"
274 gerrit-build-notbuilt-verified-value: 0
275 gerrit-build-successful-verified-value: 1
276 # yamllint disable-line rule:line-length
277 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
278 # yamllint disable-line rule:line-length
279 failed-message: "Checkstyle failed. No further verify jobs will be started."
280 successful-message: "checkstyle_success"
288 - shell: !include-raw-escape:
289 - ../scripts/setup_executor_env.sh
290 - shell: !include-raw-escape:
291 - include-raw-hicn-checkstyle.sh
296 rerun-unstable-builds: true
301 name: "hicn-verify-{stream}-{os}-{executor-arch}"
303 project-type: freestyle
304 node: "builder-{os}-prod-{executor-arch}"
308 daysToKeep: "{build-days-to-keep}"
310 artifactDaysToKeep: "{build-artifact-days-to-keep}"
311 artifactNumToKeep: "{build-artifact-num-to-keep}"
320 - repo-name-parameter:
321 repo-name: "{repo-stream-part}.{repo-os-part}"
324 - archive-artifacts-parameter:
325 artifacts: '{archive-artifacts}'
328 - gerrit-trigger-scm:
329 credentials-id: "jenkins-gerrit-credentials"
330 refspec: "$GERRIT_REFSPEC"
331 choosing-strategy: "gerrit"
334 - fdio-infra-wrappers:
338 - gerrit-trigger-checkstyle:
343 - shell: !include-raw-escape:
344 - ../scripts/setup_executor_env.sh
345 - shell: !include-raw-escape:
346 - include-raw-hicn-build.sh
351 rerun-unstable-builds: false
356 name: "hicn-merge-{stream}-{os}-{executor-arch}"
358 project-type: freestyle
359 node: "builder-{os}-prod-{executor-arch}"
362 daysToKeep: "{build-days-to-keep}"
364 artifactDaysToKeep: "{build-artifact-days-to-keep}"
365 artifactNumToKeep: "{build-artifact-num-to-keep}"
374 - maven-project-parameter:
377 maven-version: "mvn33-new"
379 stream: "{repository-name}"
380 - repo-name-parameter:
381 repo-name: "{repo-stream-part}.{repo-os-part}"
382 - archive-artifacts-parameter:
383 artifacts: '{archive-artifacts}'
386 - gerrit-trigger-scm:
387 credentials-id: "jenkins-gerrit-credentials"
389 choosing-strategy: "default"
392 - fdio-infra-wrappers:
393 build-timeout: "{build-timeout}"
396 - gerrit-trigger-patch-merged:
401 - config-file-provider:
403 - file-id: ".packagecloud"
404 target: "/root/.packagecloud"
405 - config-file-provider:
407 - file-id: "packagecloud_api"
408 target: "/root/packagecloud_api"
410 maven-version: "mvn33-new"
412 settings: "hicn-settings"
414 global-settings: "global-settings"
415 global-settings-type: cfp
416 - shell: !include-raw-escape:
417 - ../scripts/setup_executor_env.sh
418 - shell: !include-raw-escape:
419 - include-raw-hicn-checkstyle.sh
420 - shell: !include-raw-escape:
421 - include-raw-hicn-build.sh
422 - provide-maven-settings:
423 settings-file: "hicn-settings"
424 global-settings-file: "global-settings"
425 - shell: !include-raw-escape:
426 - ../scripts/packagecloud_push.sh
427 - shell: !include-raw-escape:
428 - ../scripts/maven_push_functions.sh
429 - include-raw-hicn-maven-push.sh
434 rerun-unstable-builds: false
442 mvn-settings: hicn-settings
444 sonarcloud-project-organization: "{sonarcloud_project_organization}"
445 sonarcloud-api-token: "{sonarcloud_api_token}"
446 sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
448 build-node: centos7-docker-2c-2g
453 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
455 project-type: freestyle
456 node: "builder-{os}-prod-{executor-arch}"
460 daysToKeep: "{build-days-to-keep}"
462 artifactDaysToKeep: "{build-artifact-days-to-keep}"
463 artifactNumToKeep: "{build-artifact-num-to-keep}"
472 - repo-name-parameter:
473 repo-name: "{repo-stream-part}.{repo-os-part}"
476 - archive-artifacts-parameter:
477 artifacts: '{archive-artifacts}'
480 - gerrit-trigger-scm:
481 credentials-id: "jenkins-gerrit-credentials"
482 refspec: "$GERRIT_REFSPEC"
483 choosing-strategy: "gerrit"
486 - fdio-infra-wrappers:
491 server-name: "Primary"
493 - comment-added-contains-event:
494 comment-contains-value: "verify-extras"
496 - project-compare-type: "ANT"
497 project-pattern: "{project}"
499 - branch-compare-type: "ANT"
500 branch-pattern: "**/{branch}"
503 - shell: !include-raw-escape:
504 - ../scripts/setup_executor_env.sh
505 - shell: !include-raw-escape:
506 - include-raw-hicn-extras-build.sh
511 rerun-unstable-builds: false
516 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
518 project-type: freestyle
519 node: "builder-{os}-prod-{executor-arch}"
522 daysToKeep: "{build-days-to-keep}"
524 artifactDaysToKeep: "{build-artifact-days-to-keep}"
525 artifactNumToKeep: "{build-artifact-num-to-keep}"
534 - maven-project-parameter:
537 maven-version: "mvn33-new"
540 - repo-name-parameter:
541 repo-name: "{repo-stream-part}.{repo-os-part}"
542 - archive-artifacts-parameter:
543 artifacts: '{archive-artifacts}'
546 - gerrit-trigger-scm:
547 credentials-id: "jenkins-gerrit-credentials"
549 choosing-strategy: "default"
552 - fdio-infra-wrappers:
553 build-timeout: "{build-timeout}"
557 server-name: "Primary"
559 - comment-added-contains-event:
560 comment-contains-value: "build-extras"
562 - project-compare-type: "ANT"
563 project-pattern: "{project}"
565 - branch-compare-type: "ANT"
566 branch-pattern: "**/{branch}"
569 - config-file-provider:
571 - file-id: ".packagecloud"
572 target: "/root/.packagecloud"
573 - config-file-provider:
575 - file-id: "packagecloud_api"
576 target: "/root/packagecloud_api"
578 maven-version: "mvn33-new"
580 settings: "hicn-settings"
582 global-settings: "global-settings"
583 global-settings-type: cfp
584 - shell: !include-raw-escape:
585 - ../scripts/setup_executor_env.sh
586 - shell: !include-raw-escape:
587 - include-raw-hicn-extras-build.sh
588 - provide-maven-settings:
589 settings-file: "hicn-settings"
590 global-settings-file: "global-settings"
591 - shell: !include-raw-escape:
592 - ../scripts/packagecloud_push.sh
593 - shell: !include-raw-escape:
594 - ../scripts/maven_push_functions.sh
595 - include-raw-hicn-maven-push.sh
600 rerun-unstable-builds: false
608 - gerrit-info-yaml-verify
609 build-node: centos7-builder-2c-2g