简体   繁体   English

TeamCity的Git Push挂起了构建

[英]Git Push from TeamCity hangs the build

I think I now tried about everything that is to be found on the web around "git push" from within a TeamCity build 我想我现在尝试了在TeamCity构建中围绕“ git push”在网上找到的所有内容

I tried this: TeamCity: On successful build push to Git Repo 我尝试了以下方法: TeamCity:成功构建后,请推送至Git Repo

and this: 和这个:

http://devnet.jetbrains.com/message/5510674 http://devnet.jetbrains.com/message/5510674

and many variations on this. 以及对此的许多变化。 Every git operation (git add, commit,...) works perfectly but git push always hangs the build. 每个git操作(git add,commit等)都可以正常工作,但git push总是会挂起构建。 If I do exactly the same in the command line, it works perfectly. 如果我在命令行中执行完全相同的操作,则可以正常运行。 And btw Git does not need passwords or anything. 而且btw Git不需要密码或任何东西。

I would love to solve this ;-) 我很想解决这个问题;-)

You need to go to the agent logs and figure out the command that is running as part of the git push. 您需要转到代理日志并找出在git push中正在运行的命令。 Once you get the command, login to the box where the agent is running and run the same command (You need to do this with the same userid with which the agent is running). 收到命令后,登录到代理运行所在的框并运行相同的命令(您需要使用与代理运行时相同的用户名来执行此操作)。 This will give you the actual error as to why your git push is hanging 这将为您提供有关为什么git push挂起的实际错误

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

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