Wednesday, 15 April 2015

Is it possible to clone a git repo when given ":/ with Jenkins -



Is it possible to clone a git repo when given "<IP Address>:/<Path to App> with Jenkins -

what have is:

a.b.c.d:/x/www/app

now if issue command:

git clone a.b.c.d:/x/www/app /home/user

i prompted ldap password , clone app successfully.

but when utilize same jenkins, jenkins gives error:

failed connect repository : command "/usr/bin/git ls-remote -h a.b.c.d:/x/www/app head" returned status code 128: stdout: stderr: host key verification failed. fatal: remote end hung unexpectedly

i using jenkins version 1.500 , git plugin version 1.1.26

error:

using strategy: default cloning remote git repository cloning repository git:///$git_user@a.b.c.d:/var/www/app git --version git version 1.7.9.5 error: error cloning remote repo 'origin' : not clone git:///$git_user@a.b.c.d:/var/www/app hudson.plugins.git.gitexception: not clone git:///$git_user@a.b.c.d:/var/www/app @ hudson.plugins.git.gitapi.clone(gitapi.java:273) @ hudson.plugins.git.gitscm$2.invoke(gitscm.java:1044) @ hudson.plugins.git.gitscm$2.invoke(gitscm.java:986) @ hudson.filepath$filecallablewrapper.call(filepath.java:2348) @ hudson.remoting.userrequest.perform(userrequest.java:118) @ hudson.remoting.userrequest.perform(userrequest.java:48) @ hudson.remoting.request$2.run(request.java:326) @ hudson.remoting.interceptingexecutorservice$1.call(interceptingexecutorservice.java:72) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:334) @ java.util.concurrent.futuretask.run(futuretask.java:166) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) @ java.lang.thread.run(thread.java:679) caused by: hudson.plugins.git.gitexception: command "/usr/bin/git clone --progress -o origin git:///$git_user@a.b.c.d:/var/www/app /home/user/workspace/app" returned status code 128: stdout: cloning '/home/user/workspace/app'... stderr: fatal: unable connect : : name or service not known @ hudson.plugins.git.gitapi.launchcommandin(gitapi.java:897) @ hudson.plugins.git.gitapi.access$000(gitapi.java:42) @ hudson.plugins.git.gitapi$1.invoke(gitapi.java:269) @ hudson.plugins.git.gitapi$1.invoke(gitapi.java:248) @ hudson.filepath.act(filepath.java:865) @ hudson.filepath.act(filepath.java:838) @ hudson.plugins.git.gitapi.clone(gitapi.java:248) ... 12 more trying next repository error: not clone repository fatal: not clone hudson.plugins.git.gitexception: not clone @ hudson.plugins.git.gitscm$2.invoke(gitscm.java:1056) @ hudson.plugins.git.gitscm$2.invoke(gitscm.java:986) @ hudson.filepath$filecallablewrapper.call(filepath.java:2348) @ hudson.remoting.userrequest.perform(userrequest.java:118) @ hudson.remoting.userrequest.perform(userrequest.java:48) @ hudson.remoting.request$2.run(request.java:326) @ hudson.remoting.interceptingexecutorservice$1.call(interceptingexecutorservice.java:72) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:334) @ java.util.concurrent.futuretask.run(futuretask.java:166) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) @ java.lang.thread.run(thread.java:679)

git:// protocol not utilize authentication.

if want utilize protocol, need start git-daemon on server-side repository.

if ssh username/key based authentication wanted, utilize ssh://$user/path instead.

git jenkins

No comments:

Post a Comment