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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 9.2.20, 9.6.8, 10.0.3
    • Affects Version/s: 9.2.17
    • Component/s: Agents
    • None
    • Severity 3 - Minor

      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

        1. Screenshot 2024-10-04 at 6.17.51 PM.png
          1.64 MB
          Anik Sengupta
        2. Screenshot 2024-10-04 at 6.41.35 PM.png
          347 kB
          Anik Sengupta

            Assignee:
            Marcin Gardias
            Reporter:
            Anik Sengupta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: