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: "centos7-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
364 name: "hicn-merge-{stream}-{os}-{executor-arch}"
366 project-type: freestyle
367 node: "builder-{os}-prod-{executor-arch}"
370 - lf-infra-properties:
371 build-days-to-keep: "{build-days-to-keep}"
384 - gerrit-trigger-scm:
385 credentials-id: "jenkins-gerrit-credentials"
387 choosing-strategy: "default"
390 - fdio-infra-wrappers:
391 build-timeout: "{build-timeout}"
394 - gerrit-trigger-patch-merged:
399 - config-file-provider:
401 - file-id: ".packagecloud"
402 target: "/root/.packagecloud"
403 - config-file-provider:
405 - file-id: "packagecloud_api"
406 target: "/root/packagecloud_api"
407 - shell: !include-raw-escape:
408 - ../scripts/setup_executor_env.sh
409 - shell: !include-raw-escape:
410 - ../scripts/hicn/checkstyle.sh
411 - shell: !include-raw-escape:
412 - ../scripts/hicn/build.sh
413 - shell: !include-raw-escape:
414 - ../scripts/packagecloud_push.sh
419 thresholdmode: 'percent'
425 pattern: "**/reports/*report.xml"
428 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
430 project-type: freestyle
431 node: "builder-{os}-prod-{executor-arch}"
435 - lf-infra-properties:
436 build-days-to-keep: "{build-days-to-keep}"
449 - gerrit-trigger-scm:
450 credentials-id: "jenkins-gerrit-credentials"
451 refspec: "$GERRIT_REFSPEC"
452 choosing-strategy: "gerrit"
455 - fdio-infra-wrappers:
460 server-name: "Primary"
462 - comment-added-contains-event:
463 comment-contains-value: "verify-extras"
465 - project-compare-type: "ANT"
466 project-pattern: "{project}"
468 - branch-compare-type: "ANT"
469 branch-pattern: "**/{branch}"
472 - shell: !include-raw-escape:
473 - ../scripts/setup_executor_env.sh
474 - shell: !include-raw-escape:
475 - ../scripts/hicn/build-extras.sh
481 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
483 project-type: freestyle
484 node: "builder-{os}-prod-{executor-arch}"
487 - lf-infra-properties:
488 build-days-to-keep: "{build-days-to-keep}"
501 - gerrit-trigger-scm:
502 credentials-id: "jenkins-gerrit-credentials"
504 choosing-strategy: "default"
507 - fdio-infra-wrappers:
508 build-timeout: "{build-timeout}"
512 server-name: "Primary"
514 - comment-added-contains-event:
515 comment-contains-value: "build-extras"
517 - project-compare-type: "ANT"
518 project-pattern: "{project}"
520 - branch-compare-type: "ANT"
521 branch-pattern: "**/{branch}"
524 - config-file-provider:
526 - file-id: ".packagecloud"
527 target: "/root/.packagecloud"
528 - config-file-provider:
530 - file-id: "packagecloud_api"
531 target: "/root/packagecloud_api"
532 - shell: !include-raw-escape:
533 - ../scripts/setup_executor_env.sh
534 - shell: !include-raw-escape:
535 - ../scripts/hicn/build-extras.sh
536 - shell: !include-raw-escape:
537 - ../scripts/packagecloud_push.sh
543 name: "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
545 project-type: freestyle
546 node: "builder-{os}-prod-{executor-arch}"
550 - lf-infra-properties:
551 build-days-to-keep: "{build-days-to-keep}"
564 - gerrit-trigger-scm:
565 credentials-id: "jenkins-gerrit-credentials"
566 refspec: "$GERRIT_REFSPEC"
567 choosing-strategy: "gerrit"
570 - fdio-infra-wrappers:
576 - gerrit-trigger-manually-triggered:
577 comment-trigger-value: 'verify-vpp-latest'
582 - shell: !include-raw-escape:
583 - ../scripts/setup_executor_env.sh
584 - shell: !include-raw-escape:
585 - ../scripts/hicn/build-vpp-latest.sh
594 - gerrit-info-yaml-verify
595 build-node: centos7-builder-2c-2g