Pushing from bamboo to a branch with permissions set?

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?

1 answer

I managed to solve it, finally.

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.

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

279 views 6 15
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot