I'm getting this error in my Jenkins server Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h [email protected]:my_username/myrepository.git HEAD" returned status code 128: stdout: stderr: Could not create directory '/home/my_username/.ssh'. Failed to add the host to the list of known hosts (/home/my_username/.ssh/known_hosts). Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. I don't know why but the plugin tries to create .ssh under /home/my_username/, which doesn't exist in Windows. I'm trying to route it into another folder "say C:/Jenkins" but setting USERPROFILE or HOME envr. variable doesn't do the job. Any help ? Thanks P.S: I opened a stack overflow question on this, here's the link: http://stackoverflow.com/questions/35099705/jenkins-git-plugin-could-not-create-ssh-folder Best, Onat -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAOWU%3DtkTyVuQ0enEsVq5ZKu6oEhF%2BrR3k0-2Xs%3D7VuYPO2MvAg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
