Skip to content

Commit d61a83a

Browse files
authored
[CI] benchmark uses the new artifacts-api (#17224)
migrate benchmark to the new artifacts-api
1 parent 07a3c8e commit d61a83a

File tree

1 file changed

+2
-2
lines changed
  • .buildkite/scripts/benchmark

1 file changed

+2
-2
lines changed

.buildkite/scripts/benchmark/core.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ pull_images() {
8181
else
8282
# pull the latest snapshot logstash image
8383
# select the SNAPSHOT artifact with the highest semantic version number
84-
LS_VERSION=$( curl --retry-all-errors --retry 5 --retry-delay 1 -s https://artifacts-api.elastic.co/v1/versions | jq -r '.versions | map(select(endswith("-SNAPSHOT"))) | max_by(rtrimstr("-SNAPSHOT")|split(".")|map(tonumber))' )
85-
BUILD_ID=$(curl --retry-all-errors --retry 5 --retry-delay 1 -s "https://artifacts-api.elastic.co/v1/versions/${LS_VERSION}/builds/latest" | jq -re '.build.build_id')
84+
LS_VERSION=$( curl --retry-all-errors --retry 5 --retry-delay 1 -s "https://storage.googleapis.com/artifacts-api/snapshots/main.json" | jq -r '.version' )
85+
BUILD_ID=$(curl --retry-all-errors --retry 5 --retry-delay 1 -s "https://storage.googleapis.com/artifacts-api/snapshots/main.json" | jq -r '.build_id')
8686
ARCH=$(arch)
8787
IMAGE_URL="https://snapshots.elastic.co/${BUILD_ID}/downloads/logstash/logstash-$LS_VERSION-docker-image-$ARCH.tar.gz"
8888
IMAGE_FILENAME="$LS_VERSION.tar.gz"

0 commit comments

Comments
 (0)