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

How to trigger jobs in jenkins which is in private network by bitbucket Webhook

ThangaTamilvanan
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!
August 21, 2024

Hi Everyone,

            I was not able to trigger jobs in jenkins server with PR approval and merge by  Bitbucket Webhook.  Jenkins server is in Private N/w with private IP only.

I see 403 Error in the bitbucket. I have tried Generic-webhook too. 

I tried IP whitelisting of following IP but no luck.

  • 104.192.136.0/21

  • 185.166.140.0/22

  • 13.200.41.128/25

image.png

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 23, 2024

Hello @ThangaTamilvanan ,

and welcome to the community!

The way that web-hooks works is by sending a request to your server when an event has triggered it. For Bitbucket Cloud to be able to send the request, your server will need to have a public IP address and be reachable through the internet.

It's not possible to send web-hook requests to private IP addresses or private network. If your Jenkins instance is under a private network, you'd at least have some sort of gateway/proxy with a public IP address that redirects the requests from Bitbucket to your internal Jenkins ip address.

For a full list of Bitbucket Cloud web-hooks IPs, you can refer to the documentation below:

Those IP addresses must be allowed in your firewall so Bitbucket can connect to it.

I hope that helps! Please let us know if you have any questions.

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events