我已经打了一天多了,快把我逼疯了!
,
我可以从控制台克隆,但是hudson失败了:
Fetching upstream changes from git@codaset.com:xxx/xxx.git
[workspace] $ "C:\Program Files\Git\bin\git.exe" fetch -t git@codaset.com:xxx/xxx.git +refs/heads/*:refs/remotes/origin/*
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
...如果我在控制台中运行确切的git命令,它可以正常工作:
"C:\Program Files\Git\bin\git.exe" fetch -t git@codaset.com:xxx/xxx.git +refs/heads/*:refs/remotes/origin/*我尝试运行plink来直接连接到GitHub:
plink -agent -v git@github.com
Looking up host "github.com"
...
Pageant is running. Requesting keys.
Pageant has 1 SSH-2 keys
Using username "git".
...
Authenticating with public key "rsa-key-20110121" from agent
...
Hi xxx! You've successfully authenticated, but GitHub does not provide
shell access.然后,我尝试连接到codaset:
plink -agent -v git@codaset.co
m
Looking up host "codaset.com"
Pageant is running. Requesting keys.
Pageant has 1 SSH-2 keys
Using username "git".
...
Authenticating with public key "rsa-key-20110121" from agent
...
Opened channel for session
Server refused to allocate pty
Started a shell/command
Error: Command is required.
...
Server sent command exit status 255
Disconnected: All channels closed因此,从codaset到git的反应略有不同。然而,我认为这可能是一条红鲱鱼,因为如果我试图连接到hudson的一个标准的git项目,我会得到同样的错误。
我还设置了Go Server (CruiseControl如前所述),并在试图从这里连接到git时获得了类似的错误:
ERROR: FATAL ERROR: Disconnected: No supported authentication methods available
ERROR: fatal: The remote end hung up unexpectedly这让我觉得问题一定在于认证,而不是哈德逊的细节.?
一如既往,任何帮助都非常感谢!
发布于 2011-01-21 17:50:19
这可能是权限问题。您可以在同一台机器上复制git,但我猜您不是以运行Hudson的同一个用户的身份进行克隆的。给那个用户,然后再试一次。这可能会暴露问题。
发布于 2011-01-21 16:29:03
hudson是否运行在可以成功从其上提取的同一台计算机上?如果不是,您可能还需要在该机器上生成ssh密钥,并将其添加到github帐户中。
不管怎么说,第一个问题(除非我在你的问题中漏掉了)是你让哈德逊跑到哪里去了。
发布于 2011-01-21 17:18:10
经过长时间的战斗,我解决了这个问题,从控制台运行hudson,而不是作为服务.不太理想,但是在星期五这个时候就足够了!
https://stackoverflow.com/questions/4760287
复制相似问题