Skip to content

Commit

Permalink
[CI] Get first build when can't find hash in artifacts download
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Oct 16, 2023
1 parent a244f43 commit 1bb3898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rake_tasks/elasticsearch_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace :elasticsearch do

build_hash_artifact = artifacts['version']['builds'].find do |build|
build.dig('projects', 'elasticsearch', 'commit_hash') == @build_hash
end
end || artifacts['version']['builds'].first
zip_url = build_hash_artifact.dig('projects', 'elasticsearch', 'packages').select { |k, _| k =~ /rest-resources-zip/ }.map { |_, v| v['url'] }.first

# Dig into the elasticsearch packages, search for the rest-resources-zip package and return the URL:
Expand Down

0 comments on commit 1bb3898

Please sign in to comment.