teamcity server使用错误和处理
-
Failed to shutdown agent gracefully: Connection refused (Connection refused) Cannot stop agent gracefully, you can try to kill agent by ‘./agent.sh stop kill’ command。
分析:
下载teamcity server安装包的用户和解压teamcity server的家目录不是一个用户。即使改了家目录的所有者,所属组,发现错误也无法解决。但从错误提示中看,是8111端口没有打开的原因。因此无法访问teamcity UI。但使用安装包所在的用户(后来的用户)启动,无法打开端口。
解决:
切换到下载安装包的用户执行启动命令。发现8111端口启动了。且可以访问teamcity UI。
总结:1.这可能和权限有关系。因为我我成功启动UI对应的用户权限很大。2.这也可能是两个用户下文件不同导致。我用diff命令对比发现两个文件夹中文件不同。而这些文件可能于启动服务相关。 -
问题:Failed to locate buildAgent.properties file at /home/tcuser/bin/…/conf/buildAgent.properties, you may create it from buildAgent.dist.properties file
分析:缺少buildAgent.properties文件。
解决:复制buildAgent.dist.properties文件重命名为 buildAgent.properties即可。 -
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file(来自build blog)
解决:teamcity server中工程的配置不完整。找到对应工程的build configuration home->build step->edit->projects,填写指定的projects工程的名字(通常为一个文件夹的命令)。 -
执行结果的状态为:Execution timeout。则因通过teamcity的UI修改设置:选定项目->右上角Edit Configuration Settings->左侧Failure Conditions->将最上面的框的上限时间设为0->save
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
