Move Build Agent

Is it possible to move a buildagent from one directory/disk to another? My disk is running out of space and the default agent needs to be moved to another location. Maybe only the work directory could be moved?

Comment actions Permalink

Under windows uninstall agent service first with help of bin/service.uninstall.bat. Then you can safely move the whole agent directory. Verify that conf/ file does not contain absolute paths to old agent location. After the agent is moved launch service.install.bat again to install agent service.

Under Unix the procedure is the same except that there is no need to reinstall service.

Pavel Sher

Comment actions Permalink

I changed the work directory only by stopping the service and updating the property file with the Agent work directory path in it. Restarting the service again and everything seems fine. Agent building in new directory :)


Please sign in to leave a comment.