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.
19 - 'csit-verify-tox-{stream}-{os}-{executor-arch}'
24 executor-arch: 'x86_64'
38 name: 'csit-verify-tox-{stream}-{os}-{executor-arch}'
40 project-type: freestyle
41 node: 'builder-{os}-prod-{executor-arch}'
43 archive-artifacts: '*.log'
47 daysToKeep: '{build-days-to-keep}'
48 numToKeep: '{build-num-to-keep}'
49 artifactDaysToKeep: '{build-artifact-days-to-keep}'
50 artifactNumToKeep: '{build-artifact-num-to-keep}'
57 - gerrit-refspec-parameter
59 name: ARCHIVE_ARTIFACTS
60 default: '{archive-artifacts}'
61 description: Artifacts to archive to the logs server.
65 credentials-id: 'jenkins-gerrit-credentials'
66 refspec: '$GERRIT_REFSPEC'
67 choosing-strategy: 'gerrit'
70 - fdio-infra-wrappers:
71 build-timeout: '{build-timeout}'
74 # Tox trigger is special.
76 server-name: 'Primary'
78 - patchset-created-event:
79 exclude-drafts: 'true'
80 exclude-trivial-rebase: 'false'
81 exclude-no-code-change: 'false'
82 # Not enabling on draft published event.
83 # Frequently, people publish for public access, not fr verify.
84 # Use recheck comment to trigger verify.
85 - comment-added-contains-event:
86 comment-contains-value: 'recheck'
87 - comment-added-contains-event:
88 comment-contains-value: 'reverify'
90 - project-compare-type: 'ANT'
91 project-pattern: '{project}'
93 - branch-compare-type: 'ANT'
94 branch-pattern: '**/{branch}'
96 gerrit-build-notbuilt-verified-value: 0
97 gerrit-build-successful-verified-value: 1
98 failed-message: 'Tox failed. No further verify jobs will be started.'
99 successful-message: 'tox_success'
109 - ../scripts/setup_executor_env.sh
112 - ../scripts/csit/tox.sh
115 # TODO: Remove this when a voting pylint difference checker
116 # with nice enough output is implemented.
122 pattern: 'pylint.log'