Fix bitbucket trigger to use the specified branch name before the default branch
This commit is contained in:
parent
6a52ffa942
commit
0e86fc80ca
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ class BitbucketBuildTrigger(BuildTriggerHandler):
|
|||
branch_name = run_parameters.get('branch_name')
|
||||
(result, data, _) = repository.get_main_branch()
|
||||
if result:
|
||||
branch_name = data['name'] or branch_name
|
||||
branch_name = branch_name or data['name']
|
||||
|
||||
# Lookup the commit SHA for the branch.
|
||||
(result, data, _) = repository.get_branches()
|
||||
|
|
Reference in a new issue