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

Is it possible set remote agent build working dir before authorize on bamboo master server?

Carlos Bouzón García
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 28, 2018

Hi,

I am interested on automating bamboo remote agent and I would need change build working directory before authorize it on the bamboo master server. Is there any property or method to do this?

2 answers

0 votes
José Ignacio Durand August 2, 2019

I think is not possible to do what you need. I tried to find a way to do it, but I couldn't.
When I did the automation of the installation, I had to install the agent first, then stop it, change the file and restart it, as Daniel, suggest you.
I think it could be a interesting feature to add to next releases.
I just opened an issue in the Community about this:

https://jira.atlassian.com/browse/BAM-20564

0 votes
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 28, 2018

Hi Carlos,

The default build directory of a remote agent is:
<AGENT_HOME>/xml-data/build-dir

You can either install the agent in a different location or just change the build-dir location by doing the following:

  1. Install the agent.
  2. Stop the agent.
  3. Edit the <AGENT_HOME>/bamboo-agent.cfg.xml file changing the value for buildWorkingDirectory property to the new location.
  4. Start the agent.
  5. Aprove it.

You build a script to install the agent and change the build-dir as you need.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events