views:

43

answers:

1

I have msysgit installed with OpenSSH option. In Git bash, I can run ssh-agent, and it manages the passphrase for my ssh key. Is it possible for the Hudson Git plugin to use ssh-agent? Currently, it hangs when trying to clone, no doubt waiting for the passphrase to be entered.

Thanks!

+1  A: 

As mentioned in "Problem with Hudson + Git + Gitosis on windows", you need to make sure the Hudson job does set first a %HOME% environment variable.
That value must refer to the directory where you can find:

.ssh
  id_rsa     # private key
  id_rsa.pub # public key
VonC
Thanks, VonC. I've set %HOME% as a user environment variable. Wouldn't it pick this up? Also, as an experiment, I generated a new ssh key with blank passphrase, and hudson is still hanging. If I run the hudson git command from the command line, it succeeds in cloning the repo.
Jacko
@Jacko: it needs to be setup from the Hudson configuration settings to be extra sure. That would explain why Hudson jobs hang while command line Git commands pass.
VonC
Thanks you, sir!! I added a %HOME% parameter, http://wiki.hudson-ci.org/display/HUDSON/Parameterized+Build, and now it is cloning.Thanks again!!!!!!
Jacko
@Jako: glad to hear it worked for you :)
VonC