From e36ca950f0bc83c844e3c368bb64845ea51f3ea2 Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Wed, 22 Apr 2015 17:16:46 -0400 Subject: Testing jenkins hooks --- git/pylint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git/pylint.sh b/git/pylint.sh index e070fe7b2..286747565 100755 --- a/git/pylint.sh +++ b/git/pylint.sh @@ -5,8 +5,10 @@ OLDREV=$1 NEWREV=$2 TRG_BRANCH=$3 +PYTHON=/var/lib/jenkins/python27/bin/python + /usr/bin/git diff --name-only $OLDREV $NEWREV --diff-filter=ACM | \ grep ".py$" | \ - xargs -r -I{} pylint --rcfile ${WORKSPACE}/git/.pylintrc {} + xargs -r -I{} ${PYTHON} -m pylint --rcfile ${WORKSPACE}/git/.pylintrc {} exit $? -- cgit v1.2.3