Problem with Hudson + Git + Gitosis on windows

独自空忆成欢 提交于 2019-12-17 20:59:01

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/3182012/problem-with-hudson-git-gitosis-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!