Skip to content

[9.0] Use ES_VERSION to resolve manifest for ML and Beats (#130084) #130095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .ci/scripts/resolve-dra-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ strip_version() {
}

fetch_build() {
curl -sS https://artifacts-$1.elastic.co/$2/latest/$3.json \
>&2 echo "Checking for build id: https://artifacts-$1.elastic.co/$2/latest/$3.json"
curl -sSf https://artifacts-$1.elastic.co/$2/latest/$3.json \
| jq -r '.build_id'
}

Expand All @@ -15,7 +16,15 @@ BRANCH="${BRANCH:-$2}"
ES_VERSION="${ES_VERSION:-$3}"
WORKFLOW=${WORKFLOW:-$4}

LATEST_BUILD=$(fetch_build $WORKFLOW $ARTIFACT $BRANCH)
if [[ "$WORKFLOW" == "staging" ]]; then
LATEST_BUILD=$(fetch_build $WORKFLOW $ARTIFACT $ES_VERSION)
elif [[ "$WORKFLOW" == "snapshot" ]]; then
LATEST_BUILD=$(fetch_build $WORKFLOW $ARTIFACT $BRANCH)
else
echo "Unknown workflow: $WORKFLOW"
exit 1
fi

LATEST_VERSION=$(strip_version $LATEST_BUILD)

# If the latest artifact version doesn't match what we expect, try the corresponding version branch.
Expand Down