Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to push branch created by JIRA when system Hooks plugin is enabled

Gonchik Tsymzhitov
Contributor
September 25, 2017 edited

We have run into a bug using the system hooks plugin, when creating branches via JIRA and trying to push them to the Bitbucket server 5.3.2.

Anybody knows about this problem? 

 

image.png \

 

It is like this

https://community.atlassian.com/t5/Product-Apps-discussions/Unable-to-push-branch-created-locally-when-File-Hooks-plugin-is/td-p/612681

 

If I Understand coorrect, it is similar problem.

 

 

 

 

1 answer

1 accepted

1 vote
Answer accepted
Gonchik Tsymzhitov
Contributor
September 25, 2017

This condition is helped me.:)

if (refChange.getFromHash().equals("0000000000000000000000000000000000000000")) {
request = new CommitsBetweenRequest.Builder(repository)
.include(refChange.getToHash())
.build();
} else {
request = new CommitsBetweenRequest.Builder(repositoryHookRequest.getRepository())
.exclude(refChange.getFromHash())
.include(refChange.getToHash())
.build();
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events