Skip to content

Commit

Permalink
Build without RC file modifications (apache#60)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel McCann <smccann@hubspot.com>
  • Loading branch information
mccanns3 and smccann-hs authored Nov 21, 2023
1 parent 8f62565 commit 70b0de7
Show file tree
Hide file tree
Showing 58 changed files with 502 additions and 11 deletions.
9 changes: 9 additions & 0 deletions .blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
16 changes: 5 additions & 11 deletions build-scripts/prepare_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,11 @@ FULL_BUILD_VERSION="${HBASE_VERSION}-${RELEASE}"
# 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
#

cat >> "$BUILD_COMMAND_RC_FILE" <<EOF
export MAVEN_ARGS='$MAVEN_ARGS'
export SET_VERSION='$MAVEN_VERSION'
export HBASE_VERSION='$HBASE_VERSION'
export PKG_RELEASE='$RELEASE'
export FULL_BUILD_VERSION='$FULL_BUILD_VERSION'
EOF
write-build-env-var MAVEN_ARGS "$MAVEN_ARGS"
write-build-env-var SET_VERSION "$MAVEN_VERSION"
write-build-env-var HBASE_VERSION "$HBASE_VERSION"
write-build-env-var PKG_RELEASE "$RELEASE"
write-build-env-var FULL_BUILD_VERSION "$FULL_BUILD_VERSION"

echo "Building HBase version $HBASE_VERSION"
echo "Will use maven version $MAVEN_VERSION"
Expand Down
9 changes: 9 additions & 0 deletions hbase-annotations/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-archetypes/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-archetypes/hbase-archetype-builder/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-archetypes/hbase-client-project/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-archetypes/hbase-shaded-client-project/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
5 changes: 5 additions & 0 deletions hbase-assembly/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ env:
RPM_BUILD_COMMAND: "./rpm-build/build.sh"
RPM_REPOS: "8_hs-hbase${GIT_NON_DEFAULT_BRANCH:+-develop} aarch64_8_hs-hbase${GIT_NON_DEFAULT_BRANCH:+-develop}"
MAVEN_PHASE: package assembly:single
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-asyncfs/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-backup/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-build-configuration/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-checkstyle/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-client/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-common/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-compression/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-compression/hbase-compression-brotli/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-compression/hbase-compression-lz4/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-compression/hbase-compression-snappy/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-compression/hbase-compression-xz/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-compression/hbase-compression-zstd/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-endpoint/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-examples/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
9 changes: 9 additions & 0 deletions hbase-external-blockcache/.blazar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ buildpack:
# Make sure to also check hbase-assembly/.blazar.yaml to see if any changes should be added there as well.
# Prefer making changes to prepare_environment.sh instead, if possible.

# The build environment requires environment variables to be explicitly defined before they may
# be modified by the `write-build-env-var` utilty script to persist changes to an environment variable
# throughout a build
env:
MAVEN_ARGS: ""
SET_VERSION: ""
HBASE_VERSION: ""
PKG_RELEASE: ""
FULL_BUILD_VERSION: ""

before:
- description: "Prepare build environment"
Expand Down
Loading

0 comments on commit 70b0de7

Please sign in to comment.