summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-04-22 17:16:46 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-04-23 09:52:46 -0400
commite36ca950f0bc83c844e3c368bb64845ea51f3ea2 (patch)
treedf38f2110cf889861f8f8a00d44f5e579f0fb51b
parent50acabea188347ae76c5215dd25c08dd02fc0f65 (diff)
downloadopenshift-e36ca950f0bc83c844e3c368bb64845ea51f3ea2.tar.gz
openshift-e36ca950f0bc83c844e3c368bb64845ea51f3ea2.tar.bz2
openshift-e36ca950f0bc83c844e3c368bb64845ea51f3ea2.tar.xz
openshift-e36ca950f0bc83c844e3c368bb64845ea51f3ea2.zip
Testing jenkins hooks
-rwxr-xr-xgit/pylint.sh4
1 files changed, 3 insertions, 1 deletions
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 $?