CSIT: Add rls2310 jobs.
[ci-management.git] / jjb / csit / csit-tox.yaml
1 # Copyright (c) 2023 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:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
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.
13
14 ---
15 - project:
16     name: csit-validate
17
18     jobs:
19       - 'csit-verify-tox-{stream}-{os}-{executor-arch}'
20
21     project: 'csit'
22     branch: 'master'
23     os: 'ubuntu2204'
24     executor-arch: 'x86_64'
25     stream:
26       - master:
27           branch: 'master'
28       - '2310':
29           branch: 'rls2310'
30
31 - job-template:
32     name: 'csit-verify-tox-{stream}-{os}-{executor-arch}'
33
34     project-type: freestyle
35     node: 's-builder-{os}-prod-{executor-arch}'
36     concurrent: true
37     latest-only: false
38
39     properties:
40       - lf-infra-properties:
41           build-days-to-keep: "{build-days-to-keep}"
42
43     parameters:
44       - project-parameter:
45           project: '{project}'
46       - gerrit-parameter:
47           branch: '{branch}'
48       - gerrit-refspec-parameter
49
50     scm:
51       - gerrit-trigger-scm:
52           credentials-id: 'jenkins-gerrit-credentials'
53           refspec: '$GERRIT_REFSPEC'
54           choosing-strategy: 'gerrit'
55
56     wrappers:
57       - fdio-infra-wrappers:
58           build-timeout: '{build-timeout}'
59
60     triggers:
61       # Tox trigger is special.
62       - gerrit:
63           server-name: 'Primary'
64           trigger-on:
65             - patchset-created-event:
66                 exclude-drafts: 'true'
67                 exclude-trivial-rebase: 'false'
68                 exclude-no-code-change: 'false'
69             # Not enabling on draft published event.
70             # Frequently, people publish for public access, not fr verify.
71             # Use recheck comment to trigger verify.
72             - comment-added-contains-event:
73                 comment-contains-value: 'recheck'
74             - comment-added-contains-event:
75                 comment-contains-value: 'reverify'
76           projects:
77             - project-compare-type: 'ANT'
78               project-pattern: '{project}'
79               branches:
80                 - branch-compare-type: 'ANT'
81                   branch-pattern: '**/{branch}'
82           override-votes: true
83           gerrit-build-notbuilt-verified-value: 0
84           gerrit-build-successful-verified-value: 1
85           failed-message: 'Tox failed. No further verify jobs will be started.'
86           successful-message: 'tox_success'
87           skip-vote:
88             successful: true
89             failed: false
90             unstable: false
91             notbuilt: false
92
93     builders:
94       - shell:
95           !include-raw-escape:
96           - ../scripts/setup_executor_env.sh
97       - shell:
98           !include-raw-escape:
99           - ../scripts/csit/tox.sh
100
101     publishers:
102       - fdio-infra-publish