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
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.