-
-
Notifications
You must be signed in to change notification settings - Fork 2
Bitbucket Pipelines
Sean DeNigris edited this page Sep 3, 2017
·
1 revision
#Cloning a Private Repo
From Bitbucket:
- Set up an SSH Key
- Upload it to https://bitbucket.org/account/user/[USERNAME]/ssh-keys/
- 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 - 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