Merge "Fix VPP linting"
[ci-management.git] / jjb / csit / csit-vpp-pylint.yaml
1 ---
2 - project:
3     name: csit-validate
4
5     jobs:
6       - 'csit-validate-pylint-{stream}'
7
8     project: 'csit'
9     branch: 'master'
10     stream:
11       - master:
12           branch: 'master'
13
14 - job-template:
15     name: 'csit-validate-pylint-{stream}'
16
17     project-type: freestyle
18     node: ubuntu1604-basebuild-4c-4g
19     concurrent: true
20
21     build-discarder:
22       daysToKeep: '{build-days-to-keep}'
23       numToKeep: '{build-num-to-keep}'
24       artifactDaysToKeep: '{build-artifact-days-to-keep}'
25       artifactNumToKeep: '{build-artifact-num-to-keep}'
26
27     parameters:
28       - project-parameter:
29           project: '{project}'
30       - gerrit-parameter:
31           branch: '{branch}'
32
33     scm:
34       - gerrit-trigger-scm:
35           credentials-id: 'jenkins-gerrit-credentials'
36           refspec: '$GERRIT_REFSPEC'
37           choosing-strategy: 'gerrit'
38
39     wrappers:
40       - fdio-infra-wrappers:
41           build-timeout: '{build-timeout}'
42
43     triggers:
44       - gerrit-trigger-patch-submitted:
45           name: '{project}'
46           branch: '{branch}'
47
48     builders:
49       # yamllint disable-line rule:line-length
50       # This is where we will need to insert a step with a script that pulls all the
51       # yamllint disable-line rule:line-length
52       # allocated IP addresses and injecting as vars into the env. (see Opendaylight script: include-raw-integration-get-slave-addresses.sh
53       # yamllint enable rule:line-length
54       # See jjb/integration from ODL
55       - shell:
56           !include-raw-escape: include-raw-csit-pylint.sh
57
58     publishers:
59       - archive-artifacts:
60           artifacts: 'pylint.log'
61           latest-only: false
62       - violations:
63           pylint:
64             min: 10
65             max: 250
66             unstable: 250
67             pattern: 'pylint.log'
68       - fdio-infra-shiplogs:
69           maven-version: 'mvn33-new'