From 5d03149d816b66ae4375636d8182e99c2b320628 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 14 Sep 2013 12:34:56 +0100 Subject: [PATCH] brew-test-bot: use Jenkins variables when no args. Otherwise specifying arguments means that you can't effectively build just a single commit or pull request as Jenkins will try and override the start commit. --- Library/Contributions/cmd/brew-test-bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 2b0b5e0141..b98236f00c 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -165,7 +165,7 @@ class Test @start_branch = current_branch # Use Jenkins environment variables if present. - if ENV['GIT_PREVIOUS_COMMIT'] and ENV['GIT_COMMIT'] \ + if no_args? and ENV['GIT_PREVIOUS_COMMIT'] and ENV['GIT_COMMIT'] \ and not ENV['ghprbPullId'] diff_start_sha1 = shorten_revision ENV['GIT_PREVIOUS_COMMIT'] diff_end_sha1 = shorten_revision ENV['GIT_COMMIT']