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

0
6 comments
Avatar
Permanently deleted user

Hi Steve,

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.


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 :)


Which leads to 3 questions

  • Is this a bug, or operator error?


See above. I really have no idea why your java returns
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?


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)

  • Can I change it after installation?


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.


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


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!"

0
Avatar
Permanently deleted user

"Kirill Maximov (JetBrains)" writes: >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 :)
>
>> Which leads to 3 questions
>> * Is this a bug, or operator error?
>

See above. I really have no idea why your java returns

>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?
>

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)

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

0
Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

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

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



0
Avatar
Permanently deleted user

Where can I get the latest EAP? The version on http://www.jetbrains.com/teamcity/ is still 1492.

0
Avatar
Permanently deleted user

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

0

Please sign in to leave a comment.