bamboo 代理配置中的 agentUuid 和 id 有什么区别?

What's the difference between agentUuid and id in a bamboo agent config?

我想详细了解 bamboo 代理配置中 agentUuid 与 id 的作用,以及为什么需要两个 ID 才能识别 bamboo 代理。至少在文件中唯一的视觉差异是 Uuid 是一个由 32 个十六进制字符组成的 GUID,而 id 由 9 个十进制数字组成。

<!--/home/USERX/bamboo-agent-home/bamboo-agent.cfg.xml -->
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configuration>
  <buildWorkingDirectory>/home/USERX/bamboo-agent-home/xml-data/build-dir</buildWorkingDirectory>
  <agentUuid>XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX</agentUuid>
  <agentDefinition>
    <id>XXXXXXXXX</id>
    <name>tester-agent.somecompany.com</name>
    <description>Remote agent on host tester-agent.somecompany.com</description>
  </agentDefinition>
</configuration>

agentUUID 由远程代理生成,用于识别 Bamboo 端的新代理。服务器使用它来识别和授权来自代理的网络。如果不使用代理授权功能,则不使用 agentUUID。

agentId 是 Bamboo DB 中远程代理实体的 id table queue