加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

在Windows上使用Hudson的Git插件克隆/获取存储库的问题

发布时间:2020-12-14 02:27:44 所属栏目:Windows 来源:网络整理
导读:在任何人为此向我射击之前 – 我已经检查了每个合适的线程,但仍未找到解决我问题的方法. 我在Windows服务器上安装了gud插件的Hudson(不是我的选择),Hudson作为服务运行. Git / bin就在路上.但是我无法克隆存储库.这是控制台输出的缩短显示: Started by user
在任何人为此向我射击之前 – 我已经检查了每个合适的线程,但仍未找到解决我问题的方法.

我在Windows服务器上安装了gud插件的Hudson(不是我的选择),Hudson作为服务运行. Git / bin就在路上.但是我无法克隆存储库.这是控制台输出的缩短显示:

Started by user anonymous
Checkout:workspace / C:.hudsonjobssdfworkspace - hudson.remoting.LocalChannel@65394b
Last Built Revision: Revision 74200b32314231a5efdadd87bf36b42ec145c720 (origin/master)
Checkout:workspace / C:.hudsonjobssdfworkspace - hudson.remoting.LocalChannel@65394b
Fetching changes from the remote Git repository
Fetching upstream changes from ssh://git.mccannlondon.co.uk/git/mccann_admin
[workspace] $"C:Program FilesGitbingit.exe" fetch -t ssh://git.mccannlondon.co.uk/git/mccann_admin +refs/heads/*:refs/remotes/origin/*
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 f1:48:2a:0a:d9:18:cf:2e:f2:8c:b3:25:7f:34:d5:34
Connection abandoned.
fatal: The remote end hung up unexpectedly
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway

因此,我似乎需要对主机进行身份验证,但是当我将管理员设置为hudson服务的所有者时,我不确定为什么hudson以匿名用户的身份启动工作.

有人知道吗:

> a)如何更改hudson的运行用户?要么
> b)使用与hudson使用相同的用户帐户连接到删除计算机以允许hudson获取?

如果这是在道歉之前发布的,但我花了几个小时搜索周围,找不到任何东西.

谢谢

刘易斯

解决方法

这可能与问题 Git,Can’t clone repo on windows有关

The problem is that MSysGit starts PLink in the background,i.e. the terminal is not actually connected to the input of PLink. That means that you simply can’t type anything into PLink.

You simply have to connect to the server once using PLink or PuTTY,answer Yes and from then on,you won’t be asked again.

从cletus开始的tutorial也很有帮助.

可以在this blog entry中找到对该问题的良好描述

the problem is that Hudson is a service and runs under the user “Local Service Account”.

The next step is to add the trace manually the cache (a file) because I know you can do in Linux.
Wrong again,Windows does not have this cache as a file but uses the registry.
Searching in the register found an entry for my user (who had previously accessed the repository and added to the cache footprint) where the trace was stored and copied to HKEY_USERS so that users can access it.

The entry goes like this:

Key Name: HKEY_USERS.DEFAULTSoftwareSimonTathamPuTTYSshHostKeys
Class Name: NO CLASS
Last Write Time: 23.01.2009 - 18:35
Value 0
Name: dss@22:bla_bla.com
Type: REG_SZ
Data: 0xb477b...

From the command line,you can easily add the key as follows:

reg add HKEY_USERS.DEFAULTSoftwareSimonTathamPuTTYSshHostKeys /v dss@22:bla_bla.com /d 0xb477b...

Now Hudson,run as a service,go happily and smoothly to the repository where the code.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读