diff options
| author | Mike McQuaid | 2013-12-10 21:32:29 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-12-10 21:32:29 +0000 |
| commit | 95087c928806187b02414d98625d84f2f55ca7b0 (patch) | |
| tree | 029a8c307fd54f6d1036b4514b58d1207e59af10 /Library | |
| parent | 8cb0f87b3db5f31d23a434e7f0a941d294993982 (diff) | |
| download | homebrew-95087c928806187b02414d98625d84f2f55ca7b0.tar.bz2 | |
brew-test-bot: only merge bottles if copy succeeds.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index b99da09cf..919b81ab5 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -417,7 +417,8 @@ if ARGV.include? '--ci-pr-upload' or ARGV.include? '--ci-testing-upload' raise "Missing Jenkins variables!" unless jenkins and job and id ARGV << '--verbose' - safe_system "cp #{jenkins}/jobs/\"#{job}\"/configurations/axis-version/*/builds/#{id}/archive/*.bottle*.* ." + copied = system "cp #{jenkins}/jobs/\"#{job}\"/configurations/axis-version/*/builds/#{id}/archive/*.bottle*.* ." + exit unless copied safe_system "brew bottle --merge --write *.bottle*.rb" remote = "git@github.com:BrewTestBot/homebrew.git" @@ -432,7 +433,7 @@ if ARGV.include? '--ci-pr-upload' or ARGV.include? '--ci-testing-upload' safe_system "rsync #{options} *.bottle.tar.gz #{url}" safe_system "git tag --force #{tag}" safe_system "git push --force #{remote} refs/tags/#{tag}" - exit 0 + exit end tests = [] |
