hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject [1/5] hbase git commit: HBASE-15119 Include git SHA in check_compatibility reports
Date Fri, 01 Jul 2016 03:57:06 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 45a6d8403 -> 6b415ca41


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/0fd9bb1b
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/0fd9bb1b
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/0fd9bb1b

Branch: refs/heads/branch-1.1
Commit: 0fd9bb1b080f85f5fe94eac60a26a85a4d93ec75
Parents: 45a6d84
Author: Nick Dimiduk <ndimiduk@apache.org>
Authored: Sat Jan 16 15:44:07 2016 -0800
Committer: Sean Busbey <busbey@apache.org>
Committed: Thu Jun 30 22:56:10 2016 -0500

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/0fd9bb1b/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)


Mime
View raw message