Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Bitbucket pipeline firewall, access to external IP

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!
Nov 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.
Mar 03, 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