Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

BitBucket (self hosted) Pipeline / Post-Receive-Hook / Continous Integration - How To


Dear Atlassians,

we build up a inhouse vfx pipeline.

we have several machines with software packages loading startup scripts from a network folder. Now we want to use bitbucket for managing and tracking the development of those scripts.

my wish is the continous approach, that all changes in the repos, update as files on the network folder (best would be with subfolders with version from the tags).

So far i found in the bitbucket / admin / storage section a  -non-editable path.

So my question is:

Can anyone please help me out with the first steps in generating a working post-receive hook?

What is the best practive and reliable solution? 

thanks for your help!


1 answer

0 votes
Kristy Atlassian Team Aug 02, 2020

Hi @Marc Mantei ,


There are two options for you: Using a webhook and using a post-receive hook.

If you would like your solution to be a microservice managed by you, then a webhook is the way to go. All you have to do is expose an endpoint for the webhook to trigger on push, and enable the Webhook in the Bitbucket Server repository. Bitbucket Server will then send your microservice a notification to that endpoint after every push (or whatever event you want the webhook to trigger on). See this page for more details.

If you want your solution to be a custom plugin within Bitbucket Server, you can do that too, and that would be using the post-receive hook that you were referring to. To do this you would need to implement a Java Plugin, and then implement a custom hook. Some details on how to do that can be found here:


In terms of which is more practical and reliable - both are fine. It really just depends on how you want to implement your solution (self-managed microservice or plugin installed in Bitbucket Server)


Hope that helps! Let us know if you have any more questions. 




Developer on Bitbucket Server

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,527 views 4 8
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