Merge "Move VPP and CSIT macros to global"
[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       - '1904':
27           branch: 'rls1904'
28       - '1908_1':
29           branch: 'rls1908_1'
30       - '2001':
31           branch: 'rls2001'
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/csit/tox.sh
79
80     publishers:
81       # TODO: Remove this when a voting pylint difference checker
82       # with nice enough output is implemented.
83       - violations:
84           pylint:
85             min: 10
86             max: 250
87             unstable: 250
88             pattern: 'pylint.log'
89       - fdio-infra-shiplogs:
90           maven-version: 'mvn33-new'