So following https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html
I am having issues. I have generated SSH key from the pipelines settings in the bitbucket settings for my pipeline repo, and added the pub key to the other repo I want to clone.
I then have my first step as:
- git clone git@bitbucket.org:organization/repo.git
And I am getting:
+ git clone git@bitbucket.org:organization/repo.git
Cloning into 'repo'...
Host key verification failed.
fatal: Could not read from remote repository.
Even though the docs say "Note that Bitbucket Pipelines automatically adds the fingerprint for the Bitbucket and GitHub sites to all pipelines" I still tried to add it to the known hosts in the pipelines settings. Even then, I still got the same error.
What do I need to do to get this working?