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 Pipelines: Unable to checkout git submodules with local macOS pipeline runner

Hi,

 

I have simple pipeline config where I have to checkout git submodules via an other git repository (which is also hosted on bitbucket cloud)

 

First it tried to just call:

- git submodule update --init --recursive


But the pipeline always got stuck (without any error)

 

So I tried to setup my ssh settings as described here:

https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-macos/

 

This ends in the same problem, pipeline got stuck.

 

So I tried to setup my ssh settings as described here:

https://support.atlassian.com/bitbucket-cloud/docs/set-up-pipelines-ssh-keys-on-macos/

 

This ends in the same problem, pipeline got stuck.

 

I don't know which documentation is newer? And is it still required to setup a custom ssh key to fetch git submodules from a git repository (which is hosted on bitbucket cloud)

 

I have also added the public key to the access keys on the git repository.

 

Is there any way to get this running on a macOS pipeline runner?

1 answer

1 accepted

0 votes
Answer accepted

I figured it out myself, the problem is that the macOS pipeline runner downloads the ssh keys which are created via Pipelines -> SSH Keys but ignores the known hosts which are created there. So I had to create a known_hosts file in my ~/.ssh directory.

Suggest an answer

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

Atlassian Community Events