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

Bitbucket Pipelines: Unable to checkout git submodules with local macOS pipeline runner

Patrick Steiner March 7, 2023

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
Patrick Steiner March 7, 2023

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