brew-test-bot: fix testing job tag numbering.

This commit is contained in:
Mike McQuaid 2013-12-10 20:56:32 +00:00
parent fea5fcf25b
commit 9392e632bc

View File

@ -422,7 +422,8 @@ if ARGV.include? '--ci-pr-upload' or ARGV.include? '--ci-testing-upload'
remote = "git@github.com:BrewTestBot/homebrew.git"
pr = ENV['UPSTREAM_PULL_REQUEST']
tag = pr ? "pr-#{pr}" : "testing-#{id}"
number = ENV['UPSTREAM_BUILD_NUMBER']
tag = pr ? "pr-#{pr}" : "testing-#{number}"
safe_system "git push --force #{remote} :refs/tags/#{tag}"
path = "/home/frs/project/m/ma/machomebrew/Bottles/"