任何人都可以提出默认构建代理在 TeamCity 中不可用的原因吗?

发布于 2024-08-16 21:14:01 字数 386 浏览 5 评论 0原文

我正在建立适当的 CI 环境,目前正在评估 TeamCity。 (所以我的 TeamCity 体验是不存在的。)。

我已在干净的 Windows XP(目前)虚拟机中执行了 TeamCity 5.0.1 Professional 的默认安装。

我已经创建了我的项目并将其指向我的源存储库并排队构建。

但是,我没有看到任何通过 Team City Web 界面安装/可用的构建代理。我已检查,已安装“Team City Build Agent”服务并且正在运行。我还查看了 buildAgent 文件夹中的日志文件,没有看到任何会导致错误的内容。

在让默认构建代理可供 Team City 使用时,我是否缺少任何步骤或概念?我不想对构建做任何复杂的事情。 (此时,我只想从存储库中提取我的源代码)

I'm in the process of setting up a proper CI environment and am currently evaluation TeamCity. (So my TeamCity experience is non-existent.).

I've performed a default install of TeamCity 5.0.1 Professional in a clean Windows XP (for now) VM.

I've created my project and pointed it to my source repository and queued up a build.

However, I don't see any Build Agents installed/available via the Team City web interface. I've checked and there is a 'Team City Build Agent' service installed and it's running. I've also reviewed the log files in the buildAgent folder and don't see anything that would lead me to an error.

Is there a step or concept that I'm missing here on getting the default Build Agent to become available to Team City? I'm not trying to do anything complicated with the build. (at this point, I just want to pull my source down from the repository)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

请止步禁区 2024-08-23 21:14:01

我有完全相同的问题。经过设置、重新安装代理等后,我发现问题相当简单 - TeamCity 代理在其属性(以及其他路径)中放置了错误的 teamcity URL。

找到 buildagent.properties 文件(buildAgentInstallDir\conf\buildagent.properties),您可能会看到所有行中都有“转义”字符(例如 serverUrl=http://localhost :8090/ )

修改文件以删除转义字符(即链接应该是简单的,如:serverUrl=http: //localhost:8090/ , env.TEAMCITY_JRE=C:\Program Files\TeamCity\BuildAgentInstalled\jre 和类似)

希望这有帮助...

I had exactly the same problem. After going through settings, reinstalling the agent etc, I found that the problem was rather simple - the TeamCity agent placed a wrong teamcity URL in it's property (and other paths as well).

Find the buildagent.properties file ( buildAgentInstallDir\conf\buildagent.properties), and you'll probably see that all of the lines have 'escape' characters in them (e.g. serverUrl=http://localhost:8090/ )

Modify the file to remove escape chars (i.e. links should be plain like: serverUrl=http://localhost:8090/ , env.TEAMCITY_JRE=C:\Program Files\TeamCity\BuildAgentInstalled\jre and similar)

Hope this helps...

帝王念 2024-08-23 21:14:01

如果您的服务器在具有多个 IP 地址的计算机上运行,​​代理可能无法识别正确的 IP 地址。您可以在 buildAgent/conf/buildAgent.properties 文件中显式设置 IP 地址。您应该会看到一个可选部分,用于设置 buildAgent 的 IP 和 Teamcity 服务器的 IP。我建议两者都尝试一下。

If your server is running on a machine with multiple IP addresses, the agent may fail to identify the correct IP address. You can explicitly set the IP address in the buildAgent/conf/buildAgent.properties file. You should see a section that is optional to set the IP of the buildAgent and the IP of the Teamcity server. I recommend trying both.

潇烟暮雨 2024-08-23 21:14:01

全新安装后,您应该会看到一个构建代理 - 本地计算机。我不认为这与你有任何关系,即使你必须定义一个项目。恕我直言,你的安装出了问题。

菲利普

Right after a clean install you should see one build agent - the local machine. I don't think this has anything to do with you even having to have a project defined. IMHO you something went wrong with the installation.

Filip

我也只是我 2024-08-23 21:14:01

如果您在 conf/server.xml 中更改了 TeamCity 服务器端口,例如:

您应该更改 buildAgent/conf/buildAgent.properties 中的默认代理配置

serverUrl=http://SERVER-IP-HERE:8222/

If you've changed the TeamCity server port in conf/server.xml like:

<Connector port="8222" protocol=".."/>

You should change the default agent configuration in buildAgent/conf/buildAgent.properties

serverUrl=http://SERVER-IP-HERE:8222/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文