I am having issue with git clone. May be someone can guide me.
From command line i can clone git repository meaning ssh keys set
properly. But when i use same from jenkins and getting error.
ERROR: Error cloning remote repo 'origin' : Could not clone
ssh://
git.xyz.com:2222/team/xyz
ERROR: Cause: Error performing command: /usr/bin/git clone --progress -
o origin ssh://
git.xyz.com:2222/team/xyz
/var/lib/jenkins/workspace/test
Command "/usr/bin/git clone --progress -o origin ssh://
git.xyz.com:2222/team/xyz
/var/lib/jenkins/workspace/test" returned status code 128: Cloning
into /var/lib/jenkins/workspace/test...
No protocol specified
(ssh-askpass:10979): Gtk-WARNING **: cannot open display: :0.0
Host key verification failed.
fatal: The remote end hung up unexpectedly
Trying next repository
ERROR: Could not clone repository
FATAL: Could not clone
hudson.plugins.git.GitException: Could not clone
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1042)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968)
at hudson.FilePath.act(FilePath.java:785)
at hudson.FilePath.act(FilePath.java:767)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:968)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
at hudson.model.AbstractBuild
$AbstractRunner.checkout(AbstractBuild.java:567)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:
455)
at hudson.model.Run.run(Run.java:1404)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:
88)
at hudson.model.Executor.run(Executor.java:230)
pls help.
i have ssh keys under /var/lib/jenkins/.ssh. It should be somewhere
else?
thanks,
Raj