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

How do you create a custom hook?

Joe Farkas Jan 19, 2018

According to these documents, 

https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html

https://confluence.atlassian.com/bitbucketserver/managing-webhooks-in-bitbucket-server-938025878.html#ManagingwebhooksinBitbucketServer-creatingwebhooks

adding a hook should be straightforward. However, where I go through those steps and Navigate to Project Settings > Hooks and then click on Add hook, it brings me to the "Atlassian Marketplace for Bitbucket" page. 

 

1 answer

1 vote
Jeremy Price Atlassian Team Jan 25, 2018

Hi Joe, 

Welcome to the community!

If you're trying to create a webhook, like in the documentation you're referring to, then you'll go to Repository Settings > Webhooks and click "Create webhook."   Webhooks are used to send requests to external services when certain repository operations happen.  If you're trying to create a custom repository hook, which is used to add logic to Bitbucket locally on repository operations, you would use this documentation.  These items are applied at the repository level.  The Project Settings > Hooks > Add Hook button is for adding pre-packaged hooks from the marketplace.  This is also the case with the Repository Settings > Hooks > Add Hook button.

Please let me know if you have any further questions.

Thanks!

Jeremy Price

Bitbucket Server Support

Lorenz Vanthillo Feb 07, 2018 • edited

I have the same question. The webhook thing works as you are explaining on bitbucket.com but we are hosting our own bitbucket on a server. When we want to add it here it redirects to the Marketplace. For now we are using this plugin to make everything work: https://marketplace.atlassian.com/plugins/com.nerdwin15.stash-stash-webhook-jenkins/server/overview but we are not very satisfied with it. What do we need to make the webhook thing available on our server? We are using BitBucket Atlassian Bitbucket v5.2.2 for now.

 

EDIT: It seems to be integrated in BitBucket 5.4

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

3,236 views 1 22
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