Skip to content

Commit

Permalink
Fix dra info fetch for 8.x branch
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed Sep 10, 2024
1 parent 8c088d5 commit 574915d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .ci/scripts/resolve-dra-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ LATEST_VERSION=$(strip_version $LATEST_BUILD)
if [ "$LATEST_VERSION" != "$ES_VERSION" ]; then
echo "Latest build for '$ARTIFACT' is version $LATEST_VERSION but expected version $ES_VERSION." 1>&2
NEW_BRANCH=$(echo $ES_VERSION | sed -E "s/([0-9]+\.[0-9]+)\.[0-9]/\1/g")

# Temporary
if [[ "$ES_VERSION" == "8.16.0" ]]; then
NEW_BRANCH="8.x"
fi

echo "Using branch $NEW_BRANCH instead of $BRANCH." 1>&2
echo "https://artifacts-$WORKFLOW.elastic.co/$ARTIFACT/latest/$NEW_BRANCH.json"
LATEST_BUILD=$(fetch_build $WORKFLOW $ARTIFACT $NEW_BRANCH)
fi

Expand Down

0 comments on commit 574915d

Please sign in to comment.