test-bot: use another method to find Jenkins PR.
This commit is contained in:
parent
c2ece46e1b
commit
b3ed00b791
@ -304,6 +304,11 @@ module Homebrew
|
||||
@url = ENV["ghprbPullLink"]
|
||||
@hash = nil
|
||||
test "git", "checkout", "origin/master"
|
||||
elsif ENV["GIT_BRANCH"] && ENV["GIT_URL"]
|
||||
%r{origin/pr/(\d+)/(merge|head)} =~ ENV["GIT_BRANCH"]
|
||||
pr = $1
|
||||
@url = "#{ENV["GIT_URL"]}/pull/#{pr}"
|
||||
@hash = nil
|
||||
# Use Travis CI pull-request variables for pull request jobs.
|
||||
elsif travis_pr
|
||||
@url = "https://github.com/#{ENV["TRAVIS_REPO_SLUG"]}/pull/#{ENV["TRAVIS_PULL_REQUEST"]}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user