Pipelines - Access Bitbucket Repository

Hello All,

During my build process for my App I need to access another private Bitbucket repository through Bower. This repository is under the same project as the one that is being built. Here is the definition inside of my bower file:

ui-common: git@bitbucket.org:my-project/commonui.git

 

Is there anyway for me to assign a user for pipelines to pull the code down as?

 

Thanks,

Bryan

1 answer

0 vote
Joshua Tjhin Atlassian Team Nov 23, 2016

Hey Bryan,

Thanks for explaining your issue.

I believe since the git protocol falls back to SSH for private repositories you will need to do 2 things:

  1. Generate a ssh key pair
  2. Add the public key to the Bitbucket repositories as a deployment key
  3. Add the private key to your repository as a pipeline environment variable

Cheers,

Joshua

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

28,936 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you