Troubleshooting Bitbucket Cloud Pipeline IP Whitelisting
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
Bitbucket Pipeline is unable to connect to the server even after whitelisting Pipeline IPs provided on the IP addresses to allowlist in your corporate firewall
Environment
Bitbucket Cloud pipelines
Diagnosis
The Pipeline build is unable to connect to the server completely or intermittently even after whitelisting all the mentioned pipeline IPs.
Cause
It is possible that Server has not whitelisted all the Pipeline IPs from the list.
Solution
Use curl ifconfig.me command in the Bitbucket Pipeline IP and run the Pipeline.
If the connection fails in the Pipeline build, find out which Bitbucket IP was used in the specific build and confirm if the IP was whitelisted or not on the server end.
In the below example shown, "34.216.18.129" is the Pipelines IP address.
curl ifconfig.me
+ curl ifconfig.me
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 13 100 13 0 0 122 0 --:--:-- --:--:-- --:--:-- 123
34.216.18.129
References
Still having problems?
Contact Atlassian Support. We'll be happy to advise you. Please include as much detail as possible, where applicable:
- Logs from the affected application (if applicable)
- Screenshots of the error message (if they're not covered in logs)
- Information about the steps you've taken previously