views:

286

answers:

4
+1  Q: 

Bamboo Versioning

Hello guyz, I have a situation where i need to maintain version information of my builds. By googling i found limited information. one way is to create a version file on source control and keep updating. other is to use the source control revision number. final one is to use bamboo build number. i haven't implemented anyone of this before. colud anyone point out the pros and cons of each method.

Thank you, Reddy.

Please atleast tell me which method have u used to implement the same. Thnq..

+1  A: 

Good question. I've done this in kind of an ad-hoc manner before. I don't strongly advocate the following approach, but I'll list it anyway for comparison with the (I hope) better approaches that others will soon be posting.

In order to maintain the version information in a medium sized Java codebase, I created a simple class to hold the major, minor, and revision version numbers as static constants and produce a formatted version string. I then created a perl script to check the class out of version control, replace the version components with those specified as arguments to the script, and check it back in.

The script does most of the work, so the process of updating the version is fairly simple and quick. I had to implement this quickly, so there are probably better ways of doing it. I just didn't have time, or motivation, to research better alternatives.

A. Levy
Thank you for your input...
reddy
+2  A: 

I'm not entirely sure what your question is but I'm assuming you want build numbers? When you build your project with Ant you can use the BuildNumber task to keep track of build numbers.

Luke
A: 

The following link is a pretty good article. If you can get all the plugins working with the version of Bamboo you're on it should be fine.

Release Management with Atlassian Bamboo

A: 

you can use ${bamboo.buildNumber} in ant

look at the following thread http://forums.atlassian.com/thread.jspa?messageID=257319944

Bahadir Cambel