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

How to get webhook working with Bitbucket Server and Jenkins

Simple setup on a couple of VMs for testing/learning.

vm1. Jenkins 2.176.3-1.1 on CentOs 7.6. 
vm2. Bitbucket Server on Centos 7.6

I have created a repo in Bitbucket server and I have created a build (simple test) and Jenkins does connect to Bitbucket and pull down the repo.  So the Jenkins to Bitbucket build piece appears to be working.

I want to configure a webhook so that the build triggers on a push to the repo.

So I have installed:

Bitbucket Plugin Installed in Jenkins

Post Webhooks For Bitbucket plugin installed in BitBucket Server

Follow along to the instructions here

and here

In my bitbucket server repo

Repository settings > Webhooks > Create Webhook

Name: webhook
URL: http://vm1:8080/job/train-schedule/bitbucket-hook/

Click Test and get

403 - "No valid crumb was included in the request"

I suspect something is wromg with the URL value. Anyone know how to fix?

1 answer

I have encountered this. I fixed it by doing something like this:


Or if it still doesn't work



My Jenkins was behind a load balancer so I'm not sure which of the two will work.

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,441 views 4 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