Lui*_* E. 3 git tomcat hudson tomcat6
我有一个Hudson服务器和一个git存储库,它们都在我们的服务器上运行(一个ubuntu机器).
每当我尝试使用哈德森构建我的应用程序时,他都会说
Iniciado pelo usuário anonymous
Checkout:workspace / /usr/share/tomcat6/.hudson/jobs/ECF/workspace - hudson.remoting.LocalChannel@176150c
Using strategy: Default
Checkout:workspace / /usr/share/tomcat6/.hudson/jobs/ECF/workspace - hudson.remoting.LocalChannel@176150c
Fetching changes from the remote Git repository
Fetching upstream changes from ssh://git@192.168.0.10/git/germantech.git
ERROR: Problem fetching from servidor / servidor - could be unavailable. Continuing anyway
ERROR: (Underlying report) : Error performing command: git fetch -t ssh://git@192.168.0.10/git/germantech.git +refs/heads/*:refs/remotes/origin/*
Command "git fetch -t ssh://git@192.168.0.10/git/germantech.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: Host key verification failed.
fatal: The remote end hung up unexpectedly
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
Run Code Online (Sandbox Code Playgroud)
我在这里失踪了什么?想法?提前致谢
编辑
好的,让它工作!
首先,我用我的hudson用户(sudo su - -s /bin/bash tomcat6)登录,然后,我删除了我的.ssh文件夹.
在此之后,我只是按照这个链接,
现在做了一个没有密码的ssh登录,hudson可以做一个fetch而不必指定密码
您需要在hudson和git服务器之间创建一个ssh关系.
你只需要这样做一次.
脚步:
使用hudson用户登录hudson机器.
创建一个ssh私钥和公钥:
ssh-keygen -t dsa
留下一个空的passphase.
现在你在.ssh文件夹下的hudson home中有2个文件:id_dsa和id_dsa.pub.
使用以下方法将密钥复制到您的仓库:
ssh-copy-id -i ~/.ssh/id_dsa.pub hudson@gitserver.machine.com
注销并验证您现在可以ssh而无需提供密码.
哈德森现在应该能够连接.
| 归档时间: |
|
| 查看次数: |
17040 次 |
| 最近记录: |