Hi,

Where is the repo located is it in github or gitlab or butbucket
1. log into the Jenkins server with ser as jenkins by running sudo su
jenkins
2. cd .ssh
3. copy the public key and pste it to the repo deploy keys section
 then you should be able to connect the jenkins with git .

*Robert Rajendra*

Associate Network/Server Support Engineer

IT Hands

P: +91 863.087.3094 <+91%2086308%2073094>

W: www.ITHands.com <http://www.ithands.com/>


On Fri, 1 Feb 2019 at 04:10, Archana Srichandan <
archana.srichan...@4tigo.com> wrote:

> Hi,
>  Thanks for your reply. I gave the url as serverip:path to repository, The
> username is given as the user of the remote server to which to do SSH. I
> have created a private key for the user which I am logged in into the
> jenkins server. I am copying the private key directly and also the
> passphrase. Still I am not able to clone from the repository. Please let me
> know if I am doing something wrong.
> Note. Jenkins is running behind tomcat. (I deploy jenkins through tomcat).
> Regards,
> Archana Srichandan
>
>
> On Thu, Jan 31, 2019 at 8:58 PM Mark Waite <mark.earl.wa...@gmail.com>
> wrote:
>
>> Did you assign a private key credential to that job?  A username.password
>> credential won't work with an SSH URL.  A private key credential won't work
>> with an http or https URL.
>>
>> If the private key has a passphrase, did you provide the passphrase when
>> defining the credential in Jenkins?
>>
>> Did you confirm that the private key will authenticate from the command
>> line?
>>
>> Mark Waite
>>
>> On Tue, Jan 29, 2019 at 3:17 PM <archana.srichan...@4tigo.com> wrote:
>>
>>> Hi All,
>>>
>>> I am not able to run my git repo on Jenkins ,attach is the screen shot
>>> for your reference.
>>>
>>> Regards,
>>> Archana Srichandan
>>>
>>> --
>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/50dd7ccf-9ad6-45e3-a5fc-9cee050a7737%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/50dd7ccf-9ad6-45e3-a5fc-9cee050a7737%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> 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 Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGvL%3DxHGju7a%2BbGvVd7Bhs7gvhr09Qd%3Dr3zkY1OOs2DhA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGvL%3DxHGju7a%2BbGvVd7Bhs7gvhr09Qd%3Dr3zkY1OOs2DhA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CA%2BU8sbXkPabE0ZqNTq_iur%3DRGjmm6MeaYdzXgRPCNMsqfheS_A%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CA%2BU8sbXkPabE0ZqNTq_iur%3DRGjmm6MeaYdzXgRPCNMsqfheS_A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CABbC_KHHFFLDLyv2yCd9g2u8bho6Pa%2BLUoOLGsnjNz_drci9uw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to