Skip to content

Commit

Permalink
ensure only for stating
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Jan 24, 2025
1 parent f8ee437 commit 0562591
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .buildkite/scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ if [[ ${TYPE} == "snapshot" ]]; then
MAKE_GOAL="${MAKE_GOAL}-snapshot"
fi

echo "--- Prepare the Elastic Qualifier"
# NOTE: load the shared functions
# shellcheck disable=SC1091
source .buildkite/scripts/utils.sh
dra_process_other_branches
ELASTIC_QUALIFIER=$(fetch_elastic_qualifier "$DRA_BRANCH")
export ELASTIC_QUALIFIER
if [[ ${TYPE} == "staging" ]]; then
echo "--- Prepare the Elastic Qualifier"
# NOTE: load the shared functions
# shellcheck disable=SC1091
source .buildkite/scripts/utils.sh
dra_process_other_branches
ELASTIC_QUALIFIER=$(fetch_elastic_qualifier "$DRA_BRANCH")
export ELASTIC_QUALIFIER
fi

echo "--- Run $MAKE_GOAL for $DRA_BRANCH"
make $MAKE_GOAL
Expand Down
5 changes: 5 additions & 0 deletions .buildkite/scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ retry() {
return 0
}

#
# An opinionated approach to detect if unsupported Unified Release branches
# can be used, this is handy for testing feature branches in dry-run mode
# It produces the below environment variables:
# - VERSION
# - DRA_COMMAND
# - DRA_BRANCH
dra_process_other_branches() {
## Read current version without the qualifier
VERSION=$(make get-version-only)
Expand Down

0 comments on commit 0562591

Please sign in to comment.