Jenkins Git Plugin Could Not create .ssh folder

547 views
Skip to first unread message

Onat Baş

unread,
Feb 3, 2016, 1:01:07 AM2/3/16
to jenkins...@googlegroups.com

I'm getting this error in my Jenkins server


Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h g...@mygitrepository.com: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

Reply all
Reply to author
Forward
0 new messages