Skip to content

Commit

Permalink
Add back custom version injection, but set it to the raw HBASE_VERSION (
Browse files Browse the repository at this point in the history
#3)

This reverts commit f556810 (#2).
  • Loading branch information
bbeaudreault committed Dec 20, 2021
1 parent f556810 commit 8debdaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build-scripts/prepare_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
8 changes: 6 additions & 2 deletions hbase-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<name>Apache HBase - Common</name>
<description>Common functionality for HBase</description>

<properties>
<hubspot.build.version>${project.version}</hubspot.build.version>
</properties>

<build>
<resources>
<resource>
Expand Down Expand Up @@ -76,7 +80,7 @@
<configuration>
<target>
<replace file="${project.build.outputDirectory}/hbase-default.xml"
token="@@@VERSION@@@" value="${project.version}" />
token="@@@VERSION@@@" value="${hubspot.build.version}" />
</target>
</configuration>
<goals>
Expand All @@ -92,7 +96,7 @@
<property name="generated.sources" location="${project.build.directory}/generated-sources"/>

<exec executable="bash" failonerror="true">
<arg line="${basedir}/src/saveVersion.sh ${project.version} ${generated.sources}/java"/>
<arg line="${basedir}/src/saveVersion.sh ${hubspot.build.version} ${generated.sources}/java"/>
</exec>
</target>
</configuration>
Expand Down

0 comments on commit 8debdaa

Please sign in to comment.