How to change the teamcity data directory with a WAR installation?

JonahGroup
JonahGroup used Ask the Experts™
on
I'm moving a teamcity build server from a failing machine to a new one.  I'm installing onto a Centos 5 machine with tomcat 6.  
I have successfully installed everything, however there is one last sticking point:  The data directory is defaulting to a location I don't want.

The documention doesn't seem to cover where to configure things when you've installed via a WAR file.  I would strongly prefer to make my changes in the teamcity app itself and keep things as de-coupled as possible, rather than to have to make special changes to tomcat.

Can anyone point me in the right direction?  Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Awarded 2011
Awarded 2011

Commented:


I would not probably say that documanetation does not say.
They rather explicitly state in their manulas that you need to change it in Tomcat JVM properties:

as a web server (Tomcat) system JVM property teamcity.data.path (see System Properties for Running the Server).

you will need to modify the teamcity.data.path Tomcat JVM property as described in System Properties for Running the Server. Modifying the TEAMCITY_DATA_PATH environment variable will not work in this case.

http://confluence.jetbrains.net/display/TCD6/TeamCity+Data+Directory

and here in fact they again state the same:

if you are using .war distribution, use the manual of your Web Application Server.

http://confluence.jetbrains.net/display/TCD6/Configuring+TeamCity+Server+Startup+Properties



So I guess it reads from environment of the JVM and JVM, which is running iy is the same which runs Tomcat.
So you need to set that environemnte when =starting JVM with tomcat.
It is only if they have some undocumented other pssossibility - that would be the hope?





Mick BarryJava Developer
Top Expert 2010

Commented:
add the following to JAVA_OPTS environment variable

-DTEAMCITY_DATA_PATH=/path/of/my/data/directory
Awarded 2011
Awarded 2011
Commented:
A friend of mine owns a license for TeamCity.
On my request he contacted the TeamCity support with the
question if it is possible to specify the data folder on the teamcity application
level, rather than on the Tomcat level.
They responded rather quickly that at this time it is impossible.
Mick BarryJava Developer
Top Expert 2010

Commented:
You can change it, and it doesn't need a 'special change to tomcat'

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial