Unable to push branch created by JIRA when system Hooks plugin is enabled 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

0 votes
Accepted answer

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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

426 views 6 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you