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"
87 sonarcloud-project-organization: "{sonarcloud_project_organization}"
88 sonarcloud-api-token: "{sonarcloud_api_token}"
89 sonarcloud-project-key: "{sonarcloud_project_organization}-{project}"
95 name: hicn-sonar-scanner
97 project-type: freestyle
98 node: centos7-docker-4c-4g
110 - gerrit-trigger-scm:
111 credentials-id: "jenkins-gerrit-credentials"
113 choosing-strategy: "default"
116 - fdio-infra-wrappers:
117 build-timeout: "{build-timeout}"
120 - gerrit-trigger-patch-merged:
126 properties-content: |
127 SONAR_HOST_URL=https://sonarcloud.io
128 PROJECT_KEY={sonarcloud-project-key}
129 PROJECT_ORGANIZATION={sonarcloud-project-organization}
130 API_TOKEN={sonarcloud-api-token}
131 - shell: !include-raw-escape:
132 - ../scripts/hicn/sonar.sh
135 name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
137 project-type: freestyle
138 node: "builder-{os}-prod-{executor-arch}"
142 - lf-infra-properties:
143 build-days-to-keep: "{build-days-to-keep}"
154 - gerrit-trigger-scm:
155 credentials-id: "jenkins-gerrit-credentials"
156 refspec: "$GERRIT_REFSPEC"
157 choosing-strategy: "gerrit"
160 - fdio-infra-wrappers:
161 build-timeout: "{build-timeout}"
165 server-name: "Primary"
167 - patchset-created-event:
168 exclude-drafts: "true"
169 exclude-trivial-rebase: "false"
170 exclude-no-code-change: "true"
171 - draft-published-event
172 - comment-added-contains-event:
173 comment-contains-value: "checkstylecheck"
174 - comment-added-contains-event:
175 comment-contains-value: "docsonly"
176 - comment-added-contains-event:
177 comment-contains-value: "recheck"
178 - comment-added-contains-event:
179 comment-contains-value: "reverify"
181 - project-compare-type: "ANT"
182 project-pattern: "{project}"
184 - branch-compare-type: "ANT"
185 branch-pattern: "**/{branch}"
187 - compare-type: REG_EXP
188 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
189 disable-strict-forbidden-file-verification: "true"
191 gerrit-build-notbuilt-verified-value: 0
192 gerrit-build-successful-verified-value: 1
193 # yamllint disable-line rule:line-length
194 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
195 # yamllint disable-line rule:line-length
196 failed-message: "Checkstyle failed. No further verify jobs will be started."
197 successful-message: "checkstyle_success"
205 - shell: !include-raw-escape:
206 - ../scripts/setup_executor_env.sh
207 - shell: !include-raw-escape:
208 - ../scripts/hicn/checkstyle.sh
213 rerun-unstable-builds: true
218 name: "hicn-verify-build-{stream}-{os}-{executor-arch}"
220 project-type: freestyle
221 node: "builder-{os}-prod-{executor-arch}"
225 - lf-infra-properties:
226 build-days-to-keep: "{build-days-to-keep}"
239 - gerrit-trigger-scm:
240 credentials-id: "jenkins-gerrit-credentials"
241 refspec: "$GERRIT_REFSPEC"
242 choosing-strategy: "gerrit"
245 - fdio-infra-wrappers:
249 - gerrit-trigger-checkstyle:
254 gerrit-build-notbuilt-verified-value: 0
255 gerrit-build-successful-verified-value: 1
256 # yamllint disable-line rule:line-length
257 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
258 # yamllint disable-line rule:line-length
259 failed-message: "Build failed. No further verify jobs will be started."
260 successful-message: "build_success"
269 - shell: !include-raw-escape:
270 - ../scripts/setup_executor_env.sh
271 - shell: !include-raw-escape:
272 - ../scripts/hicn/build.sh
278 name: "hicn-verify-functest-{stream}-{os}-{executor-arch}"
280 project-type: freestyle
281 node: "{os}-builder-4c-4g"
285 - lf-infra-properties:
286 build-days-to-keep: "{build-days-to-keep}"
299 - gerrit-trigger-scm:
300 credentials-id: "jenkins-gerrit-credentials"
301 refspec: "$GERRIT_REFSPEC"
302 choosing-strategy: "gerrit"
305 - fdio-infra-wrappers:
309 - gerrit-trigger-build:
314 - shell: !include-raw-escape:
315 - ../scripts/setup_executor_env.sh
316 - shell: !include-raw-escape:
317 - ../scripts/hicn/build.sh
323 name: "hicn-merge-{stream}-{os}-{executor-arch}"
325 project-type: freestyle
326 node: "builder-{os}-prod-{executor-arch}"
329 - lf-infra-properties:
330 build-days-to-keep: "{build-days-to-keep}"
343 - gerrit-trigger-scm:
344 credentials-id: "jenkins-gerrit-credentials"
346 choosing-strategy: "default"
349 - fdio-infra-wrappers:
350 build-timeout: "{build-timeout}"
353 - gerrit-trigger-patch-merged:
358 - config-file-provider:
360 - file-id: ".packagecloud"
361 target: "/root/.packagecloud"
362 - config-file-provider:
364 - file-id: "packagecloud_api"
365 target: "/root/packagecloud_api"
366 - shell: !include-raw-escape:
367 - ../scripts/setup_executor_env.sh
368 - shell: !include-raw-escape:
369 - ../scripts/hicn/checkstyle.sh
370 - shell: !include-raw-escape:
371 - ../scripts/hicn/build.sh
372 - shell: !include-raw-escape:
373 - ../scripts/packagecloud_push.sh
379 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
381 project-type: freestyle
382 node: "builder-{os}-prod-{executor-arch}"
386 - lf-infra-properties:
387 build-days-to-keep: "{build-days-to-keep}"
400 - gerrit-trigger-scm:
401 credentials-id: "jenkins-gerrit-credentials"
402 refspec: "$GERRIT_REFSPEC"
403 choosing-strategy: "gerrit"
406 - fdio-infra-wrappers:
411 server-name: "Primary"
413 - comment-added-contains-event:
414 comment-contains-value: "verify-extras"
416 - project-compare-type: "ANT"
417 project-pattern: "{project}"
419 - branch-compare-type: "ANT"
420 branch-pattern: "**/{branch}"
423 - shell: !include-raw-escape:
424 - ../scripts/setup_executor_env.sh
425 - shell: !include-raw-escape:
426 - ../scripts/hicn/build-extras.sh
432 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
434 project-type: freestyle
435 node: "builder-{os}-prod-{executor-arch}"
438 - lf-infra-properties:
439 build-days-to-keep: "{build-days-to-keep}"
452 - gerrit-trigger-scm:
453 credentials-id: "jenkins-gerrit-credentials"
455 choosing-strategy: "default"
458 - fdio-infra-wrappers:
459 build-timeout: "{build-timeout}"
463 server-name: "Primary"
465 - comment-added-contains-event:
466 comment-contains-value: "build-extras"
468 - project-compare-type: "ANT"
469 project-pattern: "{project}"
471 - branch-compare-type: "ANT"
472 branch-pattern: "**/{branch}"
475 - config-file-provider:
477 - file-id: ".packagecloud"
478 target: "/root/.packagecloud"
479 - config-file-provider:
481 - file-id: "packagecloud_api"
482 target: "/root/packagecloud_api"
483 - shell: !include-raw-escape:
484 - ../scripts/setup_executor_env.sh
485 - shell: !include-raw-escape:
486 - ../scripts/hicn/build-extras.sh
487 - shell: !include-raw-escape:
488 - ../scripts/packagecloud_push.sh
497 - gerrit-info-yaml-verify
498 build-node: centos7-builder-2c-2g