Skip to content

Commit 3b99969

Browse files
committed
[CI] Print out Elasticsearch container info
1 parent 702fd53 commit 3b99969

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rake_tasks/elasticsearch_tasks.rake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,13 @@ namespace :elasticsearch do
197197
end
198198

199199
es_version_info = admin_client.info['version']
200-
unless build_hash = es_version_info['build_hash']
201-
STDERR.puts "[!] Cannot determine checkout build hash -- server not running"
200+
unless (build_hash = es_version_info['build_hash'])
201+
$stderr.puts "[!] Cannot determine checkout build hash -- server not running"
202202
exit(1)
203203
end
204204

205+
$stdout.puts "ELASTICSEARCH INFO: #{es_version_info}"
206+
205207
name = ENV['CI'] ? build_hash : "[\e[1m#{build_hash}\e[0m]"
206208
STDERR.puts '-'*80, "YAML tests: Switching to #{name} from #{current_branch}", '-'*80
207209
git_specs("checkout #{build_hash} --force --quiet")

0 commit comments

Comments
 (0)