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

Agent capability set in startup with a space in the name not recognized by job requirement.

      Summary

      When defining a capability in the file bamboo-capabilities.properties, with a space on the name, the agent won't be shown as available after setting that capability as requirement.

      Environment

      Bamboo with Remote agents. Non-OS specific.

      Steps to Reproduce

      1. Create a file called bamboo-capabilities.properties under <bamboo-agent>/bin. For this test, it was populated ini this way:
        system.builder.msbuild.MSBuild\ v2.0\ (32bit)=C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe
        system.builder.msbuild.MSBuild\ v2.0\ (64bit)=C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\MSBuild.exe
        system.builder.msbuild.MSBuild\ v3.5\ (32bit)=C:\\Windows\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe
        system.builder.msbuild.MSBuild\ v3.5\ (64bit)=C:\\Windows\\Microsoft.NET\\Framework64\\v3.5\\MSBuild.exe
        system.builder.msbuild.MSBuild\ v4.0\ (32bit)=C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe
        system.builder.msbuild.MSBuild\ v4.0\ (64bit)=C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\MSBuild.exe
        system.builder.msbuild.MSBuild\ v12.0\ (32bit)=C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\MSBuild.exe
        system.builder.msbuild.MSBuild\ v12.0\ (64bit)=C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\amd64\\MSBuild.exe
        system.builder.msbuild.MSBuild\ v14.0\ (32bit)=C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\MSBuild.exe
        system.builder.msbuild.MSBuild\ v14.0\ (64bit)=C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64\\MSBuild.exe
        system.builder.msbuild.MSBuild\ v15.0\ (32bit)=C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\MSBuild\\15.0\\Bin\\msbuild.exe
        system.builder.msbuild.MSBuild\ v15.0\ (64bit)=C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\MSBuild\\15.0\\Bin\\amd64\\msbuild.exe
        
      1. Start the agent.
      2. In Bamboo, if needed approve the agent and check that the capabilities are listed:
      3. Navigate to a plan and a job, section "Requirements".
      4. Add one of the capabilities.

      Expected Results

      The agent should be shown as an option.

      Actual Results

      Bamboo says no agents can build that job.

      Notes

      No errors in agent/server logs

      Workaround

      Manually add the capabilites through the UI

        1. caps.png
          caps.png
          162 kB
        2. noagents.png
          noagents.png
          43 kB

            [BAM-20282] Agent capability set in startup with a space in the name not recognized by job requirement.

            Eduardo Alvarenga (Inactive) made changes -
            Fix Version/s New: 7.1.0 [ 91519 ]
            Eduardo Alvarenga (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Long Term Backlog [ 12073 ] New: Closed [ 6 ]
            Eduardo Alvarenga (Inactive) made changes -
            Link New: This issue is resolved by BAM-4213 [ BAM-4213 ]
            SET Analytics Bot made changes -
            UIS Original: 5 New: 1
            SET Analytics Bot made changes -
            UIS New: 5
            Pawel Skierczynski made changes -
            Status Original: Gathering Impact [ 12072 ] New: Long Term Backlog [ 12073 ]
            Pawel Skierczynski made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 3095236 ] New: JAC Bug Workflow v3 [ 3384710 ]
            Status Original: Open [ 1 ] New: Needs Triage [ 10030 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            Pawel Skierczynski made changes -
            Occurrence Factor New: 10% [ 12830 ]
            Status Original: Needs Triage [ 10030 ] New: Open [ 1 ]

              Unassigned Unassigned
              pdemitrio Patricio
              Affected customers:
              2 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: