Re: Need help configuring Hudson for SSL with Git/Gerrit [message #1288890] |
Tue, 08 April 2014 23:38 |
|
On 04/08/2014 12:32 PM, Bill Spens wrote:
> 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:
> ssh://builduser@GERRITSERVER:29418/installer/com.mycompany.installer
>
> 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.
>
> Bill
There's a Hudson forum, but just in case it's helpful, I have a lot of
experience with Jenkins. I know that you don't have to sort out SSL
issues because there's a Jenkins plug-in (well, a couple in fact) for
Git use that solves all of that for you. Likely, those plug-ins work for
Hudson or Hudson offers some of its own.
Best of luck.
|
|
|
|
Powered by
FUDForum. Page generated in 0.07134 seconds