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 [email protected]:/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 <[email protected]> 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 *[email protected] <[email protected]>* > and *GIT* is running on *[email protected] <[email protected]>* > 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/ > <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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/bc41cd39-b6f7-4405-9c46-3d81fcd681c9%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/bc41cd39-b6f7-4405-9c46-3d81fcd681c9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtEMZ2KE_%3D2YrvmyOwTeVjXu2PNax3kwGP%2Bkb0YFadZ66A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
