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-{stream}-{os}-{executor-arch}"
19 - "hicn-merge-{stream}-{os}-{executor-arch}"
22 executor-arch: "x86_64"
30 - "hicn-verify-{stream}-{os}-{executor-arch}"
31 - "hicn-merge-{stream}-{os}-{executor-arch}"
34 executor-arch: "aarch64"
42 - "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
48 executor-arch: "x86_64"
51 name: hicn-extras-x86_64
53 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
54 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
57 executor-arch: "x86_64"
63 name: hicn-extras-aarch64
65 - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
66 - "hicn-extras-build-{stream}-{os}-{executor-arch}"
69 executor-arch: "aarch64"
86 sonarcloud-project-organization: "{sonarcloud_project_organization}"
87 sonarcloud-api-token: "{sonarcloud_api_token}"
88 sonarcloud-project-key: "{sonarcloud_project_organization}-{project}"
94 name: hicn-sonar-scanner
96 project-type: freestyle
97 node: centos7-docker-4c-4g
101 - gerrit-trigger-scm:
102 credentials-id: "jenkins-gerrit-credentials"
104 choosing-strategy: "default"
107 - fdio-infra-wrappers:
108 build-timeout: "{build-timeout}"
111 - gerrit-trigger-patch-merged:
117 properties-content: |
118 SONAR_HOST_URL=https://sonarcloud.io
119 PROJECT_KEY={sonarcloud-project-key}
120 PROJECT_ORGANIZATION={sonarcloud-project-organization}
121 API_TOKEN={sonarcloud-api-token}
122 - shell: !include-raw-escape:
123 - ../scripts/hicn/sonar.sh
126 name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
128 project-type: freestyle
129 node: "builder-{os}-prod-{executor-arch}"
133 - lf-infra-properties:
134 build-days-to-keep: "{build-days-to-keep}"
145 - gerrit-trigger-scm:
146 credentials-id: "jenkins-gerrit-credentials"
147 refspec: "$GERRIT_REFSPEC"
148 choosing-strategy: "gerrit"
151 - fdio-infra-wrappers:
152 build-timeout: "{build-timeout}"
156 server-name: "Primary"
158 - patchset-created-event:
159 exclude-drafts: "true"
160 exclude-trivial-rebase: "false"
161 exclude-no-code-change: "true"
162 - draft-published-event
163 - comment-added-contains-event:
164 comment-contains-value: "checkstylecheck"
165 - comment-added-contains-event:
166 comment-contains-value: "docsonly"
167 - comment-added-contains-event:
168 comment-contains-value: "recheck"
169 - comment-added-contains-event:
170 comment-contains-value: "reverify"
172 - project-compare-type: "ANT"
173 project-pattern: "{project}"
175 - branch-compare-type: "ANT"
176 branch-pattern: "**/{branch}"
178 - compare-type: REG_EXP
179 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
180 disable-strict-forbidden-file-verification: "true"
182 gerrit-build-notbuilt-verified-value: 0
183 gerrit-build-successful-verified-value: 1
184 # yamllint disable-line rule:line-length
185 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
186 # yamllint disable-line rule:line-length
187 failed-message: "Checkstyle failed. No further verify jobs will be started."
188 successful-message: "checkstyle_success"
196 - shell: !include-raw-escape:
197 - ../scripts/setup_executor_env.sh
198 - shell: !include-raw-escape:
199 - ../scripts/hicn/checkstyle.sh
204 rerun-unstable-builds: true
209 name: "hicn-verify-{stream}-{os}-{executor-arch}"
211 project-type: freestyle
212 node: "builder-{os}-prod-{executor-arch}"
216 - lf-infra-properties:
217 build-days-to-keep: "{build-days-to-keep}"
230 - gerrit-trigger-scm:
231 credentials-id: "jenkins-gerrit-credentials"
232 refspec: "$GERRIT_REFSPEC"
233 choosing-strategy: "gerrit"
236 - fdio-infra-wrappers:
240 - gerrit-trigger-checkstyle:
245 - shell: !include-raw-escape:
246 - ../scripts/setup_executor_env.sh
247 - shell: !include-raw-escape:
248 - ../scripts/hicn/build.sh
254 name: "hicn-merge-{stream}-{os}-{executor-arch}"
256 project-type: freestyle
257 node: "builder-{os}-prod-{executor-arch}"
260 - lf-infra-properties:
261 build-days-to-keep: "{build-days-to-keep}"
274 - gerrit-trigger-scm:
275 credentials-id: "jenkins-gerrit-credentials"
277 choosing-strategy: "default"
280 - fdio-infra-wrappers:
281 build-timeout: "{build-timeout}"
284 - gerrit-trigger-patch-merged:
289 - config-file-provider:
291 - file-id: ".packagecloud"
292 target: "/root/.packagecloud"
293 - config-file-provider:
295 - file-id: "packagecloud_api"
296 target: "/root/packagecloud_api"
297 - shell: !include-raw-escape:
298 - ../scripts/setup_executor_env.sh
299 - shell: !include-raw-escape:
300 - ../scripts/hicn/checkstyle.sh
301 - shell: !include-raw-escape:
302 - ../scripts/hicn/build.sh
303 - shell: !include-raw-escape:
304 - ../scripts/packagecloud_push.sh
310 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
312 project-type: freestyle
313 node: "builder-{os}-prod-{executor-arch}"
317 - lf-infra-properties:
318 build-days-to-keep: "{build-days-to-keep}"
331 - gerrit-trigger-scm:
332 credentials-id: "jenkins-gerrit-credentials"
333 refspec: "$GERRIT_REFSPEC"
334 choosing-strategy: "gerrit"
337 - fdio-infra-wrappers:
342 server-name: "Primary"
344 - comment-added-contains-event:
345 comment-contains-value: "verify-extras"
347 - project-compare-type: "ANT"
348 project-pattern: "{project}"
350 - branch-compare-type: "ANT"
351 branch-pattern: "**/{branch}"
354 - shell: !include-raw-escape:
355 - ../scripts/setup_executor_env.sh
356 - shell: !include-raw-escape:
357 - ../scripts/hicn/build-extras.sh
363 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
365 project-type: freestyle
366 node: "builder-{os}-prod-{executor-arch}"
369 - lf-infra-properties:
370 build-days-to-keep: "{build-days-to-keep}"
383 - gerrit-trigger-scm:
384 credentials-id: "jenkins-gerrit-credentials"
386 choosing-strategy: "default"
389 - fdio-infra-wrappers:
390 build-timeout: "{build-timeout}"
394 server-name: "Primary"
396 - comment-added-contains-event:
397 comment-contains-value: "build-extras"
399 - project-compare-type: "ANT"
400 project-pattern: "{project}"
402 - branch-compare-type: "ANT"
403 branch-pattern: "**/{branch}"
406 - config-file-provider:
408 - file-id: ".packagecloud"
409 target: "/root/.packagecloud"
410 - config-file-provider:
412 - file-id: "packagecloud_api"
413 target: "/root/packagecloud_api"
414 - shell: !include-raw-escape:
415 - ../scripts/setup_executor_env.sh
416 - shell: !include-raw-escape:
417 - ../scripts/hicn/build-extras.sh
418 - shell: !include-raw-escape:
419 - ../scripts/packagecloud_push.sh
428 - gerrit-info-yaml-verify
429 build-node: centos7-builder-2c-2g