Can I change location of temp directory for bamboo agent?

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

1 answer

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

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

201 views 4 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you