Link to home
Start Free TrialLog in
Avatar of JonahGroup
JonahGroupFlag for Canada

asked on

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

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.
Avatar of for_yan
for_yan
Flag of United States of America image



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?





Avatar of Mick Barry
add the following to JAVA_OPTS environment variable

-DTEAMCITY_DATA_PATH=/path/of/my/data/directory
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can change it, and it doesn't need a 'special change to tomcat'