在窗口上出现Hudson + Git + Gitosis问题 [英] Problem with Hudson + Git + Gitosis on windows

查看:101
本文介绍了在窗口上出现Hudson + Git + Gitosis问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的git和gitosis在msysgit(带有OpenSSH),
的窗口上运行平稳,现在我想让Hudson开始使用git。

,我确保hudson windows服务以
hudson用户身份运行,并且我通过gitosis-admin添加了hudson用户。



我也有unixutils,它们都在windows路径中。



但是,Hudson无法克隆该项目。



I可以使用git bash克隆我的项目,当以hudson用户
的身份登录时,而不是在Windows命令行
中登录时,恐怕这就是Hudson git插件如何尝试执行克隆。 / p>

当我尝试从常规命令行克隆时,系统会提示您输入git用户的密码。



I尝试在.ssh中设置一个配置文件,但这并没有帮助。



任何帮助将非常感谢!

解决方案


我得到提示f或git用户的密码


它应该表示它找不到您的公共/私人ssh密钥,很可能是因为,当Hudson运行一个工作,它没有%HOME%环境变量。

您应该确保%HOME%被设置为git进程可以找到一个 .ssh 目录


I have git and gitosis running smoothly on windows with msysgit (with OpenSSH), and I would now like Hudson to start using git.

So, I have ensured that the hudson windows service is running as the hudson user, and I have added the hudson user through gitosis-admin.

I also have unixutils, and they are in the windows path.

But, Hudson fails at clone the project.

I can clone my project using git bash, when logged in as the hudson user, but not on the windows command line, and I am afraid this is how Hudson git plugin is attempting to do the clone.

When I try to clone from the regular command line, I get prompted for the git user's password.

I tried setting up a config file inside .ssh, but this didn't help.

Any help would be very greatly appreciated!

解决方案

I get prompted for the git user's password

It should mean it doesn't find your public/private ssh key, most probably because, when Hudson runs a job, it has no %HOME% environment variable.
You should make sure a %HOME% is set under which a git process could find a .ssh directory

这篇关于在窗口上出现Hudson + Git + Gitosis问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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