vpp: print "git diff" before running API checkstyle 08/31408/1
authorAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 23 Feb 2021 11:46:31 +0000 (11:46 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 23 Feb 2021 11:47:46 +0000 (11:47 +0000)
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 <ayourtch@gmail.com>
jjb/scripts/vpp/api-checkstyle.sh

index 38017fe..c79884f 100644 (file)
@@ -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"