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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Does Bitbucket Cloud support git pre-receive hooks?

I would like to configure a Bitbucket Cloud git repository with a pre-receive hook. Is this possible?

2 answers

1 accepted

0 votes
Answer accepted
jredmond Atlassian Team Nov 28, 2018

It is not currently possible.

@jredmond are there plans to add this feature such that I could watch a feature request issue for updates?

Hi @Johnathan Gilday 

As an alternative, until Atlassian delivers this, you can give Better Commit Policy for Bitbucket a try! It allows you to install local hooks, so you can verify commit right on the developers' computer at commit time. As long as it's consistently used across the developer team, it can work as an alternative to a server-side hook.

(Please note that the app relies on Better Commit Policy for Jira!) 

Better Commit Policy for Bitbucket seems to be supported only in Server / Datacenter and not in Cloud.

Hi @_abhishekgarg 

Yes, that's why I mentioned local hooks, as a workaround (and that it relies on  Better Commit Policy for Jira Server) until Atlassian delivers pre-receive hooks. As long as the local hooks are consistently used across the developer team, it can work as an alternative to a server-side hook.

So it's not yet available to be directly installed on Bitbucket Cloud, and Bitbucket Cloud also doesn't allow you to configure pre-receive hooks. You can read more about how this workaround can work here.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,130 views 0 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you