Specifying temp directory?

Hi,
It seems that build 3811 (and earlier?) uses buildAgent/temp in addition
to workDir. Can I specify this in the build.properties file or is it
hard-coded?
Thanks,
R

8 comments
Comment actions Permalink

Just to give the reasoning behind this - I run several agents off the
same installation on a network drive and I seem to be getting collisions
in this temp directory. I would like to be able to specify for each
agent that it uses /tmp instead of /network/buildAgent/temp.
R

0
Comment actions Permalink

Is this currently possible? If not, is it planned before final Agra
release?
R

0
Comment actions Permalink

Hi Robert,

there's the property "tempDir" that can be specified in the agent-properties.
When installing a new agent, you'll find this in the default-properties:

tempDir=../temp

On the other hand, I also found out that the agent always uses /tmp to save its
patch files. This is kinda inconsistent though.

HTH,
Sascha

Hi,
It seems that build 3811 (and earlier?) uses buildAgent/temp in addition
to workDir. Can I specify this in the build.properties file or is it
hard-coded?
Thanks,
R

0
Comment actions Permalink

Hi Sascha,
Thanks for the hint. I had guessed at this property name, but it
doesn't seem to do anything with my install (build 3811) so I thought I
had just guessed wrong - if I run two simultaneous builds from the same
install directory I still get suspicious messages like
/network/buildAgent/temp/teamcity.tmp/idea39451runner/test-output.xml:43:
The following error occurred while executing this line:
java.io.FileNotFoundException:
/network/buildAgent/temp/teamcity.tmp/idea39451runner/test-output.xml
(No such file or directory)
even if I've set tempDir=/tmp/buildAgent/temp

At least you've confirmed for me that it's supposed to work!
http://www.jetbrains.net/jira/browse/TW-1989
JB, any comment?
R

0
Comment actions Permalink

Hi Sascha,

On the other hand, I also found out that the agent
always uses /tmp to save its
patch files. This is kinda inconsistent though.


Will be fixed in the next EAP

Kind regards,
KIR

0
Comment actions Permalink

Robert,

Before each build starts, we cleanup temp directory of the agent.
So you cannot share same temp directory between two agents.

Hope this helps,
KIR

0
Comment actions Permalink

Sure, but I can't specify an alternate location. I have added the line
tempDir=/tmp/buildAgent/temp
to my build.properties but it doesn't seem to be taken into account -
the temp directory in the buildAgent install directory is always used.
R

0
Comment actions Permalink

Robert, that's my fault - there is really a bug when reading tempDir property. The fix will be available in the next EAP. Thanks for the report!

Kind regards,
KIR

0

Please sign in to leave a comment.