Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Feb 21, 2024
1 parent 3a472c4 commit 18d7161
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .buildkite/run-elasticsearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ fi

echo "--- :elasticsearch: Environment setup"
echo "TEST_SUITE: $TEST_SUITE"
echo "STACK_VERSION: $STACK_VERSION"
echo "Elasticsearch URL: $elasticsearch_url"
echo "Elasticsearch External URL: $external_elasticsearch_url"

Expand Down
4 changes: 4 additions & 0 deletions rake_tasks/elasticsearch_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,15 @@ namespace :elasticsearch do
task :download_artifacts, :version do |_, args|
json_filename = CURRENT_PATH.join('tmp/artifacts.json')

puts "+++ ENV-STACK_VERSION #{ENV['STACK_VERSION']}"
puts "+++ args[:version] #{args[:version]}"
unless (version_number = args[:version] || ENV['STACK_VERSION'])
# Get version number and build hash of running cluster:
version_number = cluster_info['number']
puts "+++ version number #{version_number}"
@build_hash = cluster_info['build_hash'] if cluster_info['build_hash']
end
puts "+++ STACK_VERSION #{version_number}"

# Create ./tmp if it doesn't exist
Dir.mkdir(CURRENT_PATH.join('tmp'), 0700) unless File.directory?(CURRENT_PATH.join('tmp'))
Expand Down

0 comments on commit 18d7161

Please sign in to comment.