|Need help configuring Hudson for SSL with Git/Gerrit [message #1288566]
||Tue, 08 April 2014 17:32
| Bill Spens
Registered: April 2014
I've installed Hudson on a server running Oracle Linux and followed the Redhat section of the Hudson Book. I've fired up the Hudson service, created an empty build configuration and it runs just fine (of course it isn't doing anything).|
Now I'm trying to check out files from Git. I created a new job. Specified Git for source code management and provided this URL:
When I run the job, it fails. The key parts of the error message seems to be this part: returned status code 128: Permission denied (publickey). fatal: The remote end hung up unexpectedly
I logged in to the console, and I got this command working so I think everything on the gerrit server is set up correctly:
git clone ssh://builduser@GERRITSERVER:29418/installer/com.mycompany.installer
However, I'm logged in as root and the .ssh folder is under /root/.ssh
It is my understanding that hudson runs under a user named 'hudson'. So where to I put the .ssh directory for hudson? I can't seem to log in as user 'hudson' and there is no /home/hudson directory, so I'm a bit stuck on what to do next. Also, can I copy the .ssh directory from root or do the keys for the hudson user have to be generated under the hudson account? If yes, I'm not sure how to do that since I can't log in as hudson.
I should point out that I'm not trying to code review builds with Gerrit yet. I'm just trying to do a build on the git part of gerrit that holds all the approved check-ins.
Thanks for any help or links you can suggest.
Powered by FUDForum
. Page generated in 0.13515 seconds