9075bff06b57ea075a1395c4292c4e7243fff817
[ci-management.git] / jjb / csit / csit-tox.yaml
1 # Copyright (c) 2020 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}'
20
21     project: 'csit'
22     branch: 'master'
23     stream:
24       - master:
25           branch: 'master'
26       - '1908_2':
27           branch: 'rls1908_2'
28       - '2005':
29           branch: 'rls2005'
30       - '2009':
31           branch: 'rls2009'
32       - '2009_lts':
33           branch: 'rls2009_lts'
34
35 - job-template:
36     name: 'csit-verify-tox-{stream}'
37
38     project-type: freestyle
39     node: ubuntu1804-us
40     concurrent: true
41     archive-artifacts: '*.log'
42     latest-only: false
43
44
45     build-discarder:
46       daysToKeep: '{build-days-to-keep}'
47       numToKeep: '{build-num-to-keep}'
48       artifactDaysToKeep: '{build-artifact-days-to-keep}'
49       artifactNumToKeep: '{build-artifact-num-to-keep}'
50
51     parameters:
52       - project-parameter:
53           project: '{project}'
54       - gerrit-parameter:
55           branch: '{branch}'
56       - gerrit-refspec-parameter
57       - string:
58           name: ARCHIVE_ARTIFACTS
59           default: '{archive-artifacts}'
60           description: Artifacts to archive to the logs server.
61
62     scm:
63       - gerrit-trigger-scm:
64           credentials-id: 'jenkins-gerrit-credentials'
65           refspec: '$GERRIT_REFSPEC'
66           choosing-strategy: 'gerrit'
67
68     wrappers:
69       - fdio-infra-wrappers:
70           build-timeout: '{build-timeout}'
71
72     triggers:
73       - gerrit-trigger-patch-submitted:
74           name: '{project}'
75           branch: '{branch}'
76
77     builders:
78       - shell:
79           !include-raw-escape:
80           - ../scripts/setup_executor_env.sh
81       - shell:
82           !include-raw-escape:
83           - ../scripts/csit/tox.sh
84
85     publishers:
86       # TODO: Remove this when a voting pylint difference checker
87       # with nice enough output is implemented.
88       - violations:
89           pylint:
90             min: 10
91             max: 250
92             unstable: 250
93             pattern: 'pylint.log'
94       - fdio-infra-shiplogs:
95           maven-version: 'mvn33-new'