We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae9f2a8 commit 488cb2bCopy full SHA for 488cb2b
report/download_artifacts.rb
@@ -34,12 +34,15 @@ def version
34
if (branch = ENV['BRANCH'])
35
require 'open-uri'
36
require 'yaml'
37
- branch = 'master' if branch == 'main'
+ branch = 'master' if branch == 'main' # main is 404 for now
38
+ puts "Using branch: #{branch}"
39
versions = URI.open("https://snapshots.elastic.co/latest/#{branch}.json").read
40
YAML.safe_load(versions)['version']
41
else
42
ENV['STACK_VERSION'] || read_version_from_github
43
end
44
+ rescue StandardError => e
45
+ puts "URL: #{https://snapshots.elastic.co/latest/#{branch}.json}"
46
47
48
#
0 commit comments