Need information about VCS Tagging and Branching

not sure what they are or what they do and to what they do it two.. I also can't find anything about them in the interwebs

4 answers

1 accepted

0 vote

Those tasks allow you to respectively tag and branch revision of a source repository. Tagged/branched revision is the same as the revision Job builds. At the moment these Task only support Subversion repos, but there are plans to add support for Mercurial and Git.

Fantastic.. maybe you could give me a little bit more detail..

so if my Repos is.. http://svn.mysite.com/repos/code/branch/thisismybranch

and I run the branch or Tag task.. will I end up with http://svn.mysite.com/repos/code/branch/newbranch or http://svn.mysite.com/repos/code/tag/thisismybranch

Where I work we currently operate under a Function Branch modle so we have Trunk (should always work in production), Branches (where the Dev's work), QA (a moment in time svn cp of the Dev's Branch usually with a version # for a name, Tags (the svn cp of QA for the release to prod) which will be merged to Trunk after the release..

How do the new tasks work in relation to a real life model..

-John

>[...]so if my Repos is.. http://svn.mysite.com/repos/code/branch/thisismybranch[...]

Default behaviour of branching is (behaviour of tagging in brackets):

- if path already contains directory called branch or branches (tag or tags for tagging) this is assumed to be correct root

- otherwise we cut the last part of the path, append word branch (tag) to it and check if such path exists, If so, we assume this is correct root

- else we append the word branches (tags)

You can override this in advanced section of your SVN repository configuration where you can manually defined root path for branches and tags.

So in your example:

If you run Branching task and name your branch 'newBranch', the path will be:

http://svn.mysite.com/repos/code/branch/newBranch

(because 'branch' is detected in the source path)

If you run Tagging task, and name your tag 'newTag', the path will be:

http://svn.mysite.com/repos/code/tags/newTag

or

http://svn.mysite.com/repos/code/tag/newTag

(the task checks which one already exists in the repository; uses 'tags' if neither)

Thank you that makes a lot more sense now..

This is not working for me at all.

I want to tag svn+ssh://svn.mysite.com/yeti/trunk with a tag of "LAST_SUCCESSFUL_BUILD". I tried specifying the repository with and without "/trunk".

I also tried with and without manually specifying the tags directory, which is actually at svn+ssh://svn.mysite.com/yeti/tags .

No matter what settings I use, I get a RepositoryException with the message "Path svn+ssh://svn.corp.lumeta.com/yeti/trunk/tags does not exist."

Running Atlassian Bamboo version 4.1.2 build 3103 - 21 Jun 12

Hi there,

1. Can you please try to use svn+ssh://svn.corp.lumeta.com/yeti URL? I believe the "tags" directory is located in "yeti", right?

2. Are you able to do the tagging from command line using the same URL?

If you are still experiencing the same problem, please open a ticket on https://support.atlassian.com and provide your build logs, Bamboo server log file and screenshot of the tagging task configuration page.

Cheers,
Armen

I was able to get it to work by using svn+ssh://svn.corp.lumeta.com/yeti/trunk, automatic detection of tags URL, and authentication type password. It's this latter that I think may have been the issue. Previously, I was trying to use SSH authentication, which works for checkout (and on the command line).

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,319 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