Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-25913

After enabling security token , remote agent installation command has -t missing in the UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • 9.2.20, 9.6.8, 10.0.3
    • 9.2.17
    • Agents
    • None

      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

      1. On Bamboo UI, under overview-Agents
      2. Enable security token
      3. Install remote agent
      4. 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

              mgardias Marcin Gardias
              f84a05b06223 Anik Sengupta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: