Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

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
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

58 views 0 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you