Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I change location of temp directory for bamboo agent?

Shailesh Tiwari March 16, 2012

Hello,

How can I change location of temp directory for bamboo agent? Currently it is defaulting to /tmp, I want to change it into /abc/tmp

Thanks

2 answers

4 votes
Colin Goudie
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2012

You need to set the java tmp directory attribute

-Djava.io.tmpdir=/path/to/tmpdir
One windows you could edit the wrapper.conf file and add an additional java parameter
e.g.
wrapper.java.addition.x=-Djava.io.tmpdir=C:\Somewhere

Oh just saw you are probably running the slave on Linux. :(
Matthew Douston June 1, 2018

I tried doing that and it simply did not work. I'm using cygwin to run the java command to install a bamboo remote agent on Windows Server 2012 R2. I need to have cygwin running for a bamboo plan to succeed a build on this remote agent, because it sticks the git temp drive in /cygdrive/e/remote-agent-1/xml-data/build-dir/DAR-DAR-JOB1/.git/. Weirdly all the other properties are in E:\remote-agent-1/etc... as they should be.

1 vote
Jesse Cooke
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2020

Slight correction to the previous answer ('*.additional', not "*.addition'). This worked for me in wrapper.conf on linux. 

wrapper.java.additional.3=-Djava.io.tmpdir=/tmp/bamboo

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events