Get BB to call private jenkins using hooks


#1

Hi,

I have a private Jenkins server that I need to add bitbucket hooks to it.

At the moment this is not possible but i am planning to whitelist bitbucket IP addresses

My main problem here, I wan to validate that all calls coming from BB belong to my repositories only and nothing else.

Any advice ?


#2

I’m assuming that you’re talking about Bitbucket Cloud? If so the ips are detailed at https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html


#3

Thanks for your reply. Yes, I am talking about BB cloud. However, allowing IPs in the URL you’ve sent will allow every other repo -outside our company team- to call our Jenkins server. how to overcome this problem ?


#4

I haven’t used the Bitbucket->Jenkins integration, but could you add a “secret” parameter that you can then validate on the web server front end?

You might want to take this question over to the Atlassian User Community (https://community.atlassian.com ) to see if there are folks there that might have experience with this. (This community is more focused on development of things using Atlassian’s api’s etc).