Oh, I remembered.. I think I used a simple exec shell step to do git clone
and it was working... not sure why I didn't use plugin.

basically I had

rm -fR dir
git clone ssh://machine/repo/project dir




On Thu, Feb 14, 2013 at 4:40 PM, Kamal Ahmed <kamal2222ah...@yahoo.com>wrote:

> yes, JM ( Jenkins Master ) and JS ( jenkins Slave ) are two different
> machines. JM being @ home and connected via vpn, and JS being on the
> company lan.
> But i am able to connect ssh without password between these two machines
> as user Jenkins.
>
> also i am able to get the repo by using:
>
> git clone 10.100.243.212:/var/www/invo_app .
>
> i get the repo
>
> Very confusing, there should be some documentation on how this works.
> Thanks,
> -Kamal.
>
>
>   ------------------------------
> *From:* Octavian Covalschi <octavian.covals...@gmail.com>
> *To:* jenkinsci-users@googlegroups.com
> *Sent:* Thursday, February 14, 2013 5:13 PM
> *Subject:* Re: ssh://<IP address>/<Path to git repo> Does not work
>
> It looks like JM and JS are 2 different machines, yes?
> Is the job being executed on JM or JS?
> How are you populating /var/www/invo_app ?
>
> Recently I have tried jenkins with git to pull from a network computer,
> but in my use case I had ssh://<JM IP ADDRESS>/my_project
>
>
>
> On Thu, Feb 14, 2013 at 4:02 PM, Kamal Ahmed <kamal2222ah...@yahoo.com>wrote:
>
> Hi,
> I have setup between Jenkins Master (JM) and Jenkins Slave (JS) so that
> user "jenkins" from JM can do an ssh login to JS as user jenkins ( manually
> created )
> without password. by exchanging secure authorized_keys.
> But now when i use git repository URL as ssh://<JS IP
> ADDRESS>/var/www/invo_app
>
>  i get the following error:
>
> 16:50:11 Started by user anonymous
> 16:50:11 Building remotely on datascout in workspace
> /home/kahmed/workspace/DA_v2
> 16:50:11 Checkout:DA_v2 / /home/kad/workspace/DA_v2 -
> hudson.remoting.Channel@54942a84:da
> 16:50:11 Using strategy: Default
> 16:50:11 Cloning the remote Git repository
> 16:50:11 Cloning repository ssh://<JS IP ADDRESS>/var/www/invo_app
> 16:50:11 git --version
> 16:50:11 git version 1.7.9.5
>
> 16:51:15 ERROR: Error cloning remote repo 'origin' : Could not clone
> ssh://<JS IP ADDRESS>/var/www/invo_app
> 16:51:15 hudson.plugins.git.GitException: Could not clone ssh://<JS IP
> ADDRESS>/var/www/invo_app
> 16:51:15     at hudson.plugins.git.GitAPI.clone(GitAPI.java:273)
> 16:51:15     at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044)
> 16:51:15     at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986)
> 16:51:15     at
> hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348)
> 16:51:15     at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> 16:51:15     at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> 16:51:15     at hudson.remoting.Request$2.run(Request.java:326)
> 16:51:15     at
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> 16:51:15     at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> 16:51:15     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 16:51:15     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> 16:51:15     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> 16:51:15     at java.lang.Thread.run(Thread.java:679)
> 16:51:15 Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git
> clone --progress -o origin ssh://<JS IP ADDRESS>/var/www/invo_app
> /home/kad/workspace/DA_v2" returned status code 128:
> 16:51:15 stdout: Cloning into '/home/kahmed/workspace/DA_v2'...
> 16:51:15
> 16:51:15 stderr: ssh: connect to host 10.100.243.212 port 22: Connection
> timed out
> 16:51:15 fatal: The remote end hung up unexpectedly
> 16:51:15
> 16:51:15     at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:897)
> 16:51:15     at hudson.plugins.git.GitAPI.access$000(GitAPI.java:42)
> 16:51:15     at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:269)
> 16:51:15     at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:248)
> 16:51:15     at hudson.FilePath.act(FilePath.java:865)
> 16:51:15     at hudson.FilePath.act(FilePath.java:838)
> 16:51:15     at hudson.plugins.git.GitAPI.clone(GitAPI.java:248)
> 16:51:15     ... 12 more
> 16:51:15 Trying next repository
> 16:51:15 ERROR: Could not clone repository
> 16:51:15 FATAL: Could not clone
> 16:51:15 hudson.plugins.git.GitException: Could not clone
> 16:51:15     at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1056)
> 16:51:15     at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986)
> 16:51:15     at
> hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348)
> 16:51:15     at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> 16:51:15     at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> 16:51:15     at hudson.remoting.Request$2.run(Request.java:326)
> 16:51:15     at
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> 16:51:15     at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> 16:51:15     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 16:51:15     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> 16:51:15     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> 16:51:15     at java.lang.Thread.run(Thread.java:679)
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>    --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to