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 fails because ssh-keyscan is not working as expected

I have tried all possible combination but still the pipeline. It worked 2 times in between but failed most of the time. I ensured bitbucket IPs are added into the AWS security group. Not sure whats going on.

bit.png

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 07, 2023

Hi @Jayon Niravel and welcome to the community!

If the operation succeeds sometimes but fails other times, I suspect that not all IPs may have been whitelisted.

For requests made from Pipelines build environments, the IP ranges that need to be whitelisted are listed below (section "Valid IP addresses for Bitbucket Pipelines build environments"):

Could you please double-check if all of them have been whitelisted?

Kind regards,
Theodora

@Theodora Boudale : Yes all the IPs where added in the security group. Infact I printed the public IP before executing the ssh-keyscan.
I noticed that since I am trying to perform ssh to the newly created EC2 machine via the pipeline itself, the machine dns might takes some time to show up. If I add sleep 15s; to the script, it works every time. Tried all sort of possibilities but nothing else works.

Like Vanessa Hoyos Arenas likes this

Suggest an answer

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

Atlassian Community Events