I m trying to run some git commands on the pipeline, I tried two solutions none of them worked;
- generated an ssh key from the repository settings
- copied the public key into the authorized_keys file via this command. (this command is in the .yml file )
- cat my_ssh_key.pub >> ~/.ssh/authorized_keys
- git config user.name $MY_GIT_USERNAME
- git config user.email $MY_GIT_EMAIL
Note: the repository is a bitbucket repos and is where the pipeline is running. So no external repos.
Also followed the steps here but it's not helping
Am I missing something ?
When you configure an SSH key in your repository's Settings > Pipelines > SSH keys, you are presented with two options:
Obviously you want the Use my own keys option which grants read and write access. You can use team-level SSH keys so that CI scripts aren't tied to a specific user (although you'll get warnings about it).
Here's the process:
Here's hoping Bitbucket Pipelines will provide much easier git write access and hopefully before Bitbucket removes team-level SSH.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Happy Friday – Fun Day! I don’t know about you, but I have been giving everything I’ve got this week (and most weeks) and come Friday I look for unique ways to recharge my batteries - rest, relax, a...
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!
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