I am currently using a private Jenkins instance and would like to integrate it securely with Bitbucket Cloud. My primary concerns are around ensuring that the communication between Jenkins and Bitbucket remains secure while adhering to best practices for authentication and data exchange.
Could you kindly provide information or recommend a secured solution for this use case?
Hi Dan and welcome to the community!
As far as I'm aware, most integrations between Bitbucket Cloud and Jenkins use webhooks. There is a Bitbucket app in the Atlassian Marketplace:
There are also several Bitbucket plugins for Jenkins:
Bitbucket webhooks make requests to another server over the internet, so the Jenkins server will need to have a public IP address or domain name for Bitbucket to be able to reach it.
If your server is behind a firewall and if the integration you use indeed uses webhooks, you may need to allowlist the IP addresses used for webhook delivery. You can find these IP ranges on the following page, section Outgoing connections:
If you need to whitelist additional IPs for the Jenkins server to be able to clone Bitbucket repos or run API calls, you can find the IPs used by Bitbucket Cloud on the following page, section Valid IP addresses for bitbucket.org, api.bitbucket.org, and altssh.bitbucket.org:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.