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.
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: "ubuntu.focal.main"
28 repo-os-part: "centos7"
30 executor-arch: "x86_64"
35 repo-stream-part: "master"
36 repository-name: "hicn"
39 repo-stream-part: "stable.2005"
40 repository-name: "hicn"
49 - "hicn-verify-{stream}-{os}-{executor-arch}"
50 - "hicn-merge-{stream}-{os}-{executor-arch}"
56 repo-os-part: "ubuntu-arm.bionic.main"
58 executor-arch: "aarch64"
63 repo-stream-part: "master"
64 repository-name: "hicn"
67 repo-stream-part: "stable.2005"
68 repository-name: "hicn"
75 name: hicn-beta-x86_64
77 - "hicn-verify-{stream}-{os}-{executor-arch}"
82 repo-os-part: "ubuntu.bionic.main"
84 repo-os-part: "ubuntu.focal.main"
86 repo-os-part: "centos7"
88 executor-arch: "x86_64"
92 branch: "hicn-light-ng"
93 repo-stream-part: "hicn-light-ng"
100 name: hicn-beta-aarch64
102 - "hicn-verify-{stream}-{os}-{executor-arch}"
107 repo-os-part: "ubuntu-arm.bionic.main"
109 executor-arch: "aarch64"
113 branch: "hicn-light-ng"
114 repo-stream-part: "hicn-light-ng"
123 - "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
128 repo-stream-part: "master"
130 branch: "hicn-light-ng"
131 repo-stream-part: "hicn-light-ng"
134 repo-os-part: "ubuntu.focal.main"
135 executor-arch: "x86_64"
138 name: hicn-extras-x86_64
140 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
141 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
145 repo-os-part: "ubuntu.bionic.main"
147 repo-os-part: "ubuntu.focal.main"
149 repo-os-part: "centos7"
151 executor-arch: "x86_64"
156 repo-stream-part: "master"
163 name: hicn-extras-aarch64
165 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
166 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
171 repo-os-part: "ubuntu-arm.bionic.main"
173 executor-arch: "aarch64"
178 repo-stream-part: "master"
191 name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
193 project-type: freestyle
194 node: "builder-{os}-prod-{executor-arch}"
196 archive-artifacts: "**/tmp/hicn-failed-unittests/*/* **/core"
199 daysToKeep: "{build-days-to-keep}"
200 numToKeep: "{build-num-to-keep}"
201 artifactDaysToKeep: "{build-artifact-days-to-keep}"
202 artifactNumToKeep: "{build-artifact-num-to-keep}"
211 - repo-name-parameter:
212 repo-name: "{repo-stream-part}.ubuntu.bionic.main"
213 - workspace-archive-artifacts-parameter:
214 artifacts: '{archive-artifacts}'
217 - gerrit-trigger-scm:
218 credentials-id: "jenkins-gerrit-credentials"
219 refspec: "$GERRIT_REFSPEC"
220 choosing-strategy: "gerrit"
223 - fdio-infra-wrappers:
224 build-timeout: "{build-timeout}"
228 server-name: "Primary"
230 - patchset-created-event:
231 exclude-drafts: "true"
232 exclude-trivial-rebase: "false"
233 exclude-no-code-change: "true"
234 - draft-published-event
235 - comment-added-contains-event:
236 comment-contains-value: "checkstylecheck"
237 - comment-added-contains-event:
238 comment-contains-value: "docsonly"
239 - comment-added-contains-event:
240 comment-contains-value: "recheck"
241 - comment-added-contains-event:
242 comment-contains-value: "reverify"
244 - project-compare-type: "ANT"
245 project-pattern: "{project}"
247 - branch-compare-type: "ANT"
248 branch-pattern: "**/{branch}"
250 - compare-type: REG_EXP
251 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
252 disable-strict-forbidden-file-verification: "true"
254 gerrit-build-notbuilt-verified-value: 0
255 gerrit-build-successful-verified-value: 1
256 # yamllint disable-line rule:line-length
257 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
258 # yamllint disable-line rule:line-length
259 failed-message: "Checkstyle failed. No further verify jobs will be started."
260 successful-message: "checkstyle_success"
268 - shell: !include-raw-escape:
269 include-raw-hicn-checkstyle.sh
274 rerun-unstable-builds: true
279 name: "hicn-verify-{stream}-{os}-{executor-arch}"
281 project-type: freestyle
282 node: "builder-{os}-prod-{executor-arch}"
286 daysToKeep: "{build-days-to-keep}"
288 artifactDaysToKeep: "{build-artifact-days-to-keep}"
289 artifactNumToKeep: "{build-artifact-num-to-keep}"
298 - repo-name-parameter:
299 repo-name: "{repo-stream-part}.{repo-os-part}"
302 - workspace-archive-artifacts-parameter:
303 artifacts: '{archive-artifacts}'
306 - gerrit-trigger-scm:
307 credentials-id: "jenkins-gerrit-credentials"
308 refspec: "$GERRIT_REFSPEC"
309 choosing-strategy: "gerrit"
312 - fdio-infra-wrappers:
316 - gerrit-trigger-checkstyle:
321 - shell: !include-raw-escape:
322 - include-raw-hicn-build.sh
327 rerun-unstable-builds: false
332 name: "hicn-merge-{stream}-{os}-{executor-arch}"
334 project-type: freestyle
335 node: "builder-{os}-prod-{executor-arch}"
338 daysToKeep: "{build-days-to-keep}"
340 artifactDaysToKeep: "{build-artifact-days-to-keep}"
341 artifactNumToKeep: "{build-artifact-num-to-keep}"
350 - maven-project-parameter:
353 maven-version: "mvn33-new"
355 stream: "{repository-name}"
356 - repo-name-parameter:
357 repo-name: "{repo-stream-part}.{repo-os-part}"
358 - workspace-archive-artifacts-parameter:
359 artifacts: '{archive-artifacts}'
362 - gerrit-trigger-scm:
363 credentials-id: "jenkins-gerrit-credentials"
365 choosing-strategy: "default"
368 - fdio-infra-wrappers:
369 build-timeout: "{build-timeout}"
372 - gerrit-trigger-patch-merged:
377 - config-file-provider:
379 - file-id: ".packagecloud"
380 target: "/root/.packagecloud"
381 - config-file-provider:
383 - file-id: "packagecloud_api"
384 target: "/root/packagecloud_api"
386 maven-version: "mvn33-new"
388 settings: "hicn-settings"
390 global-settings: "global-settings"
391 global-settings-type: cfp
392 - shell: !include-raw-escape:
393 - include-raw-hicn-checkstyle.sh
394 - shell: !include-raw-escape:
395 - include-raw-hicn-build.sh
396 - provide-maven-settings:
397 settings-file: "hicn-settings"
398 global-settings-file: "global-settings"
399 - shell: !include-raw-escape:
400 - ../scripts/packagecloud_push.sh
401 - shell: !include-raw-escape:
402 - ../scripts/maven_push_functions.sh
403 - include-raw-hicn-maven-push.sh
408 rerun-unstable-builds: false
416 mvn-settings: hicn-settings
418 sonarcloud-project-organization: "{sonarcloud_project_organization}"
419 sonarcloud-api-token: "{sonarcloud_api_token}"
420 sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
422 build-node: centos7-docker-2c-2g
427 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
429 project-type: freestyle
430 node: "builder-{os}-prod-{executor-arch}"
434 daysToKeep: "{build-days-to-keep}"
436 artifactDaysToKeep: "{build-artifact-days-to-keep}"
437 artifactNumToKeep: "{build-artifact-num-to-keep}"
446 - repo-name-parameter:
447 repo-name: "{repo-stream-part}.{repo-os-part}"
450 - workspace-archive-artifacts-parameter:
451 artifacts: '{archive-artifacts}'
454 - gerrit-trigger-scm:
455 credentials-id: "jenkins-gerrit-credentials"
456 refspec: "$GERRIT_REFSPEC"
457 choosing-strategy: "gerrit"
460 - fdio-infra-wrappers:
465 server-name: "Primary"
467 - comment-added-contains-event:
468 comment-contains-value: "verify-extras"
470 - project-compare-type: "ANT"
471 project-pattern: "{project}"
473 - branch-compare-type: "ANT"
474 branch-pattern: "**/{branch}"
477 - shell: !include-raw-escape:
478 - include-raw-hicn-extras-build.sh
483 rerun-unstable-builds: false
488 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
490 project-type: freestyle
491 node: "builder-{os}-prod-{executor-arch}"
494 daysToKeep: "{build-days-to-keep}"
496 artifactDaysToKeep: "{build-artifact-days-to-keep}"
497 artifactNumToKeep: "{build-artifact-num-to-keep}"
506 - maven-project-parameter:
509 maven-version: "mvn33-new"
512 - repo-name-parameter:
513 repo-name: "{repo-stream-part}.{repo-os-part}"
514 - workspace-archive-artifacts-parameter:
515 artifacts: '{archive-artifacts}'
518 - gerrit-trigger-scm:
519 credentials-id: "jenkins-gerrit-credentials"
521 choosing-strategy: "default"
524 - fdio-infra-wrappers:
525 build-timeout: "{build-timeout}"
529 server-name: "Primary"
531 - comment-added-contains-event:
532 comment-contains-value: "build-extras"
534 - project-compare-type: "ANT"
535 project-pattern: "{project}"
537 - branch-compare-type: "ANT"
538 branch-pattern: "**/{branch}"
541 - config-file-provider:
543 - file-id: ".packagecloud"
544 target: "/root/.packagecloud"
545 - config-file-provider:
547 - file-id: "packagecloud_api"
548 target: "/root/packagecloud_api"
550 maven-version: "mvn33-new"
552 settings: "hicn-settings"
554 global-settings: "global-settings"
555 global-settings-type: cfp
556 - shell: !include-raw-escape:
557 - include-raw-hicn-extras-build.sh
558 - provide-maven-settings:
559 settings-file: "hicn-settings"
560 global-settings-file: "global-settings"
561 - shell: !include-raw-escape:
562 - ../scripts/packagecloud_push.sh
563 - shell: !include-raw-escape:
564 - ../scripts/maven_push_functions.sh
565 - include-raw-hicn-maven-push.sh
570 rerun-unstable-builds: false
578 - gerrit-info-yaml-verify
579 build-node: centos7-builder-2c-2g