From: Andrew Yourtchenko Date: Tue, 23 Feb 2021 11:46:31 +0000 (+0000) Subject: vpp: print "git diff" before running API checkstyle X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=b9af764835c8d48d042c4dc331bb5e51e989f215;p=ci-management.git vpp: print "git diff" before running API checkstyle API checkstyle is unhappy if the repo is not clean. An example: https://jenkins.fd.io/job/vpp-checkstyle-verify-master-ubuntu2004-x86_64/598/console Output the changes to make diagnostics easier. Change-Id: I3fe1dfd0adde47e2140151687a6ab31885fc851c Signed-off-by: Andrew Yourtchenko --- diff --git a/jjb/scripts/vpp/api-checkstyle.sh b/jjb/scripts/vpp/api-checkstyle.sh index 38017fea1..c79884fa4 100644 --- a/jjb/scripts/vpp/api-checkstyle.sh +++ b/jjb/scripts/vpp/api-checkstyle.sh @@ -26,6 +26,9 @@ send_notify() { } if [ -f $VPP_CRC_CHECKER ]; then + # API checker complains if the git repo is not clean. + # Help diagnosing those issues easier + git --no-pager diff echo "Running $VPP_CRC_CHECKER_CMD" if $VPP_CRC_CHECKER_CMD; then echo "API check successful"