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"
308 name: "hicn-verify-functest-{stream}-{os}-{executor-arch}"
310 project-type: freestyle
311 node: "centos7-docker-4c-4g"
315 - lf-infra-properties:
316 build-days-to-keep: "{build-days-to-keep}"
329 - gerrit-trigger-scm:
330 credentials-id: "jenkins-gerrit-credentials"
331 refspec: "$GERRIT_REFSPEC"
332 choosing-strategy: "gerrit"
335 - fdio-infra-wrappers:
339 - gerrit-trigger-build:
344 executor-arch: "{executor-arch}"
347 - shell: !include-raw-escape:
348 - ../scripts/hicn/functest.sh
355 name: "hicn-merge-{stream}-{os}-{executor-arch}"
357 project-type: freestyle
358 node: "builder-{os}-prod-{executor-arch}"
361 - lf-infra-properties:
362 build-days-to-keep: "{build-days-to-keep}"
375 - gerrit-trigger-scm:
376 credentials-id: "jenkins-gerrit-credentials"
378 choosing-strategy: "default"
381 - fdio-infra-wrappers:
382 build-timeout: "{build-timeout}"
385 - gerrit-trigger-patch-merged:
390 - config-file-provider:
392 - file-id: ".packagecloud"
393 target: "/root/.packagecloud"
394 - config-file-provider:
396 - file-id: "packagecloud_api"
397 target: "/root/packagecloud_api"
398 - shell: !include-raw-escape:
399 - ../scripts/setup_executor_env.sh
400 - shell: !include-raw-escape:
401 - ../scripts/hicn/checkstyle.sh
402 - shell: !include-raw-escape:
403 - ../scripts/hicn/build.sh
404 - shell: !include-raw-escape:
405 - ../scripts/packagecloud_push.sh
411 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
413 project-type: freestyle
414 node: "builder-{os}-prod-{executor-arch}"
418 - lf-infra-properties:
419 build-days-to-keep: "{build-days-to-keep}"
432 - gerrit-trigger-scm:
433 credentials-id: "jenkins-gerrit-credentials"
434 refspec: "$GERRIT_REFSPEC"
435 choosing-strategy: "gerrit"
438 - fdio-infra-wrappers:
443 server-name: "Primary"
445 - comment-added-contains-event:
446 comment-contains-value: "verify-extras"
448 - project-compare-type: "ANT"
449 project-pattern: "{project}"
451 - branch-compare-type: "ANT"
452 branch-pattern: "**/{branch}"
455 - shell: !include-raw-escape:
456 - ../scripts/setup_executor_env.sh
457 - shell: !include-raw-escape:
458 - ../scripts/hicn/build-extras.sh
464 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
466 project-type: freestyle
467 node: "builder-{os}-prod-{executor-arch}"
470 - lf-infra-properties:
471 build-days-to-keep: "{build-days-to-keep}"
484 - gerrit-trigger-scm:
485 credentials-id: "jenkins-gerrit-credentials"
487 choosing-strategy: "default"
490 - fdio-infra-wrappers:
491 build-timeout: "{build-timeout}"
495 server-name: "Primary"
497 - comment-added-contains-event:
498 comment-contains-value: "build-extras"
500 - project-compare-type: "ANT"
501 project-pattern: "{project}"
503 - branch-compare-type: "ANT"
504 branch-pattern: "**/{branch}"
507 - config-file-provider:
509 - file-id: ".packagecloud"
510 target: "/root/.packagecloud"
511 - config-file-provider:
513 - file-id: "packagecloud_api"
514 target: "/root/packagecloud_api"
515 - shell: !include-raw-escape:
516 - ../scripts/setup_executor_env.sh
517 - shell: !include-raw-escape:
518 - ../scripts/hicn/build-extras.sh
519 - shell: !include-raw-escape:
520 - ../scripts/packagecloud_push.sh
526 name: "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
528 project-type: freestyle
529 node: "builder-{os}-prod-{executor-arch}"
533 - lf-infra-properties:
534 build-days-to-keep: "{build-days-to-keep}"
547 - gerrit-trigger-scm:
548 credentials-id: "jenkins-gerrit-credentials"
549 refspec: "$GERRIT_REFSPEC"
550 choosing-strategy: "gerrit"
553 - fdio-infra-wrappers:
559 - gerrit-trigger-manually-triggered:
560 comment-trigger-value: 'verify-vpp-latest'
565 - shell: !include-raw-escape:
566 - ../scripts/setup_executor_env.sh
567 - shell: !include-raw-escape:
568 - ../scripts/hicn/build-vpp-latest.sh
577 - gerrit-info-yaml-verify
578 build-node: centos7-builder-2c-2g