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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

60 views 2 3
Join discussion

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