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"
31 - "hicn-verify-build-{stream}-{os}-{executor-arch}"
32 - "hicn-merge-{stream}-{os}-{executor-arch}"
35 executor-arch: "aarch64"
43 - "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
49 executor-arch: "x86_64"
52 name: hicn-extras-x86_64
54 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
55 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
58 executor-arch: "x86_64"
64 name: hicn-extras-aarch64
66 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
67 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
70 executor-arch: "aarch64"
76 name: hicn-vpp-latest-x86_64
78 - "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
81 executor-arch: "x86_64"
87 name: hicn-vpp-latest-aarch64
89 - "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
92 executor-arch: "aarch64"
109 sonarcloud-project-organization: "{sonarcloud_project_organization}"
110 sonarcloud-api-token: "{sonarcloud_api_token}"
111 sonarcloud-project-key: "{sonarcloud_project_organization}-{project}"
117 name: hicn-sonar-scanner
119 project-type: freestyle
120 node: centos7-docker-4c-4g
132 - gerrit-trigger-scm:
133 credentials-id: "jenkins-gerrit-credentials"
135 choosing-strategy: "default"
138 - fdio-infra-wrappers:
139 build-timeout: "{build-timeout}"
142 - gerrit-trigger-patch-merged:
148 properties-content: |
149 SONAR_HOST_URL=https://sonarcloud.io
150 PROJECT_KEY={sonarcloud-project-key}
151 PROJECT_ORGANIZATION={sonarcloud-project-organization}
152 API_TOKEN={sonarcloud-api-token}
153 - shell: !include-raw-escape:
154 - ../scripts/hicn/sonar.sh
157 name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
159 project-type: freestyle
160 node: "builder-{os}-prod-{executor-arch}"
164 - lf-infra-properties:
165 build-days-to-keep: "{build-days-to-keep}"
176 - gerrit-trigger-scm:
177 credentials-id: "jenkins-gerrit-credentials"
178 refspec: "$GERRIT_REFSPEC"
179 choosing-strategy: "gerrit"
182 - fdio-infra-wrappers:
183 build-timeout: "{build-timeout}"
187 server-name: "Primary"
189 - patchset-created-event:
190 exclude-drafts: "true"
191 exclude-trivial-rebase: "false"
192 exclude-no-code-change: "true"
193 - draft-published-event
194 - comment-added-contains-event:
195 comment-contains-value: "checkstylecheck"
196 - comment-added-contains-event:
197 comment-contains-value: "docsonly"
198 - comment-added-contains-event:
199 comment-contains-value: "recheck"
200 - comment-added-contains-event:
201 comment-contains-value: "reverify"
203 - project-compare-type: "ANT"
204 project-pattern: "{project}"
206 - branch-compare-type: "ANT"
207 branch-pattern: "**/{branch}"
209 - compare-type: REG_EXP
210 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
211 disable-strict-forbidden-file-verification: "true"
213 gerrit-build-notbuilt-verified-value: 0
214 gerrit-build-successful-verified-value: 1
215 # yamllint disable-line rule:line-length
216 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
217 # yamllint disable-line rule:line-length
218 failed-message: "Checkstyle failed. No further verify jobs will be started."
219 successful-message: "checkstyle_success"
227 - shell: !include-raw-escape:
228 - ../scripts/setup_executor_env.sh
229 - shell: !include-raw-escape:
230 - ../scripts/hicn/checkstyle.sh
235 rerun-unstable-builds: true
240 name: "hicn-verify-build-{stream}-{os}-{executor-arch}"
242 project-type: freestyle
243 node: "builder-{os}-prod-{executor-arch}"
247 - lf-infra-properties:
248 build-days-to-keep: "{build-days-to-keep}"
261 - gerrit-trigger-scm:
262 credentials-id: "jenkins-gerrit-credentials"
263 refspec: "$GERRIT_REFSPEC"
264 choosing-strategy: "gerrit"
267 - fdio-infra-wrappers:
272 server-name: "Primary"
274 - comment-added-contains-event:
275 comment-contains-value: "checkstyle_success"
277 - project-compare-type: "ANT"
278 project-pattern: "{project}"
280 - branch-compare-type: "ANT"
281 branch-pattern: "**/{branch}"
283 gerrit-build-notbuilt-verified-value: 0
284 gerrit-build-successful-verified-value: 1
285 # yamllint disable-line rule:line-length
286 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
287 # yamllint disable-line rule:line-length
288 failed-message: "Build failed. No further verify jobs will be started."
289 successful-message: "build_success-{stream}-{os}-{executor-arch}"
297 - shell: !include-raw-escape:
298 - ../scripts/setup_executor_env.sh
299 - shell: !include-raw-escape:
300 - ../scripts/hicn/build.sh
305 artifacts: "packages/*.deb, packages/*.rpm"
307 thresholdmode: 'percent'
313 pattern: "**/reports/*report.xml"
316 name: "hicn-verify-functest-{stream}-{os}-{executor-arch}"
318 project-type: freestyle
319 node: "ubuntu2004-docker-4c-4g"
323 - lf-infra-properties:
324 build-days-to-keep: "{build-days-to-keep}"
337 - gerrit-trigger-scm:
338 credentials-id: "jenkins-gerrit-credentials"
339 refspec: "$GERRIT_REFSPEC"
340 choosing-strategy: "gerrit"
343 - fdio-infra-wrappers:
347 - gerrit-trigger-build:
352 executor-arch: "{executor-arch}"
355 - shell: !include-raw-escape:
356 - ../scripts/hicn/functest.sh
366 name: "hicn-merge-{stream}-{os}-{executor-arch}"
368 project-type: freestyle
369 node: "builder-{os}-prod-{executor-arch}"
372 - lf-infra-properties:
373 build-days-to-keep: "{build-days-to-keep}"
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"
409 - shell: !include-raw-escape:
410 - ../scripts/setup_executor_env.sh
411 - shell: !include-raw-escape:
412 - ../scripts/hicn/checkstyle.sh
413 - shell: !include-raw-escape:
414 - ../scripts/hicn/build.sh
415 - shell: !include-raw-escape:
416 - ../scripts/packagecloud_push.sh
421 thresholdmode: 'percent'
427 pattern: "**/reports/*report.xml"
430 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
432 project-type: freestyle
433 node: "builder-{os}-prod-{executor-arch}"
437 - lf-infra-properties:
438 build-days-to-keep: "{build-days-to-keep}"
451 - gerrit-trigger-scm:
452 credentials-id: "jenkins-gerrit-credentials"
453 refspec: "$GERRIT_REFSPEC"
454 choosing-strategy: "gerrit"
457 - fdio-infra-wrappers:
462 server-name: "Primary"
464 - comment-added-contains-event:
465 comment-contains-value: "verify-extras"
467 - project-compare-type: "ANT"
468 project-pattern: "{project}"
470 - branch-compare-type: "ANT"
471 branch-pattern: "**/{branch}"
474 - shell: !include-raw-escape:
475 - ../scripts/setup_executor_env.sh
476 - shell: !include-raw-escape:
477 - ../scripts/hicn/build-extras.sh
483 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
485 project-type: freestyle
486 node: "builder-{os}-prod-{executor-arch}"
489 - lf-infra-properties:
490 build-days-to-keep: "{build-days-to-keep}"
503 - gerrit-trigger-scm:
504 credentials-id: "jenkins-gerrit-credentials"
506 choosing-strategy: "default"
509 - fdio-infra-wrappers:
510 build-timeout: "{build-timeout}"
514 server-name: "Primary"
516 - comment-added-contains-event:
517 comment-contains-value: "build-extras"
519 - project-compare-type: "ANT"
520 project-pattern: "{project}"
522 - branch-compare-type: "ANT"
523 branch-pattern: "**/{branch}"
526 - config-file-provider:
528 - file-id: ".packagecloud"
529 target: "/root/.packagecloud"
530 - config-file-provider:
532 - file-id: "packagecloud_api"
533 target: "/root/packagecloud_api"
534 - shell: !include-raw-escape:
535 - ../scripts/setup_executor_env.sh
536 - shell: !include-raw-escape:
537 - ../scripts/hicn/build-extras.sh
538 - shell: !include-raw-escape:
539 - ../scripts/packagecloud_push.sh
545 name: "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
547 project-type: freestyle
548 node: "builder-{os}-prod-{executor-arch}"
552 - lf-infra-properties:
553 build-days-to-keep: "{build-days-to-keep}"
566 - gerrit-trigger-scm:
567 credentials-id: "jenkins-gerrit-credentials"
568 refspec: "$GERRIT_REFSPEC"
569 choosing-strategy: "gerrit"
572 - fdio-infra-wrappers:
578 - gerrit-trigger-manually-triggered:
579 comment-trigger-value: 'verify-vpp-latest'
584 - shell: !include-raw-escape:
585 - ../scripts/setup_executor_env.sh
586 - shell: !include-raw-escape:
587 - ../scripts/hicn/build-vpp-latest.sh
596 - gerrit-info-yaml-verify
597 build-node: centos7-builder-2c-2g