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"
81 name: "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
83 project-type: freestyle
84 node: "builder-{os}-prod-{executor-arch}"
88 - lf-infra-properties:
89 build-days-to-keep: "{build-days-to-keep}"
100 - gerrit-trigger-scm:
101 credentials-id: "jenkins-gerrit-credentials"
102 refspec: "$GERRIT_REFSPEC"
103 choosing-strategy: "gerrit"
106 - fdio-infra-wrappers:
107 build-timeout: "{build-timeout}"
111 server-name: "Primary"
113 - patchset-created-event:
114 exclude-drafts: "true"
115 exclude-trivial-rebase: "false"
116 exclude-no-code-change: "true"
117 - draft-published-event
118 - comment-added-contains-event:
119 comment-contains-value: "checkstylecheck"
120 - comment-added-contains-event:
121 comment-contains-value: "docsonly"
122 - comment-added-contains-event:
123 comment-contains-value: "recheck"
124 - comment-added-contains-event:
125 comment-contains-value: "reverify"
127 - project-compare-type: "ANT"
128 project-pattern: "{project}"
130 - branch-compare-type: "ANT"
131 branch-pattern: "**/{branch}"
133 - compare-type: REG_EXP
134 pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
135 disable-strict-forbidden-file-verification: "true"
137 gerrit-build-notbuilt-verified-value: 0
138 gerrit-build-successful-verified-value: 1
139 # yamllint disable-line rule:line-length
140 notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
141 # yamllint disable-line rule:line-length
142 failed-message: "Checkstyle failed. No further verify jobs will be started."
143 successful-message: "checkstyle_success"
151 - shell: !include-raw-escape:
152 - ../scripts/setup_executor_env.sh
153 - shell: !include-raw-escape:
154 - ../scripts/hicn/checkstyle.sh
159 rerun-unstable-builds: true
164 name: "hicn-verify-{stream}-{os}-{executor-arch}"
166 project-type: freestyle
167 node: "builder-{os}-prod-{executor-arch}"
171 - lf-infra-properties:
172 build-days-to-keep: "{build-days-to-keep}"
185 - gerrit-trigger-scm:
186 credentials-id: "jenkins-gerrit-credentials"
187 refspec: "$GERRIT_REFSPEC"
188 choosing-strategy: "gerrit"
191 - fdio-infra-wrappers:
195 - gerrit-trigger-checkstyle:
200 - shell: !include-raw-escape:
201 - ../scripts/setup_executor_env.sh
202 - shell: !include-raw-escape:
203 - ../scripts/hicn/build.sh
209 name: "hicn-merge-{stream}-{os}-{executor-arch}"
211 project-type: freestyle
212 node: "builder-{os}-prod-{executor-arch}"
215 - lf-infra-properties:
216 build-days-to-keep: "{build-days-to-keep}"
229 - gerrit-trigger-scm:
230 credentials-id: "jenkins-gerrit-credentials"
232 choosing-strategy: "default"
235 - fdio-infra-wrappers:
236 build-timeout: "{build-timeout}"
239 - gerrit-trigger-patch-merged:
244 - config-file-provider:
246 - file-id: ".packagecloud"
247 target: "/root/.packagecloud"
248 - config-file-provider:
250 - file-id: "packagecloud_api"
251 target: "/root/packagecloud_api"
252 - shell: !include-raw-escape:
253 - ../scripts/setup_executor_env.sh
254 - shell: !include-raw-escape:
255 - ../scripts/hicn/checkstyle.sh
256 - shell: !include-raw-escape:
257 - ../scripts/hicn/build.sh
258 - shell: !include-raw-escape:
259 - ../scripts/packagecloud_push.sh
268 mvn-settings: hicn-settings
270 sonarcloud-project-organization: "{sonarcloud_project_organization}"
271 sonarcloud-api-token: "{sonarcloud_api_token}"
272 sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
274 build-node: centos7-docker-2c-2g
279 name: "hicn-extras-verify-{stream}-{os}-{executor-arch}"
281 project-type: freestyle
282 node: "builder-{os}-prod-{executor-arch}"
286 - lf-infra-properties:
287 build-days-to-keep: "{build-days-to-keep}"
300 - gerrit-trigger-scm:
301 credentials-id: "jenkins-gerrit-credentials"
302 refspec: "$GERRIT_REFSPEC"
303 choosing-strategy: "gerrit"
306 - fdio-infra-wrappers:
311 server-name: "Primary"
313 - comment-added-contains-event:
314 comment-contains-value: "verify-extras"
316 - project-compare-type: "ANT"
317 project-pattern: "{project}"
319 - branch-compare-type: "ANT"
320 branch-pattern: "**/{branch}"
323 - shell: !include-raw-escape:
324 - ../scripts/setup_executor_env.sh
325 - shell: !include-raw-escape:
326 - ../scripts/hicn/build-extras.sh
332 name: "hicn-extras-build-{stream}-{os}-{executor-arch}"
334 project-type: freestyle
335 node: "builder-{os}-prod-{executor-arch}"
338 - lf-infra-properties:
339 build-days-to-keep: "{build-days-to-keep}"
352 - gerrit-trigger-scm:
353 credentials-id: "jenkins-gerrit-credentials"
355 choosing-strategy: "default"
358 - fdio-infra-wrappers:
359 build-timeout: "{build-timeout}"
363 server-name: "Primary"
365 - comment-added-contains-event:
366 comment-contains-value: "build-extras"
368 - project-compare-type: "ANT"
369 project-pattern: "{project}"
371 - branch-compare-type: "ANT"
372 branch-pattern: "**/{branch}"
375 - config-file-provider:
377 - file-id: ".packagecloud"
378 target: "/root/.packagecloud"
379 - config-file-provider:
381 - file-id: "packagecloud_api"
382 target: "/root/packagecloud_api"
383 - shell: !include-raw-escape:
384 - ../scripts/setup_executor_env.sh
385 - shell: !include-raw-escape:
386 - ../scripts/hicn/build-extras.sh
387 - shell: !include-raw-escape:
388 - ../scripts/packagecloud_push.sh
397 - gerrit-info-yaml-verify
398 build-node: centos7-builder-2c-2g