Working with git

Why is it that there is no native way for bamboo to create a tag for a git repository or to get the username used to access a git repository, but for svn it's available? I thought bamboo would be awesome to work with in collaboration with stash, but as far as my experience goes, it's way easier to build bamboo plans around svn repositories. Is there an explanation for that, and will that change in the future?

1 answer

Support for tagging and branching via a Bamboo Task is tracked here on JAC https://jira.atlassian.com/browse/BAM-9139.

But tagging a git commit is not something special ;-)

You just can use a script task and run

git tag my-version-number
git push origin --tags

We are using Bamboo in a Git Environment and have defined a global command in Bamboo to tag and push it.

I've tried that, but it wont work since Bamboo will just push the tag to the local repository cache instead of the real repository. Adding the real repository to the remotes is not an option since we are bound to use username:password authentication and there's no easy way to insert that into the bamboo.repository.git.repositoryUrl.

You have to disable shallow Clones and repository caching of course.

Thanks for the tips, would you be so kind to tell me where I can disable the repository caching? I couldn't find that option in the global repository settings or the repository settings for the build plan...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

280 views 0 6
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