From 8debdaace48272e832b06171e0622aed02dc9a87 Mon Sep 17 00:00:00 2001 From: Bryan Beaudreault Date: Mon, 20 Dec 2021 09:52:57 -0500 Subject: [PATCH] Add back custom version injection, but set it to the raw HBASE_VERSION (#3) This reverts commit f556810b52bb6dfb27518c3b16951887ff71f920 (#2). --- build-scripts/prepare_environment.sh | 4 ++++ hbase-common/pom.xml | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/build-scripts/prepare_environment.sh b/build-scripts/prepare_environment.sh index e4c3195059e..6b9e471c7bf 100755 --- a/build-scripts/prepare_environment.sh +++ b/build-scripts/prepare_environment.sh @@ -80,6 +80,10 @@ fi RELEASE="${RELEASE}.${BUILD_NUMBER}" FULL_BUILD_VERSION="${HBASE_VERSION}-${RELEASE}" +# Add into MAVEN_ARGS because we added this property in hbase-common/pom.xml so we +# could accurately reflect the full build version in the UI and elsewhere. +MAVEN_ARGS="$MAVEN_ARGS -Dhubspot.build.version=$HBASE_VERSION" + # # Dump generated env vars into rc file # diff --git a/hbase-common/pom.xml b/hbase-common/pom.xml index 5a099f3b913..3f29afdec8a 100644 --- a/hbase-common/pom.xml +++ b/hbase-common/pom.xml @@ -31,6 +31,10 @@ Apache HBase - Common Common functionality for HBase + + ${project.version} + + @@ -76,7 +80,7 @@ + token="@@@VERSION@@@" value="${hubspot.build.version}" /> @@ -92,7 +96,7 @@ - +