Skip to content

Commit c58409e

Browse files
committed
abort plugin bump script if base version not found
Fixes #10254
1 parent 5701c84 commit c58409e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rakelib/bump_plugin_versions.rake

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ task :bump_versions, [:version, :allow_for] => [] do |t, args|
3030
puts "Fetching lock file for #{base_logstash_version}.."
3131
uri = URI.parse("https://raw.githubusercontent.com/elastic/logstash/v#{base_logstash_version}/Gemfile.jruby-2.3.lock.release")
3232
result = Net::HTTP.get(uri)
33+
if result.match(/404/)
34+
puts "Lock file or git tag for #{base_logstash_version} not found. Aborting"
35+
exit(1)
36+
end
3337

3438
base_plugin_versions = {}
3539
skip_elements = ["logstash-core", "logstash-devutils", "logstash-core-plugin-api"]

0 commit comments

Comments
 (0)