Skip to content
Snippets Groups Projects
Commit 5d03149d authored by Mike McQuaid's avatar Mike McQuaid
Browse files

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.
parent 7535ba3b
No related branches found
No related tags found
No related merge requests found
......@@ -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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment