It is generally a bad practice to embed a space character in the name of
the git repository.  If the example you provided accurately describes what
you're trying to do, then you'll probably need to rename the repository
from 'project Name' to something that does not include space characters.

Other things to consider:

   - Have you defined a Jenkins credential with the username and password
   that is used to access that repository?
   - Are you using that Jenkins credential in the job definition?
   - Are you able to clone from that repository using command line git with
   the username and password from the Jenkins credential?
   - Can you clone public repositories (for example,
   https://github.com/jenkinsci/git-client-plugin)?
   - Can you clone other private repositories?
   - Have you tried adding JGit from the "Manage Jenkins" -> "Global Tool
   Configuration" -> "Git installations" section, then adjust your job to use
   JGit instead of command line git?
   - Is this a Freestyle job, a Pipeline job, a Multibranch Pipeline job,
   or something else?
   - What version of command line git is running on the agent where the
   command fails?
   - What operating system are you using?


On Fri, Mar 1, 2019 at 6:19 AM mohammad sayekooie <mohis...@gmail.com>
wrote:

> *Failed to connect to repository : Command "git ls-remote -h
> http://a.a.a.a:8081/master/project <http://a.a.a.a:8081/master/project>
> Name.git HEAD" returned status code 128:*
> stdout:
> stderr: error: The requested URL returned error: 401 Unauthorized while
> accessing http://*a.a.a.a:8081/master/project Name.git*/info/refs
>
> fatal: HTTP request failed
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/afaaf96d-0c35-4e92-b49c-19f564ffacea%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/afaaf96d-0c35-4e92-b49c-19f564ffacea%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Thanks!
Mark Waite

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtH9Bu6R1L8J7MY6xzD7wwDg72XwooNq5t85sKw7cAbzYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to