Skip to content

Commit 488cb2b

Browse files
committed
debug
1 parent ae9f2a8 commit 488cb2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

report/download_artifacts.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ def version
3434
if (branch = ENV['BRANCH'])
3535
require 'open-uri'
3636
require 'yaml'
37-
branch = 'master' if branch == 'main'
37+
branch = 'master' if branch == 'main' # main is 404 for now
38+
puts "Using branch: #{branch}"
3839
versions = URI.open("https://snapshots.elastic.co/latest/#{branch}.json").read
3940
YAML.safe_load(versions)['version']
4041
else
4142
ENV['STACK_VERSION'] || read_version_from_github
4243
end
44+
rescue StandardError => e
45+
puts "URL: #{https://snapshots.elastic.co/latest/#{branch}.json}"
4346
end
4447

4548
#

0 commit comments

Comments
 (0)