-
Bug
-
Resolution: Timed out
-
Low
-
None
-
5.15.7, 6.5.1, 6.6.0
-
2
-
Severity 3 - Minor
-
Summary
Setting DISABLE_AGENT_AUTO_CAPABILITY_DETECTION=true server-side in Bamboo (not on the agent) will stop new entries in bamboo-capabilities.properties being detected for known agents upon restart.
Steps to Reproduce
- Add -DDISABLE_AGENT_AUTO_CAPABILITY_DETECTION=true to JVM_SUPPORT_RECOMMENDED_ARGS in <bamboo-install>/bin/setenv.sh
- Add wrapper.java.additional.x=-DDISABLE_AGENT_AUTO_CAPABILITY_DETECTION=true to a new Remote Agent's <bamboo-agent-home>/conf/wrapper.conf
- If it's an existing agent, delete it from the Bamboo UI
- Create a bamboo-capabilities.properties in <bamboo-agent-home>/bin
- Add some capabilities to it
- Start the agent
- Capabilities from bamboo-capabilities.properties are correctly detected and added
- Add a new capability to bamboo-capabilities.properties. New key, don't update an existing one.
- Restart the agent
- The new capability is not detected.
Expected Results
New capabilities in bamboo-capabilities.properties are detected upon agent restart.
Actual Results
New capabilities in bamboo-capabilities.properties are not detected upon agent restart.
Workaround
- Remove -DDISABLE_AGENT_AUTO_CAPABILITY_DETECTION=true from JVM_SUPPORT_RECOMMENDED_ARGS in <bamboo-install>/bin/setenv.sh
- Configure / keep wrapper.java.additional.x=-DDISABLE_AGENT_AUTO_CAPABILITY_DETECTION=true on each agent that needs it in <bamboo-agent-home>/conf/wrapper.conf
Or
- Delete the agent from Bamboo Administration >> Agents before restarting the agent. All capabilities will be detected upon agent restart.