Skip to content

Commit 008677a

Browse files
committed
[CI] Adds STACK_VERSION to log results
1 parent 0bb5637 commit 008677a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.buildkite/log-results.sh

100644100755
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ buildkite-agent artifact download "elasticsearch-api/tmp/*.html" .
77
files="elasticsearch-api/tmp/*.html"
88
for f in $files; do
99
TEST_SUITE=`echo $f | grep -o "\(free\|platinum\)"`
10-
RUBY_VERSION=`echo $f | grep -Po "(\d+\.)+\d+"`
10+
RUBY_VERSION=`echo $f | grep -Po "(\d+\.)+\d+" | head -1`
11+
STACK_VERSION=`echo $f | grep -Po "([0-9.]+(-SNAPSHOT))"`
1112
EXAMPLES=`cat $f | grep -o "[0-9]\+ examples" | tail -1`
1213
FAILURES=`cat $f | grep -o "[0-9]\+ failures" | tail -1`
1314
PENDING=`cat $f | grep -o "[0-9]\+ pending" | tail -1`
14-
echo "--- :ruby: $RUBY_VERSION :test_tube: $TEST_SUITE :rspec: $EXAMPLES - :x: $FAILURES - :pinched_fingers: $PENDING"
15+
echo "--- :elasticsearch: $STACK_VERSION :ruby: $RUBY_VERSION :test_tube: $TEST_SUITE :rspec: $EXAMPLES - :x: $FAILURES - :pinched_fingers: $PENDING"
1516
done

elasticsearch-api/spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def self.included(context)
7474
config.add_formatter('RspecJunitFormatter', 'tmp/elasticsearch-api-junit.xml')
7575
config.add_formatter(
7676
'RSpec::Core::Formatters::HtmlFormatter',
77-
"tmp/elasticsearch-#{ENV['TEST_SUITE']}-#{RUBY_VERSION}.html"
77+
"tmp/elasticsearch-#{ENV['TEST_SUITE']}-#{RUBY_VERSION}-#{ENV['STACK_VERSION']}.html"
7878
)
7979
config.color_mode = :on
8080
end

elasticsearch-xpack/spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ def self.included(context)
5353
config.add_formatter('RspecJunitFormatter', '../elasticsearch-api/tmp/elasticsearch-xpack-junit.xml')
5454
config.add_formatter(
5555
'RSpec::Core::Formatters::HtmlFormatter',
56-
"tmp/elasticsearch-#{ENV['TEST_SUITE']}-#{RUBY_VERSION}.html"
56+
"../elasticsearch-api/tmp/elasticsearch-#{ENV['TEST_SUITE']}-#{RUBY_VERSION}-#{ENV['STACK_VERSION']}.html"
5757
)
5858
end

0 commit comments

Comments
 (0)