TeamCity代理错误“未能对代理执行结帐” [英] TeamCity agent error "failed to perform checkout on agent"

查看:514
本文介绍了TeamCity代理错误“未能对代理执行结帐”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MacOS上运行我的TeamCity 7服务器和代理。我的回购是在github上。我使用ssh,并且我知道验证配置正确,因为测试成功。

当我使用VCS Checkout ModeAutomatically on server时,构建工作正常,但是当我使用VCS Checkout模式在代理上自动运行时,出现此错误。

p>

  [13:40:35] [更新源代码]无法对代理执行签出:'/ usr / bin / git fetch  - 进度原点+​​ refs / heads / master:refs / remotes / origin / master'命令失败。 
stderr:java.io.IOException:身份验证失败
在org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:275)
at org.jetbrains.git4idea.ssh。 SSHMain.start(SSHMain.java:159)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:139)
致命:远程端意外挂起

我缺少什么?

解决方案

尝试将teamcity.git.use.native.ssh = true作为配置参数添加到您的构建配置中。



这帮助我解决了类似的问题。我从这里了解了这个技巧。


I am running my TeamCity 7 server and agent on MacOS. My repo is on github. I use ssh and I know that the authentication is correctly configured, because the test is successful.

The build works fine when I use VCS Checkout Mode "Automatically on server", however when I use VCS Checkout mode "Automatically on agent" I get this error.

[13:40:35][Updating sources] Failed to perform checkout on agent: '/usr/bin/git fetch --progress origin +refs/heads/master:refs/remotes/origin/master' command failed.
stderr: java.io.IOException: Authentication failed
    at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:275)
    at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:159)
    at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:139)
fatal: The remote end hung up unexpectedly

What am I missing?

解决方案

Try adding teamcity.git.use.native.ssh=true as a config parameter into your build configuration.

It is what helped me solve a similar problem. I learned this trick from here.

这篇关于TeamCity代理错误“未能对代理执行结帐”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆