1 # Copyright (c) 2021 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-build-{stream}-{os}-{executor-arch}"
19 - "hicn-verify-functest-{stream}-{os}-{executor-arch}"
20 - "hicn-merge-{stream}-{os}-{executor-arch}"
23 executor-arch: "x86_64"
35 - "hicn-verify-build-{stream}-{os}-{executor-arch}"
36 - "hicn-merge-{stream}-{os}-{executor-arch}"
39 executor-arch: "aarch64"
51 - "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
61 executor-arch: "x86_64"
64 name: hicn-extras-x86_64
66 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
67 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
70 executor-arch: "x86_64"
80 name: hicn-extras-aarch64
82 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
83 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
86 executor-arch: "aarch64"
96 name: hicn-vpp-latest-x86_64
98 - "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
101 executor-arch: "x86_64"
108 name: hicn-vpp-latest-aarch64
110 - "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
113 executor-arch: "aarch64"
128 - "hicn-sonar-scanner-{stream}"
131 sonarcloud-project-organization: "{sonarcloud_project_organization}"
132 sonarcloud-api-token: "{sonarcloud_api_token}"
133 sonarcloud-project-key: "{sonarcloud_project_organization}-{project}"
139 branch: "stable/2210"
143 name: "hicn-sonar-scanner-{stream}"
145 project-type: freestyle
146 node: centos7-docker-4c-4g
158 - gerrit-trigger-scm:
159 credentials-id: "jenkins-gerrit-credentials"
161 choosing-strategy: "default"
164 - fdio-infra-wrappers:
165 build-timeout: "{build-timeout}"
168 - gerrit-trigger-patch-merged:
174 properties-content: |
175 SONAR_HOST_URL=https://sonarcloud.io
176 PROJECT_KEY={sonarcloud-project-key}
177 PROJECT_ORGANIZATION={sonarcloud-project-organization}
178 API_TOKEN={sonarcloud-api-token}
179 - shell: !include-raw-escape:
180 - ../scripts/hicn/sonar.sh
183 name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
185 project-type: freestyle
186 node: "builder-{os}-prod-{executor-arch}"
190 - lf-infra-properties:
191 build-days-to-keep: "{build-days-to-keep}"
202 - gerrit-trigger-scm:
203 credentials-id: "jenkins-gerrit-credentials"
204 refspec: "$GERRIT_REFSPEC"
205 choosing-strategy: "gerrit"
208 - fdio-infra-wrappers:
209 build-timeout: "{build-timeout}"
213 server-name: "Primary"
215 - patchset-created-event:
216 exclude-drafts: "true"
217 exclude-trivial-rebase: "false"
218 exclude-no-code-change: "true"
219 - draft-published-event
220 - comment-added-contains-event:
221 comment-contains-value: "checkstylecheck"
222 - comment-added-contains-event:
223 comment-contains-value: "docsonly"
224 - comment-added-contains-event:
225 comment-contains-value: "recheck"
226 - comment-added-contains-event:
227 comment-contains-value: "reverify"
229 - project-compare-type: "ANT"
230 project-pattern: "{project}"
232 - branch-compare-type: "ANT"
233 branch-pattern: "**/{branch}"
235 - compare-type: REG_EXP
236 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
237 disable-strict-forbidden-file-verification: "true"
239 gerrit-build-notbuilt-verified-value: 0
240 gerrit-build-successful-verified-value: 1
241 # yamllint disable-line rule:line-length
242 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
243 # yamllint disable-line rule:line-length
244 failed-message: "Checkstyle failed. No further verify jobs will be started."
245 successful-message: "checkstyle_success"
253 - shell: !include-raw-escape:
254 - ../scripts/setup_executor_env.sh
255 - shell: !include-raw-escape:
256 - ../scripts/hicn/checkstyle.sh
261 rerun-unstable-builds: true
266 name: "hicn-verify-build-{stream}-{os}-{executor-arch}"
268 project-type: freestyle
269 node: "builder-{os}-prod-{executor-arch}"
273 - lf-infra-properties:
274 build-days-to-keep: "{build-days-to-keep}"
287 - gerrit-trigger-scm:
288 credentials-id: "jenkins-gerrit-credentials"
289 refspec: "$GERRIT_REFSPEC"
290 choosing-strategy: "gerrit"
293 - fdio-infra-wrappers:
298 server-name: "Primary"
300 - comment-added-contains-event:
301 comment-contains-value: "checkstyle_success"
303 - project-compare-type: "ANT"
304 project-pattern: "{project}"
306 - branch-compare-type: "ANT"
307 branch-pattern: "**/{branch}"
308 # yamllint disable-line rule:line-length
309 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
310 # yamllint disable-line rule:line-length
311 failed-message: "Build failed. No further verify jobs will be started."
312 successful-message: "build_success-{stream}-{os}-{executor-arch}"
319 gerrit-build-successful-verified-value: 1
320 gerrit-build-failed-verified-value: 1
321 gerrit-build-unstable-verified-value: 1
322 gerrit-build-notbuilt-verified-value: 1
325 - shell: !include-raw-escape:
326 - ../scripts/setup_executor_env.sh
327 - shell: !include-raw-escape:
328 - ../scripts/hicn/build.sh
333 artifacts: "packages/*.deb, packages/*.rpm"
335 thresholdmode: "percent"
341 pattern: "**/reports/*report.xml"
344 name: "hicn-verify-functest-{stream}-{os}-{executor-arch}"
346 project-type: freestyle
347 node: "ubuntu2004-docker-4c-4g"
351 - lf-infra-properties:
352 build-days-to-keep: "{build-days-to-keep}"
365 - gerrit-trigger-scm:
366 credentials-id: "jenkins-gerrit-credentials"
367 refspec: "$GERRIT_REFSPEC"
368 choosing-strategy: "gerrit"
371 - fdio-infra-wrappers:
375 - gerrit-trigger-build:
380 executor-arch: "{executor-arch}"
383 - shell: !include-raw-escape:
384 - ../scripts/hicn/functest.sh
394 name: "hicn-merge-{stream}-{os}-{executor-arch}"
396 project-type: freestyle
397 node: "builder-{os}-prod-{executor-arch}"
400 - lf-infra-properties:
401 build-days-to-keep: "{build-days-to-keep}"
414 - gerrit-trigger-scm:
415 credentials-id: "jenkins-gerrit-credentials"
417 choosing-strategy: "default"
420 - fdio-infra-wrappers:
421 build-timeout: "{build-timeout}"
424 - gerrit-trigger-patch-merged:
429 - config-file-provider:
431 - file-id: ".packagecloud"
432 target: "/root/.packagecloud"
433 - config-file-provider:
435 - file-id: "packagecloud_api"
436 target: "/root/packagecloud_api"
437 - shell: !include-raw-escape:
438 - ../scripts/setup_executor_env.sh
439 - shell: !include-raw-escape:
440 - ../scripts/hicn/checkstyle.sh
441 - shell: !include-raw-escape:
442 - ../scripts/hicn/build.sh
443 - shell: !include-raw-escape:
444 - ../scripts/packagecloud_push.sh
449 thresholdmode: "percent"
455 pattern: "**/reports/*report.xml"
458 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
460 project-type: freestyle
461 node: "builder-{os}-prod-{executor-arch}"
465 - lf-infra-properties:
466 build-days-to-keep: "{build-days-to-keep}"
479 - gerrit-trigger-scm:
480 credentials-id: "jenkins-gerrit-credentials"
481 refspec: "$GERRIT_REFSPEC"
482 choosing-strategy: "gerrit"
485 - fdio-infra-wrappers:
490 server-name: "Primary"
492 - comment-added-contains-event:
493 comment-contains-value: "verify-extras"
495 - project-compare-type: "ANT"
496 project-pattern: "{project}"
498 - branch-compare-type: "ANT"
499 branch-pattern: "**/{branch}"
502 - shell: !include-raw-escape:
503 - ../scripts/setup_executor_env.sh
504 - shell: !include-raw-escape:
505 - ../scripts/hicn/build-extras.sh
511 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
513 project-type: freestyle
514 node: "builder-{os}-prod-{executor-arch}"
517 - lf-infra-properties:
518 build-days-to-keep: "{build-days-to-keep}"
531 - gerrit-trigger-scm:
532 credentials-id: "jenkins-gerrit-credentials"
534 choosing-strategy: "default"
537 - fdio-infra-wrappers:
538 build-timeout: "{build-timeout}"
542 server-name: "Primary"
544 - comment-added-contains-event:
545 comment-contains-value: "build-extras"
547 - project-compare-type: "ANT"
548 project-pattern: "{project}"
550 - branch-compare-type: "ANT"
551 branch-pattern: "**/{branch}"
554 - config-file-provider:
556 - file-id: ".packagecloud"
557 target: "/root/.packagecloud"
558 - config-file-provider:
560 - file-id: "packagecloud_api"
561 target: "/root/packagecloud_api"
562 - shell: !include-raw-escape:
563 - ../scripts/setup_executor_env.sh
564 - shell: !include-raw-escape:
565 - ../scripts/hicn/build-extras.sh
566 - shell: !include-raw-escape:
567 - ../scripts/packagecloud_push.sh
573 name: "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
575 project-type: freestyle
576 node: "builder-{os}-prod-{executor-arch}"
580 - lf-infra-properties:
581 build-days-to-keep: "{build-days-to-keep}"
594 - gerrit-trigger-scm:
595 credentials-id: "jenkins-gerrit-credentials"
596 refspec: "$GERRIT_REFSPEC"
597 choosing-strategy: "gerrit"
600 - fdio-infra-wrappers:
605 - gerrit-trigger-manually-triggered:
606 comment-trigger-value: "verify-vpp-latest"
611 - shell: !include-raw-escape:
612 - ../scripts/setup_executor_env.sh
613 - shell: !include-raw-escape:
614 - ../scripts/hicn/build-vpp-latest.sh
623 - gerrit-info-yaml-verify
624 build-node: centos7-builder-2c-2g