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