Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

enable an update hook in bitbucket git repository

Benny Nissimov May 3, 2013

Hi,

I'm looking for way to create a git server side push hook (will be used to enforce referencing JIRA ticket number in each commit message).

According to pro git - git hooks, the git hook to use on the server side is 'update', which exists on .git/hooks dir.

How do I perform it in my bitbucket git repo?

Thanks,

Benny

2 answers

1 accepted

0 votes
Answer accepted
aMarcus
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 5, 2013

At the moment, Bitbucket doesn't support this. We do have an open issue for it though. Please go review it and add your comments!

aamelkin July 6, 2017

Will this ever be available for Butbucket Server (not Cloud) ?

aamelkin July 7, 2017

Ok, I've created a solution for Bitbucket Server.

It requires filesystem access with admin/root rights to the Bitbucket Server host, but it works fine.

Please see https://github.com/AlexanderAmelkin/bitbucket-git-hooks-for-jira

0 votes
Midori
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2016

Although Bitbucket doesn't allow you to configure the server-side hooks, there is a really neat method to verify commit messages using local hooks!

See: Commit Policy with Bitbucket Cloud

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events