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.

XMLWordPrintable

      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

              Unassigned Unassigned
              pdemitrio Patricio
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: