Missed Team ’24? Catch up on announcements here.

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

How to setup Webhooks from Bitbucket to Jenkins ?

fpanichi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 21, 2021

Hi Everybody !

I need some help to solve an issue that I have on Bitbucket.

I have created my pipeline in Jenkins (Jenkinsfile) and I have setup the webhooks section according to the documentation.

I can build manually from Jenkins (success) but the webhook does not work at all (no communication between both platforms)

My jenkins pipeline cannot be trigged from the webhook if I make a change in bitbucket directly.

Here is what I have done so far:

Bitbucket => Webhooks

URL : http://myjenkinsserverurl/bitbucket-hook/

OR

URL: http://Username:Password@myjenkinsserverurl/bitbucket-hook/

Status: Active

SSL/TLS: unchecked

Triggers: Push

 

Pipeline configuration in my jenkins job

Build trigger: Build when a change is pushed to BitBucket

 

I have been searching on internet and I have followed all the tips that I could find, nothing works.

 

Any bright idea ?

Thank you !

Kind regards !

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 28, 2021

Hi @fpanichi 

Welcome to the community!

To investigate a webhook trigger I would suggest you enable the webhook logs by navigating on the webhook tabs > click on View request beside your webhook trigger > then click Enable History.

This will enable history logs on your webhook trigger, you can then create a push to see if that triggers the webhook and view the logs to see if it's sending to your Jenkins server accordingly.

I hope this helps, let me know how it goes.

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events