How to create a server side hook in Bitbucket cloud?

Thomas Kilgus August 28, 2017

Hi there,

I would like to create a server-side pre-receive hook in one of my repositories, that rejects pushes with files larger than X MB. The common git way is to add the hook to .git\hooks and make a bare repository to clone from/push to. How can I achieve that in the Bitbucket cloud?

Thanks in advance!

Regards,

Thomas

2 answers

0 votes
Deleted user November 29, 2018

I believe the answer is "You can't".  If you want server side hooks, you must use Bitbucket Server, not Bitbucket Cloud.  Your only option is to create a webhook that calls an API endpoint that you create, that then calls the Bitbucket API (assuming the BB API can achieve what you want to achieve).

0 votes
Thomas Kilgus June 26, 2018

So almost 1 year later, nobody can answer this?

Matt Russell July 24, 2018

*Tumbleweed*

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events