Issue Summary
The remote agent install command has an hypen t missing in the command from the UI.This is after “enable security token” option.
This is reproducible on Data Center: Yes
Steps to Reproduce
- On Bamboo UI, under overview-Agents
- Enable security token
- Install remote agent
- The installation command is seen which has -t missing infront of security token
Expected Results
The installation command should be
java -jar atlassian-bamboo-agent-installer-9.2.17.jar https://<BAMBOO-URL>/agentServer/ -t <TOKEN>
Actual Results
-t missing
java -jar atlassian-bamboo-agent-installer-9.2.17.jar https://<BAMBOO-URL>/agentServer/ <TOKEN>
The below exception is thrown while installing the Bamboo agent without the -t option
root@6e1cf0457780:/opt/atlassian/bamboo/atlassian-bamboo/admin/agent# java -jar atlassian-bamboo-agent-installer-9.2.17.jar https://linux-82565.prod.atl-cd.net/bamboo/agentServer/ c9f1446b25773984cf52421eb05d10343c084b4b install
Unknown command: c9f1446b25773984cf52421eb05d10343c084b4b
Usage: java [<properties>] -jar bamboo-agent.jar <bamboo-url> [<commandString>] [-t <securityToken>]
where commandString is one of the following:
console Run the Bamboo agent in the foreground (default)
start Start the Bamboo agent in the background
stop Stop the background Bamboo agent
status Get the status of the Bamboo agent
install Install the Bamboo agent (overwrite any changes to wrapper.conf)
recognized properties:
-Dbamboo.home=<bamboo-agent-home>
-Dbamboo.agent.ignoreServerCertName=(true|false) Default value is false
-Dbamboo.allow.empty.artifacts=(true|false) Default value is false
Example bamboo-url: http://bamboo.example.com/agentServer
Default bamboo-agent-home: /root/bamboo-agent-home
Security token (if needed) can be obtained from your Bamboo instance under the following address:
<bamboo-base-url>/admin/agent/addRemoteAgent.action
Workaround
Use the -t option in the agent installation command