Bitbucket cloud webhooks for create pull request doest not trigger Jenkins pipeline build

We have a requirement to trigger a Jenkins Pipeline build when a pull request is created.

Below are the configurations that we have for Bitbucket :

1: Added a webhook with URL with active state


2: Selected radio button Choose from a full list of triggers

3: Selected Pull Request event, Pull Request Created

On the Jenkins side we have below configurations:

1: Poll SCM set to true with a longer interval

2: Discover Branches Strategy: "All Branches"

3: Bitbucket Enpoints > Bitbucket Cloud > Manage Hooks set to checked

Logs on Jenkins server: 

X-Bitbucket-Type header not found. Bitbucket Cloud webhook incoming.

Finished processing com.cloudbees.jenkins.plugins.bitbucket.hooks.PullRequestHookProcessor$1 CREATED event from  ⇒ http://<JenkinsHost>:<jenkinsport>/bitbucket-scmsource-hook/notify with timestamp  Matched 0.

It seems it is not able to detect the changes as it always says Matched 0.

If we change the trigger from Pull request created to Repo push everything seems to work fine, only Pull request created does not work

Are we missing any specific setting on Bitbucket or Jenkins side? 




2 answers

Please use the . It will trigger the build when PR created and Updated. It also hold all the payload from bitbucket webhook.

any reply on this.

I m also facing the same.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

161 views 6 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you