I m trying to run some git commands on the pipeline, I tried two solutions none of them worked;
1.
- 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
2.
- 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
https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html
Am I missing something ?