Where should .BuildServer be?
Hi all,
The FAQ states:
======================================================================
For each project a directory is created in Team Server configuration
directory (let's name it $TEAM_SERVER_CONFIG):
Windows
C:\Documents and Settings\.BuildServer\config
Unix, MacOS
$HOME/.BuildServer/config
======================================================================
I have these settings on my XP box:
C:\Documents and Settings\stevea>set HOME
HOME=c:\home\stevea
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\stevea
And yet, teamserver is using this directory for my project
configuration files:
c:/WINDOWS/system32/config/systemprofile/.BuildServer/config/
That seems an odd (bad) place for application data.
Which leads to 3 questions
Is this a bug, or operator error?
Can I control this directory location at install time, perhaps by
setting an environment variable?
Can I change it after installation?
This is on build 1270. I'll be installing the latest build today. Our
java team is pretty excited about teamserver so I'll be pounding on it
pretty heavily in the weeks to come so we can decide whether or not to
switch over from luntbuild. If I ask questions that are documented
somewhere it's cool with me if you just refer me to the appropriate
doc.
Thanks!
--
-- Steve
Please sign in to leave a comment.
Hi Steve,
In fact, Team Server takes the location of user's home directory from system
property "user.home". Just System.getProperty("user.home") and nothing else :)
See above. I really have no idea why your java returns
c:/WINDOWS/system32/config/systemprofile as value of user.home variable.
You may try to use -Duser.home= ... JVM option for Tomcat. Or specify another
config/system directories at webApps/buildServer/WEB-INF/buildServerSpring.xml
(unfortunately, there are several places in this file where these directories
are specified)
See above. Don't forget to move to the new place config directory contents if
you want to keep build configuration data, and system directory if you want to
keep your database.
Don't forget to setup cleanup policies for your builds.
Good luck,
KIR
--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"
"Kirill Maximov (JetBrains)" writes: >Hi Steve, > > ]]>
>from system property "user.home". Just System.getProperty("user.home")
>and nothing else :)
>
>> Which leads to 3 questions
>> * Is this a bug, or operator error?
>
>c:/WINDOWS/system32/config/systemprofile as value of user.home
>variable.
>
>> * Can I control this directory location at install time, perhaps by
>> setting an environment variable?
>
>specify another config/system directories at
>webApps/buildServer/WEB-INF/buildServerSpring.xml (unfortunately,
>there are several places in this file where these directories are
>specified)
Ah, now I see. The windows version of tomcat is setup by default to
log in to the LocalSystem account, which explains the user.home
setting. I changed it to run under my account, and .buildServer ends
up in C:\Documents and Settings\stevea\.BuildServer. Makes sense.
Thanks!
--
-- Steve
Any chance that we can have a configuration step for the .BuildSettings location? The partition where my user home directories reside is very small. TeamCity fills the partition and then fails.
I've managed to get it working by changing USER_HOME to an absolute path in buildServerSpring.xml, but I don't want to have to do this every time I upgrade TeamCity.
Thanks
Tony
Hello,
In the last EAP (build 1574) you can specify alternate location in
teamcity.data.path system property. For example:
set JAVA_OPTS=-Dteamcity.data.path=/some/path/on/disk
start server
Please note that in this case TeamCity will create it's "system" and
"config" directories directly under the path specified in
teamcity.data.path.
--
Pavel Sher
"Tony Johnson" <no_reply@jetbrains.com> wrote in message
news:32562825.1158055260044.JavaMail.itn@is.intellij.net...
>
>
Where can I get the latest EAP? The version on http://www.jetbrains.com/teamcity/ is still 1492.
Never mind, I found it. In case anybody else is looking, you can find the latest EAP here:
http://www.jetbrains.net/confluence/display/TW/Download