diagnostic: guard cache check on Jenkins too

This commit is contained in:
Dominyk Tiller 2018-02-12 10:11:45 +00:00
parent 918f1b775b
commit 51ed7983a5
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -837,7 +837,8 @@ module Homebrew
def check_for_large_cache
return unless HOMEBREW_CACHE.exist?
return if ENV["CI"] # CI can be expected to have a large cache.
# CI can be expected to have a large cache.
return if ENV["CI"] || ENV["JENKINS_HOME"]
cache_size = HOMEBREW_CACHE.disk_usage
return unless cache_size > 2_147_483_648
<<~EOS