Re: INTEGRATING JENKINS AND GIT REMOTELY

21 views
Skip to first unread message

Mark Waite

unread,
Sep 26, 2016, 10:40:53 AM9/26/16
to Jenkins Developers
You could try to open that URL in your web browser (since you've chosen to use http as the access method).  If that fails, then you can use your web browser to diagnose why it is failing (incorrect URL, incorrect credentials, incorrect permissions on a file or directory in the file system, gitlist not configured correctly, etc.).

You could try accessing the repository with ssh instead (for example, using user...@192.168.5.35:/path/to/your/repo) through the command line.

Once you've confirmed either web browser access or command line access works, then you can add those credentials to jenkins and reference those credentials from a Jenkins job definition.

Mark Waite

On Mon, Sep 26, 2016 at 8:01 AM Safdar Khan <safdark...@gmail.com> wrote:
Hello frinds,
I am trying to integrate Jenkins with my git repository. Well both are running on two different machine acquiring two different ip address. 
So, scenario is like this,

1. Lets say JENKINS running on us...@192.168.5.50 and GIT is running on us...@192.168.5.51
2. One maven project demo.git is available in GIT machine with branch as master

So, my question is, what should i provide while configuring demo.git on jenkins server at the Repository URL
Well i have provided the value like this as per jenkins documentation http://192.168.5.51/gitlist/demo.git/
After that i get error like 

Failed to connect to repository : Command "git ls-remote -h http://192.168.5.35/gitlist/docc_Web_Services.git/ HEAD" returned status code 128:
stdout: 
stderr: fatal: unable to access 'http://192.168.5.35/gitlist/docc_Web_Services.git/': The requested URL returned error: 500

So what could be the possible solution?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/bc41cd39-b6f7-4405-9c46-3d81fcd681c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages