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.2101"
61 repository-name: "hicn"
64 repo-stream-part: "stable.2009"
65 repository-name: "hicn"
68 repo-stream-part: "stable.2005"
69 repository-name: "hicn"
74 - "hicn-verify-{stream}-{os}-{executor-arch}"
75 - "hicn-merge-{stream}-{os}-{executor-arch}"
81 repo-os-part: "ubuntu-arm.focal.main"
83 executor-arch: "aarch64"
88 repo-stream-part: "master"
89 repository-name: "hicn"
92 name: hicn-beta-x86_64
94 - "hicn-verify-{stream}-{os}-{executor-arch}"
99 repo-os-part: "ubuntu.focal.main"
101 executor-arch: "x86_64"
105 branch: "hicn-light-ng"
106 repo-stream-part: "hicn-light-ng"
109 name: hicn-beta-aarch64
111 - "hicn-verify-{stream}-{os}-{executor-arch}"
116 repo-os-part: "ubuntu-arm.focal.main"
118 executor-arch: "aarch64"
122 branch: "hicn-light-ng"
123 repo-stream-part: "hicn-light-ng"
128 - "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
133 repo-stream-part: "master"
135 branch: "hicn-light-ng"
136 repo-stream-part: "hicn-light-ng"
139 repo-os-part: "ubuntu.focal.main"
140 executor-arch: "x86_64"
143 name: hicn-extras-x86_64
145 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
146 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
150 repo-os-part: "ubuntu.focal.main"
152 executor-arch: "x86_64"
157 repo-stream-part: "master"
160 name: hicn-extras-aarch64
162 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
163 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
168 repo-os-part: "ubuntu-arm.focal.main"
170 executor-arch: "aarch64"
175 repo-stream-part: "master"
184 name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
186 project-type: freestyle
187 node: "builder-{os}-prod-{executor-arch}"
189 archive-artifacts: "**/tmp/hicn-failed-unittests/*/* **/core"
192 daysToKeep: "{build-days-to-keep}"
193 numToKeep: "{build-num-to-keep}"
194 artifactDaysToKeep: "{build-artifact-days-to-keep}"
195 artifactNumToKeep: "{build-artifact-num-to-keep}"
204 - repo-name-parameter:
205 repo-name: "{repo-stream-part}.ubuntu.bionic.main"
206 - archive-artifacts-parameter:
207 artifacts: '{archive-artifacts}'
210 - gerrit-trigger-scm:
211 credentials-id: "jenkins-gerrit-credentials"
212 refspec: "$GERRIT_REFSPEC"
213 choosing-strategy: "gerrit"
216 - fdio-infra-wrappers:
217 build-timeout: "{build-timeout}"
221 server-name: "Primary"
223 - patchset-created-event:
224 exclude-drafts: "true"
225 exclude-trivial-rebase: "false"
226 exclude-no-code-change: "true"
227 - draft-published-event
228 - comment-added-contains-event:
229 comment-contains-value: "checkstylecheck"
230 - comment-added-contains-event:
231 comment-contains-value: "docsonly"
232 - comment-added-contains-event:
233 comment-contains-value: "recheck"
234 - comment-added-contains-event:
235 comment-contains-value: "reverify"
237 - project-compare-type: "ANT"
238 project-pattern: "{project}"
240 - branch-compare-type: "ANT"
241 branch-pattern: "**/{branch}"
243 - compare-type: REG_EXP
244 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
245 disable-strict-forbidden-file-verification: "true"
247 gerrit-build-notbuilt-verified-value: 0
248 gerrit-build-successful-verified-value: 1
249 # yamllint disable-line rule:line-length
250 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
251 # yamllint disable-line rule:line-length
252 failed-message: "Checkstyle failed. No further verify jobs will be started."
253 successful-message: "checkstyle_success"
261 - shell: !include-raw-escape:
262 - ../scripts/setup_executor_env.sh
263 - shell: !include-raw-escape:
264 - include-raw-hicn-checkstyle.sh
269 rerun-unstable-builds: true
274 name: "hicn-verify-{stream}-{os}-{executor-arch}"
276 project-type: freestyle
277 node: "builder-{os}-prod-{executor-arch}"
281 daysToKeep: "{build-days-to-keep}"
283 artifactDaysToKeep: "{build-artifact-days-to-keep}"
284 artifactNumToKeep: "{build-artifact-num-to-keep}"
293 - repo-name-parameter:
294 repo-name: "{repo-stream-part}.{repo-os-part}"
297 - archive-artifacts-parameter:
298 artifacts: '{archive-artifacts}'
301 - gerrit-trigger-scm:
302 credentials-id: "jenkins-gerrit-credentials"
303 refspec: "$GERRIT_REFSPEC"
304 choosing-strategy: "gerrit"
307 - fdio-infra-wrappers:
311 - gerrit-trigger-checkstyle:
316 - shell: !include-raw-escape:
317 - ../scripts/setup_executor_env.sh
318 - shell: !include-raw-escape:
319 - include-raw-hicn-build.sh
324 rerun-unstable-builds: false
329 name: "hicn-merge-{stream}-{os}-{executor-arch}"
331 project-type: freestyle
332 node: "builder-{os}-prod-{executor-arch}"
335 daysToKeep: "{build-days-to-keep}"
337 artifactDaysToKeep: "{build-artifact-days-to-keep}"
338 artifactNumToKeep: "{build-artifact-num-to-keep}"
347 - maven-project-parameter:
350 maven-version: "mvn33-new"
352 stream: "{repository-name}"
353 - repo-name-parameter:
354 repo-name: "{repo-stream-part}.{repo-os-part}"
355 - archive-artifacts-parameter:
356 artifacts: '{archive-artifacts}'
359 - gerrit-trigger-scm:
360 credentials-id: "jenkins-gerrit-credentials"
362 choosing-strategy: "default"
365 - fdio-infra-wrappers:
366 build-timeout: "{build-timeout}"
369 - gerrit-trigger-patch-merged:
374 - config-file-provider:
376 - file-id: ".packagecloud"
377 target: "/root/.packagecloud"
378 - config-file-provider:
380 - file-id: "packagecloud_api"
381 target: "/root/packagecloud_api"
383 maven-version: "mvn33-new"
385 settings: "hicn-settings"
387 global-settings: "global-settings"
388 global-settings-type: cfp
389 - shell: !include-raw-escape:
390 - ../scripts/setup_executor_env.sh
391 - shell: !include-raw-escape:
392 - include-raw-hicn-checkstyle.sh
393 - shell: !include-raw-escape:
394 - include-raw-hicn-build.sh
395 - provide-maven-settings:
396 settings-file: "hicn-settings"
397 global-settings-file: "global-settings"
398 - shell: !include-raw-escape:
399 - ../scripts/packagecloud_push.sh
400 - shell: !include-raw-escape:
401 - ../scripts/maven_push_functions.sh
402 - include-raw-hicn-maven-push.sh
407 rerun-unstable-builds: false
415 mvn-settings: hicn-settings
417 sonarcloud-project-organization: "{sonarcloud_project_organization}"
418 sonarcloud-api-token: "{sonarcloud_api_token}"
419 sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
421 build-node: centos7-docker-2c-2g
426 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
428 project-type: freestyle
429 node: "builder-{os}-prod-{executor-arch}"
433 daysToKeep: "{build-days-to-keep}"
435 artifactDaysToKeep: "{build-artifact-days-to-keep}"
436 artifactNumToKeep: "{build-artifact-num-to-keep}"
445 - repo-name-parameter:
446 repo-name: "{repo-stream-part}.{repo-os-part}"
449 - archive-artifacts-parameter:
450 artifacts: '{archive-artifacts}'
453 - gerrit-trigger-scm:
454 credentials-id: "jenkins-gerrit-credentials"
455 refspec: "$GERRIT_REFSPEC"
456 choosing-strategy: "gerrit"
459 - fdio-infra-wrappers:
464 server-name: "Primary"
466 - comment-added-contains-event:
467 comment-contains-value: "verify-extras"
469 - project-compare-type: "ANT"
470 project-pattern: "{project}"
472 - branch-compare-type: "ANT"
473 branch-pattern: "**/{branch}"
476 - shell: !include-raw-escape:
477 - ../scripts/setup_executor_env.sh
478 - shell: !include-raw-escape:
479 - include-raw-hicn-extras-build.sh
484 rerun-unstable-builds: false
489 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
491 project-type: freestyle
492 node: "builder-{os}-prod-{executor-arch}"
495 daysToKeep: "{build-days-to-keep}"
497 artifactDaysToKeep: "{build-artifact-days-to-keep}"
498 artifactNumToKeep: "{build-artifact-num-to-keep}"
507 - maven-project-parameter:
510 maven-version: "mvn33-new"
513 - repo-name-parameter:
514 repo-name: "{repo-stream-part}.{repo-os-part}"
515 - archive-artifacts-parameter:
516 artifacts: '{archive-artifacts}'
519 - gerrit-trigger-scm:
520 credentials-id: "jenkins-gerrit-credentials"
522 choosing-strategy: "default"
525 - fdio-infra-wrappers:
526 build-timeout: "{build-timeout}"
530 server-name: "Primary"
532 - comment-added-contains-event:
533 comment-contains-value: "build-extras"
535 - project-compare-type: "ANT"
536 project-pattern: "{project}"
538 - branch-compare-type: "ANT"
539 branch-pattern: "**/{branch}"
542 - config-file-provider:
544 - file-id: ".packagecloud"
545 target: "/root/.packagecloud"
546 - config-file-provider:
548 - file-id: "packagecloud_api"
549 target: "/root/packagecloud_api"
551 maven-version: "mvn33-new"
553 settings: "hicn-settings"
555 global-settings: "global-settings"
556 global-settings-type: cfp
557 - shell: !include-raw-escape:
558 - ../scripts/setup_executor_env.sh
559 - shell: !include-raw-escape:
560 - include-raw-hicn-extras-build.sh
561 - provide-maven-settings:
562 settings-file: "hicn-settings"
563 global-settings-file: "global-settings"
564 - shell: !include-raw-escape:
565 - ../scripts/packagecloud_push.sh
566 - shell: !include-raw-escape:
567 - ../scripts/maven_push_functions.sh
568 - include-raw-hicn-maven-push.sh
573 rerun-unstable-builds: false
581 - gerrit-info-yaml-verify
582 build-node: centos7-builder-2c-2g