Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting up jenkins on centos: problems with ssh keys and git
    primarykey
    data
    text
    <p>Went through a lot of questions, but nothing seems to be solving my issue. Or to be more precise I am not sure if I am doing the whole thing correctly. So here it is:</p> <p>Have installed centos 6.3 OS. Then I followed the following guide to install jenkins:</p> <p><a href="https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions">https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions</a></p> <p>Jenkins works fine. Now I am trying to set up a simple build job, which requires to clone a git repository. (I've installed git plugin)</p> <p>In repository URL i type the following: git@gitserver:myrepo.git Of course I get an error: stderr: Host key verification failed. </p> <p>ok, I need to generate ssh keys and all will be good. So I do the following:</p> <pre><code>su - jenkins </code></pre> <p>but unfortunately it doesn't switch to jenkins user.</p> <p>cat /etc/passwd</p> <p>shows the following:</p> <pre><code>jenkins:x:496:492:Jenkins Continuous Build Server:/var/lib/jenkins:/bin/false </code></pre> <p>so seems that it doesn't have a usual home directory.</p> <p>The question is how do I generate keys for jenkins or if the above steps where not the right way to do it, how do I fix it?</p> <p>Thanks a lot!</p> <p><strong>Update</strong>: I generated keys (as a root user) and placed them in jenkins home and did exactly and copied public key to git server. Still didn't help.</p> <p>When I look at the log of the build it says:</p> <pre><code>Started by user anonymous Building in workspace /var/lib/jenkins/jobs/myrepo/workspace </code></pre> <p>this user anonymous is this another user created by jenkins, or is it still jenkins that runs the commands?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload