How to set the bamboo agent id via the install process to an existing (last) value.

In a cloud model where you destroy and deploy vms, I would like to tear down a group of agents and and re-install after they have been re-created using the same id. I maintain a db of name/id values that allows this but the process of setting the value is not eligant. I was wondering if there was a cmdline -Dprop=value available.

1 answer

1 accepted

Accepted Answer
0 votes

I don't think that there is a property for that (would like to have it also) but I think you can achieve your goal by running the agent installer with the 'install' directive, then going to the agent home and adapting the 'bamboo-agent.cfg.xml' file to change the agent name/id in the corresponding XML element. After this you can start the agent normally and I assume it wil use the configured values.

Haven't tried yet this but it is on my todo list.

Our currrent process is to edit the file and insert the value via a process (script) where we basicly kick the install into background, monitor the log file for the occurance of 'ready to receive builds' and then kill the agent where the process then does the id insertion via sed and finaly does a relaunch. When done, we go into Bamboo Agent screen and delete the new definition. Very hacky and where a -DAgentId=1234567 would be very nice.

Thanks for your response.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

423 views 0 8
Read article

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