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: "ubuntu.bionic.main"
26 repo-os-part: "centos7"
28 executor-arch: "x86_64"
33 repo-stream-part: "stable.2009"
34 repository-name: "hicn"
37 repo-stream-part: "stable.2005"
38 repository-name: "hicn"
43 - "hicn-verify-{stream}-{os}-{executor-arch}"
44 - "hicn-merge-{stream}-{os}-{executor-arch}"
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"
70 - "hicn-verify-{stream}-{os}-{executor-arch}"
71 - "hicn-merge-{stream}-{os}-{executor-arch}"
77 repo-os-part: "ubuntu-arm.focal.main"
79 executor-arch: "aarch64"
84 repo-stream-part: "master"
85 repository-name: "hicn"
88 name: hicn-beta-x86_64
90 - "hicn-verify-{stream}-{os}-{executor-arch}"
95 repo-os-part: "ubuntu.focal.main"
97 executor-arch: "x86_64"
101 branch: "hicn-light-ng"
102 repo-stream-part: "hicn-light-ng"
105 name: hicn-beta-aarch64
107 - "hicn-verify-{stream}-{os}-{executor-arch}"
112 repo-os-part: "ubuntu-arm.focal.main"
114 executor-arch: "aarch64"
118 branch: "hicn-light-ng"
119 repo-stream-part: "hicn-light-ng"
124 - "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
129 repo-stream-part: "master"
131 branch: "hicn-light-ng"
132 repo-stream-part: "hicn-light-ng"
135 repo-os-part: "ubuntu.focal.main"
136 executor-arch: "x86_64"
139 name: hicn-extras-x86_64
141 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
142 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
146 repo-os-part: "ubuntu.focal.main"
148 executor-arch: "x86_64"
153 repo-stream-part: "master"
156 name: hicn-extras-aarch64
158 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
159 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
164 repo-os-part: "ubuntu-arm.focal.main"
166 executor-arch: "aarch64"
171 repo-stream-part: "master"
180 name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
182 project-type: freestyle
183 node: "builder-{os}-prod-{executor-arch}"
185 archive-artifacts: "**/tmp/hicn-failed-unittests/*/* **/core"
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}"
200 - repo-name-parameter:
201 repo-name: "{repo-stream-part}.ubuntu.bionic.main"
202 - archive-artifacts-parameter:
203 artifacts: '{archive-artifacts}'
206 - gerrit-trigger-scm:
207 credentials-id: "jenkins-gerrit-credentials"
208 refspec: "$GERRIT_REFSPEC"
209 choosing-strategy: "gerrit"
212 - fdio-infra-wrappers:
213 build-timeout: "{build-timeout}"
217 server-name: "Primary"
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"
233 - project-compare-type: "ANT"
234 project-pattern: "{project}"
236 - branch-compare-type: "ANT"
237 branch-pattern: "**/{branch}"
239 - compare-type: REG_EXP
240 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
241 disable-strict-forbidden-file-verification: "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"
257 - shell: !include-raw-escape:
258 - ../scripts/setup_executor_env.sh
259 - shell: !include-raw-escape:
260 - include-raw-hicn-checkstyle.sh
265 rerun-unstable-builds: true
270 name: "hicn-verify-{stream}-{os}-{executor-arch}"
272 project-type: freestyle
273 node: "builder-{os}-prod-{executor-arch}"
277 daysToKeep: "{build-days-to-keep}"
279 artifactDaysToKeep: "{build-artifact-days-to-keep}"
280 artifactNumToKeep: "{build-artifact-num-to-keep}"
289 - repo-name-parameter:
290 repo-name: "{repo-stream-part}.{repo-os-part}"
293 - archive-artifacts-parameter:
294 artifacts: '{archive-artifacts}'
297 - gerrit-trigger-scm:
298 credentials-id: "jenkins-gerrit-credentials"
299 refspec: "$GERRIT_REFSPEC"
300 choosing-strategy: "gerrit"
303 - fdio-infra-wrappers:
307 - gerrit-trigger-checkstyle:
312 - shell: !include-raw-escape:
313 - ../scripts/setup_executor_env.sh
314 - shell: !include-raw-escape:
315 - include-raw-hicn-build.sh
320 rerun-unstable-builds: false
325 name: "hicn-merge-{stream}-{os}-{executor-arch}"
327 project-type: freestyle
328 node: "builder-{os}-prod-{executor-arch}"
331 daysToKeep: "{build-days-to-keep}"
333 artifactDaysToKeep: "{build-artifact-days-to-keep}"
334 artifactNumToKeep: "{build-artifact-num-to-keep}"
343 - maven-project-parameter:
346 maven-version: "mvn33-new"
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}'
355 - gerrit-trigger-scm:
356 credentials-id: "jenkins-gerrit-credentials"
358 choosing-strategy: "default"
361 - fdio-infra-wrappers:
362 build-timeout: "{build-timeout}"
365 - gerrit-trigger-patch-merged:
370 - config-file-provider:
372 - file-id: ".packagecloud"
373 target: "/root/.packagecloud"
374 - config-file-provider:
376 - file-id: "packagecloud_api"
377 target: "/root/packagecloud_api"
379 maven-version: "mvn33-new"
381 settings: "hicn-settings"
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
403 rerun-unstable-builds: false
411 mvn-settings: hicn-settings
413 sonarcloud-project-organization: "{sonarcloud_project_organization}"
414 sonarcloud-api-token: "{sonarcloud_api_token}"
415 sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
417 build-node: centos7-docker-2c-2g
422 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
424 project-type: freestyle
425 node: "builder-{os}-prod-{executor-arch}"
429 daysToKeep: "{build-days-to-keep}"
431 artifactDaysToKeep: "{build-artifact-days-to-keep}"
432 artifactNumToKeep: "{build-artifact-num-to-keep}"
441 - repo-name-parameter:
442 repo-name: "{repo-stream-part}.{repo-os-part}"
445 - archive-artifacts-parameter:
446 artifacts: '{archive-artifacts}'
449 - gerrit-trigger-scm:
450 credentials-id: "jenkins-gerrit-credentials"
451 refspec: "$GERRIT_REFSPEC"
452 choosing-strategy: "gerrit"
455 - fdio-infra-wrappers:
460 server-name: "Primary"
462 - comment-added-contains-event:
463 comment-contains-value: "verify-extras"
465 - project-compare-type: "ANT"
466 project-pattern: "{project}"
468 - branch-compare-type: "ANT"
469 branch-pattern: "**/{branch}"
472 - shell: !include-raw-escape:
473 - ../scripts/setup_executor_env.sh
474 - shell: !include-raw-escape:
475 - include-raw-hicn-extras-build.sh
480 rerun-unstable-builds: false
485 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
487 project-type: freestyle
488 node: "builder-{os}-prod-{executor-arch}"
491 daysToKeep: "{build-days-to-keep}"
493 artifactDaysToKeep: "{build-artifact-days-to-keep}"
494 artifactNumToKeep: "{build-artifact-num-to-keep}"
503 - maven-project-parameter:
506 maven-version: "mvn33-new"
509 - repo-name-parameter:
510 repo-name: "{repo-stream-part}.{repo-os-part}"
511 - archive-artifacts-parameter:
512 artifacts: '{archive-artifacts}'
515 - gerrit-trigger-scm:
516 credentials-id: "jenkins-gerrit-credentials"
518 choosing-strategy: "default"
521 - fdio-infra-wrappers:
522 build-timeout: "{build-timeout}"
526 server-name: "Primary"
528 - comment-added-contains-event:
529 comment-contains-value: "build-extras"
531 - project-compare-type: "ANT"
532 project-pattern: "{project}"
534 - branch-compare-type: "ANT"
535 branch-pattern: "**/{branch}"
538 - config-file-provider:
540 - file-id: ".packagecloud"
541 target: "/root/.packagecloud"
542 - config-file-provider:
544 - file-id: "packagecloud_api"
545 target: "/root/packagecloud_api"
547 maven-version: "mvn33-new"
549 settings: "hicn-settings"
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
569 rerun-unstable-builds: false
577 - gerrit-info-yaml-verify
578 build-node: centos7-builder-2c-2g