Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
Specifying temp directory?
Permanently deleted user
Created
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
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
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
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
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
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
Is this currently possible? If not, is it planned before final Agra
release?
R
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 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
Hi Sascha,
Will be fixed in the next EAP
Kind regards,
KIR
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
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
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