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