Migrate CSIT pylint job to tox
[ci-management.git] / jjb / csit / csit-tox.yaml
1 ---
2 - project:
3     name: csit-validate
4
5     jobs:
6       - 'csit-verify-tox-{stream}'
7
8     project: 'csit'
9     branch: 'master'
10     stream:
11       - master:
12           branch: 'master'
13       - '1901':
14           branch: 'rls1901'
15
16 - job-template:
17     name: 'csit-verify-tox-{stream}'
18
19     project-type: freestyle
20     node: ubuntu1804-us
21     concurrent: true
22
23     build-discarder:
24       daysToKeep: '{build-days-to-keep}'
25       numToKeep: '{build-num-to-keep}'
26       artifactDaysToKeep: '{build-artifact-days-to-keep}'
27       artifactNumToKeep: '{build-artifact-num-to-keep}'
28
29     parameters:
30       - project-parameter:
31           project: '{project}'
32       - gerrit-parameter:
33           branch: '{branch}'
34       - gerrit-refspec-parameter
35
36     scm:
37       - gerrit-trigger-scm:
38           credentials-id: 'jenkins-gerrit-credentials'
39           refspec: '$GERRIT_REFSPEC'
40           choosing-strategy: 'gerrit'
41
42     wrappers:
43       - fdio-infra-wrappers:
44           build-timeout: '{build-timeout}'
45
46     triggers:
47       - gerrit-trigger-patch-submitted:
48           name: '{project}'
49           branch: '{branch}'
50
51     builders:
52       - shell:
53           ./resources/libraries/bash/entry/tox.sh
54
55     publishers:
56       - archive-artifacts:
57           artifacts: '*.log'
58           latest-only: false
59       # TODO: Remove this when a voting pylint difference checker
60       # with nice enough output is implemented.
61       - violations:
62           pylint:
63             min: 10
64             max: 250
65             unstable: 250
66             pattern: 'pylint.log'
67       - fdio-infra-shiplogs:
68           maven-version: 'mvn33-new'