Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket pipeline firewall, access to external IP

Vitalii Vereta
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!
March 2, 2023

Hi All,

I want to send a curl request to my company's server inside a pipeline.

I suppose there is some kind of firewall 

My simplified yaml:

image:
name: gcr.io/...
username: _json_key
password: '$GCR_JSON_KEY'
pipelines:
custom:
test:
- step:
name: Test
script:
- ping -c 4 google.com
 

 Have I missed something?

 

2 answers

2 accepted

0 votes
Answer accepted
Georgii Zemlianyi
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!
November 13, 2023

Hi @Vitalii Vereta , that's a great question! You can try using your company's proxy to resolve the issue.


pipelines:
default:
- step:
name: Build and Push
script:
- export HTTP_PROXY: "http://username:password@proxy2.domain.com"
- export HTTPS_PROXY: "http://username:password@proxy2.domain.com"
- docker build --build-arg HTTP_PROXY="http://proxy.example.com:3128" 
0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 3, 2023

Hi Vitalii and welcome to the community!

What is the output that you get from the curl command in your Pipelines build?

Bitbucket Pipelines do not block requests to external servers. If your company's server is behind a firewall that blocks connections, you may need to whitelist the IP addresses used by Pipelines build environments:

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events