Skip to content

Bitbucket Pipelines

Sean DeNigris edited this page Sep 3, 2017 · 1 revision

#Cloning a Private Repo

From Bitbucket:

  1. Set up an SSH Key
  2. Upload it to https://bitbucket.org/account/user/[USERNAME]/ssh-keys/
  3. Paste the Base64-encoded private key (via base64 ./path/to/id.rsa | pbcopy) into a secured environment variable (at https://bitbucket.org/account/user/[USERNAME]/addon/admin/pipelines/account-variables
  4. Add the SSH Key Before Cloning:
echo $PRIVATE_KEY > ~/.ssh/id_rsa.tmp
base64 -d ~/.ssh/id_rsa.tmp > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
Clone this wiki locally