You'll probably have better results if you register that private key as a
credential (through the "Credentials" page), then use that registered
credential in your job definition.  The git plugin relies on the
Credentials plugin and uses it so that you can manage credentials through
the Jenkins web pages.

Mark Waite


On Sun, May 11, 2014 at 6:17 AM, lesssugar <[email protected]> wrote:

> Actually, the problem I had was the lack of GIT plugin... I installed it
> and the wrong URL error is gone. However now when I set GIT repo to my
> GitLab one, I get this:
>
> *Failed to connect to repository : Command "git ls-remote -h
> [email protected]:[xxx]/[yyy].git HEAD" returned status code 128:*
> *stdout: *
> *stderr: Host key verification failed. *
> *fatal: The remote end hung up unexpectedly*
>
> To answer your questons, I don't have any of this set-up, as I really
> don't know how to do it. I looked for configuration guides for Jenkins +
> GitLab but none helped me.
>
> All I'm trying to achieve is use my GitLab repo in Jenkins, so it can
> deploy latest changes to my website (remote server).
>
> Any help on the subject of setting up the keys and authenticating the
> connection will be appreciated.
>
> On Sunday, May 11, 2014 4:02:38 AM UTC+2, novamine118 wrote:
>>
>> what key is jenkins using to authenticate - did you set one up?
>>
>> Is jenkin's public key registered with a gitlab user? And does that
>> gitlab user have access to that repo? The gitlab user also needs to be at
>> least a "Reporter" (for "pull project code" Action).
>>
>>
>> -Xavier
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks!
Mark Waite

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to