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.
JavaJava EEJSP

Avatar of undefined
Last Comment
Mick Barry
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
Mick Barry
Flag of Australia image

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Mick Barry
Mick Barry
Flag of Australia image

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

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo