-
Bug
-
Resolution: Fixed
-
Low
-
6.6.3
-
1
-
Severity 2 - Major
-
1
-
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
- 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
- Start the agent.
- In Bamboo, if needed approve the agent and check that the capabilities are listed:
- Navigate to a plan and a job, section "Requirements".
- 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
- is resolved by
-
BAM-4213 Updating bamboo-capabilities.properties on the agent should synchronise capabilities with server
- Closed
To automate our server installation, this is quite a show stopper.
It would be super helpful if this actually worked, so we can easily deploy new build servers with agents.
Now I'm adding so many capabilities manually every time, which is also quite error prone