From 8820902f0c74daef87e1ab4185bc8d7be7dadcb7 Mon Sep 17 00:00:00 2001 From: Tim Vernum Date: Tue, 7 Feb 2017 10:36:49 +1100 Subject: [PATCH] [ci] Print git revision of elasticsearch to ci log (elastic/elasticsearch#4782) The output `Checked out Elasticsearch revision: ...` shows which revision of elasticsearch was included in the CI build. This makes it easier to diagnose and resolve x-pack build failures. Original commit: elastic/x-pack-elasticsearch@8c39aafc2d2af2459e9244ca89a130112196a206 --- dev-tools/ci | 1 + 1 file changed, 1 insertion(+) diff --git a/dev-tools/ci b/dev-tools/ci index ccc7139a19b..e94555388eb 100755 --- a/dev-tools/ci +++ b/dev-tools/ci @@ -96,6 +96,7 @@ if [ -z ${USE_EXISTING_ES:+x} ]; then fi echo "Checking out Elasticsearch '$BRANCH' branch..." git clone -b $BRANCH https://github.com/elastic/elasticsearch.git --depth=1 + printf "Checked out Elasticsearch revision: %s\n" "$(git -C elasticsearch rev-parse HEAD)" else if [ -d "./elasticsearch" ]; then echo "Using existing 'elasticsearch' checkout"