i need to connect git on jenkins but im getiing error 128

22 views
Skip to first unread message

mohammad sayekooie

unread,
Mar 1, 2019, 8:19:40 AM3/1/19
to Jenkins Users
Failed to connect to repository : Command "git ls-remote -h 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

Dirk Heinrichs

unread,
Mar 1, 2019, 8:29:58 AM3/1/19
to jenkins...@googlegroups.com
Am Freitag, den 01.03.2019, 04:56 -0800 schrieb mohammad sayekooie:

401 Unauthorized

And that doesn't ring a bell? Seems you need to provide credentials.

HTH...

Dirk
-- 
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon Davies, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

Mark Waite

unread,
Mar 1, 2019, 8:31:16 AM3/1/19
to Jenkins Users
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?

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


--
Thanks!
Mark Waite
Reply all
Reply to author
Forward
0 new messages