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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,496 views 0 5
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