Search code examples
gitsshhudsonmsysgitssh-agent

Hudson Git Plugin not working on windows


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!


Solution

  • 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