Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing other repo than the repo where the builds run

Евгений Целиков
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!
November 20, 2018

Hi there, 

I've started with Pipelines configuration and would like someone to bring some light on following:

During pipeline step I have to perform "git clone" for another repo. It is located under the same account and has the public key of my own added.

How should I perform that properly? Getting repo doesn't exist accessing simply via git clone -b <branch> git@bitbucket/<address>.git

In other words I need the correct syntax and clarification for activity described here (https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html) -> Step3 -> Other Bitbucket cloud repositories

 

Thank you in advance for any help

1 answer

0 votes
davina
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 10, 2019

Hi @Евгений Целиков

What exactly do you need clarification on?

All you need to do is

1. Generate an SSH key in the repo where you are running the build https://bitbucket.org/<repo path>/admin/addon/admin/pipelines/ssh-keys

2. Copy the public key generated and add it to the access keys of the repository that you are cloning https://bitbucket.org/<repo path>admin/access-keys/

What error are you seeing? You might need to tweak permissions.

Let me know if this helps,

Davina

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events