From 9392e632bce0385d44c67ef81d5b60de35d255ea Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 10 Dec 2013 20:56:32 +0000 Subject: [PATCH] brew-test-bot: fix testing job tag numbering. --- Library/Contributions/cmd/brew-test-bot.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index a220e2c0bb..b99da09cf2 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -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/"