File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ namespace :elasticsearch do
50
50
end
51
51
end
52
52
53
-
54
53
def package_url ( filename , build_hash )
55
54
begin
56
55
artifacts = JSON . parse ( File . read ( filename ) )
@@ -93,11 +92,13 @@ namespace :elasticsearch do
93
92
task :download_artifacts do
94
93
json_filename = CURRENT_PATH . join ( 'tmp/artifacts.json' )
95
94
96
- # Get version number and build hash of running cluster:
97
- version_number = cluster_info [ 'number' ]
98
- build_hash = cluster_info [ 'build_hash' ]
95
+ unless ( version_number = ENV [ 'STACK_VERSION' ] )
96
+ # Get version number and build hash of running cluster:
97
+ version_number = cluster_info [ 'number' ]
98
+ build_hash = cluster_info [ 'build_hash' ]
99
+ puts "Build hash: #{ build_hash } "
100
+ end
99
101
100
- puts "Build hash: #{ build_hash } "
101
102
# Create ./tmp if it doesn't exist
102
103
Dir . mkdir ( CURRENT_PATH . join ( 'tmp' ) , 0700 ) unless File . directory? ( CURRENT_PATH . join ( 'tmp' ) )
103
104
You can’t perform that action at this time.
0 commit comments