diff options
| author | Mike McQuaid | 2013-09-14 12:34:56 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-14 12:34:56 +0100 |
| commit | 5c0fd2b3e9e2a7d3cd891d4bf0b9125cf52e4532 (patch) | |
| tree | 42cad9e0501f10cc71067b0915b0826933a9a3ac /Library | |
| parent | 3c3f4ad8c5b3d58a951a376f75375a52c99b70e1 (diff) | |
| download | homebrew-5c0fd2b3e9e2a7d3cd891d4bf0b9125cf52e4532.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 2b0b5e014..b98236f00 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'] |
