Summary
Users are unable to effectively rename remote agent from <BAMBOO_AGENT_HOME>/bamboo-agent.cfg.xml.
Steps to Reproduce
- Install remote agent (e.g. following our documentation).
- Make sure the remote agent connects to Bamboo at least one time. When the remote agent first connects to Bamboo, it sends the hostname as its name, which is then registered and stored in Bamboo's database.
- Stop the remote agent.
- Open up the <BAMBOO_AGENT_HOME>/bamboo-agent.cfg.xml file.
- Change the <name> tag to rename the remote agent.
- Start the remote agent.
Expected Results
Bamboo should display the updated remote agent's name in the UI after restarting the agent.
Actual Results
Bamboo continues to display the old agent's name even though the agent logs show the new/updated name.
Workaround
Right now, to rename the agent and ensure consistency go through the following steps every time you need to rename a remote agent:
- Open up the remote agent <BAMBOO_AGENT_HOME>/bamboo-agent.cfg.xml file and change the <name> tag to rename the remote agent.
- From the UI go to the Bamboo administration > Agents page.
- Locate the remote agent from step 1 under the tabs "Online" or "Offline".
- Click the agent name. You'll get redirected to the remote agent summary page.
- Click Edit details.
- Use the "Name" field to rename the remote agent.
Basically you'll have to rename the agent in two different places. You'll have to go through steps 1 & 2 to rename the remote agent and ensure that both the bamboo-agent.cfg.xml file and the database are in sync.
- duplicates
-
BAM-16170 Allow agent's name to be configured using remote agent options
- Closed
Form Name |
---|
I was able to rename the agent name by removing <agentUuid> and <id> from the bamboo-agent.cfg.xml file and giving the agent name as required in the <name> field. By doing this I did not need to rename the agent from Bamboo again. Agent registered by the new name. Hope this helps.