You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by nd...@apache.org on 2016/01/20 06:30:21 UTC

hbase git commit: HBASE-15119 Include git SHA in check_compatibility reports

Repository: hbase
Updated Branches:
  refs/heads/master df3617806 -> 55bb5ff7f


HBASE-15119 Include git SHA in check_compatibility reports


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/55bb5ff7
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/55bb5ff7
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/55bb5ff7

Branch: refs/heads/master
Commit: 55bb5ff7fb20a976645f26a1a8fc3e667c05b4f7
Parents: df36178
Author: Nick Dimiduk <nd...@apache.org>
Authored: Sat Jan 16 15:44:07 2016 -0800
Committer: Nick Dimiduk <nd...@apache.org>
Committed: Tue Jan 19 21:29:58 2016 -0800

----------------------------------------------------------------------
 dev-support/check_compatibility.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/55bb5ff7/dev-support/check_compatibility.sh
----------------------------------------------------------------------
diff --git a/dev-support/check_compatibility.sh b/dev-support/check_compatibility.sh
index b6c11e0..95dba00 100755
--- a/dev-support/check_compatibility.sh
+++ b/dev-support/check_compatibility.sh
@@ -188,6 +188,8 @@ for ref in 1 2; do
       echo "Maven could not successfully package ${COMMIT[${ref}]}. Exiting..." >&2
       exit 2
     fi
+    # grab sha for future reference
+    SHA[${ref}]=$(git rev-parse --short HEAD)
     popd > /dev/null
   fi
 
@@ -207,6 +209,7 @@ for ref in 1 2; do
           echo "Maven could not successfully package ${COMMIT[${ref}]}. Exiting..." >&2
           exit 2
         fi
+        SHA[${ref}]=$(git rev-parse --short HEAD)
         popd > /dev/null
       done
 
@@ -259,7 +262,8 @@ fi
 
 # Generate command line arguments for Java ACC.
 JAVA_ACC_COMMAND+=(-l HBase)
-JAVA_ACC_COMMAND+=(-v1 ${COMMIT[1]} -v2 ${COMMIT[2]})
+JAVA_ACC_COMMAND+=(-v1 ${COMMIT[1]}${SHA[1]+"/${SHA[1]}"})
+JAVA_ACC_COMMAND+=(-v2 ${COMMIT[2]}${SHA[2]+"/${SHA[2]}"})
 JAVA_ACC_COMMAND+=(-d1 ${JARS[1]} -d2 ${JARS[2]})
 JAVA_ACC_COMMAND+=(-report-path \
     ${SCRIPT_DIRECTORY}/target/compatibility/report/${COMMIT[1]}_${COMMIT[2]}_compat_report.html)