This question is in reference to Atlassian Documentation: How to push to repository under SSH protocol using Script task
This solution works fine, as long as "Everyone" can push to the branch in question.
What if the branch is configured with permissions, allowing only certain users to push to the branch?
I managed to solve it, finally.
Solution:
1. Created a new user in Stash
2. Created a new pair of ssh keys on the bamboo server
3. updated ~/.ssh/config with the new private key
4. Added the public key to the new user in Stash
5. Gave the new user permission to push to the branch
6. Made sure git (AND the maven-release-plugin) uses the repo host based on the ssh config
et voila, that worked.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.