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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.