From 029b604f16e7cbb5fed669494a5526ddebcacf7f Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 16 Aug 2012 13:35:12 -0700 Subject: [PATCH] Add pep8/pylint publishers. Change-Id: I6a2efe9599594dd40217800b551cf4678063c023 Reviewed-on: https://review.openstack.org/11502 Reviewed-by: Clark Boylan Reviewed-by: Yun Mao Approved: James E. Blair Tested-by: Jenkins --- .../jenkins_job_builder/config/macros.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml b/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml index 94bc222c6d..1653804bb7 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml @@ -47,6 +47,11 @@ builders: - shell: "set -o pipefail ; tox -v -epep8 | tee pep8.txt ; set +o pipefail" +- builder: + name: pylint + builders: + - shell: "set -o pipefail ; tox -v -epylint | tee pylint.txt ; set +o pipefail" + - builder: name: pyflakes builders: @@ -114,3 +119,23 @@ site: '{site}' source: '{warfile}' target: '{target}' + +- publisher: + name: pep8 + publishers: + - violations: + pep8: + min: 0 + max: 1 + unstable: 1 + pattern: '**/pep8.txt' + +- publisher: + name: pylint + publishers: + - violations: + pylint: + min: 0 + max: 1 + unstable: 1 + pattern: '**/pylint.txt'