简体   繁体   English

TeamCity:Gerrit插件配置

[英]TeamCity: Gerrit plugin configuration

I have setup TeamCity to run build and tests on each git push and update verification result in the corresponding gerrit review. 我已设置TeamCity在每个git push上运行构建和测试,并在相应的Gerrit审查中更新验证结果。 Everything works fine except for the URL that teamcity adds to the gerrit comment. 除了teamcity添加到gerrit注释的URL之外,其他一切都正常。 The URL in question is the URL to the build that teamcity just ran and the host in the URL is set as localhost instead of the machine's hostname. 有问题的URL是teamcity刚运行的构建的URL,并且URL中的主机设置为localhost,而不是计算机的主机名。

For example the comment that teamcity posts as part of gerrit verification looks like this 例如,teamcity在Gerrit验证中发布的评论看起来像这样

TeamCity has posted comments on this change. TeamCity已发布有关此更改的评论。

Change subject: Commit message here
......................................................................


Patch Set 1: Verified+1

http://localhost:8111/viewLog.html?buildId....

Instead of localhost in the above URL, I want teamcity to use the proper hostname. 我希望Teamcity使用正确的主机名,而不是上述URL中的localhost。

Where do I configure this? 我在哪里配置?

该配置项名为serverUrl,位于$TEAMCITY_HOME/buildAgent/conf/buildAgent.properties

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM