File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 4141 - name : elasticsearch
4242 run : cd elasticsearch && bundle exec rake test:all
4343 - name : elasticsearch-api
44- run : rake es:download_artifacts[9.3.0-SNAPSHOT ] && cd elasticsearch-api && bundle exec rake test:all
44+ run : rake es:download_artifacts[main ] && cd elasticsearch-api && bundle exec rake test:all
Original file line number Diff line number Diff line change 4343 - name : elasticsearch
4444 run : cd elasticsearch && bundle exec rake test:all
4545 - name : elasticsearch-api
46- run : rake es:download_artifacts[9.3.0-SNAPSHOT ] && cd elasticsearch-api && bundle exec rake test:all
46+ run : rake es:download_artifacts[main ] && cd elasticsearch-api && bundle exec rake test:all
Original file line number Diff line number Diff line change @@ -89,8 +89,13 @@ namespace :es do
8989 # works in new API.
9090 #
9191 # Get the latest minor from version number, and get latest snapshot
92- major_minor = version_number . split ( '.' ) [ 0 ..1 ] . join ( '.' )
92+ major_minor = if version_number == 'main'
93+ 'master'
94+ else
95+ version_number . split ( '.' ) [ 0 ..1 ] . join ( '.' )
96+ end
9397 url = URI ( "https://artifacts-snapshot.elastic.co/elasticsearch/latest/#{ major_minor } .json" )
98+
9499 manifest_url = JSON . parse ( Net ::HTTP . get ( url ) ) [ 'manifest_url' ]
95100 download_file! ( manifest_url , json_filename )
96101
You can’t perform that action at this time.
0 commit comments