test-bot: use UPSTREAM_BOTTLE_KEEP_OLD.
This is set by Jenkins to indicate a downstream bottle upload job needs to use `brew bottle --keep-old`.
This commit is contained in:
parent
2e5e9286f7
commit
3acaecca8b
@ -857,7 +857,11 @@ module Homebrew
|
||||
safe_system "brew", "pull", "--clean", pull_pr
|
||||
end
|
||||
|
||||
if ENV["UPSTREAM_BOTTLE_KEEP_OLD"]
|
||||
system "brew", "bottle", "--merge", "--write", "--keep-old", *json_files
|
||||
else
|
||||
system "brew", "bottle", "--merge", "--write", *json_files
|
||||
end
|
||||
|
||||
remote = "git@github.com:BrewTestBot/homebrew-#{tap.repo}.git"
|
||||
git_tag = pr ? "pr-#{pr}" : "testing-#{number}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user