diff --git a/lib/test_boosters/insights_uploader.rb b/lib/test_boosters/insights_uploader.rb index b0cdef3..23a26c4 100644 --- a/lib/test_boosters/insights_uploader.rb +++ b/lib/test_boosters/insights_uploader.rb @@ -3,7 +3,7 @@ module InsightsUploader module_function def upload(booster_type, file) - return unless File.exist?(file) + return if ENV['TB_DISABLE_INSIGHTS'] || !File.exist?(file) cmd = "http POST '#{insights_url}' #{booster_type}:=@#{file}"