Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
462 views
in Technique[技术] by (71.8m points)

ssh - Problem with Hudson + Git + Gitosis on windows

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!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...