Change the location of the agent's system directory

I'm investigating if there's a way to relocate the default location of the C:\BuildAgent\system directory. The agent is already installed, and I guess I could reinstall the entire agent on another disk, but simpler would be to add a line in buildAgent.properties. Is that possible? If not, consider adding it :)

I presume another way would be to add a file system mount point and redirect the mount point to another disk, but I don't feel as comfortable doing that in windows as I do in Linux, so a setting would still be the best solution for me.

--Jesper Högström

5 comments
Comment actions Permalink

Hi Jesper

It's already there - systemDir
The file is auto-generated and is not very cleare, but there is a template in buildAgent.dist.properties that lists all the properties and has comments.

Michael

0
Comment actions Permalink

Thanks a bunch!
I never looked into that file, assuming it was a copy of the default buildAgent.properties.Consider adding a readme.txt or properties_explained.txt file in the conf directory to help people like me :)

Also, if I change the system directory, is it safe to let the agent handle that change all by itself, or would it be wise to copy anything manually?It's the cache dir I do NOT want to copy, as it grows quite large.

Does the target directory have to exist or can the agent create it on its own?

--Jesper

0
Comment actions Permalink

The agent can re-create missing folders and files, but it cannot move the files after path change.
So the procedure is

  • stop the agent
  • change buildAgent.properties
  • move the folder
  • start the agent


Michael

0
Comment actions Permalink

Thank you Michael,

I understand it cannot move the data, I just wonder if I need to move anything at all. The cache dir exceeded 15GB, and I am willing to take the hit for synching the cache on first build of every project/configuration - rather than watching windows move 15GB from disk C: to disk D:...

--Jesper

0
Comment actions Permalink

This folder is agent's cache. you can clear it safely, but next builds will require more time and network traffic.

Michael

0

Please sign in to leave a comment.