Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63609

Git authentication fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins version 2.255
      Ubuntu 18.04.5 LTS
      Git Plugin 4.4.1
      Git Client Plugin 3.4.2
      GitHub API Plugin 1.116

      Hi,

      I have been experiencing an authorization problem in my pipeline since yesterday, there was no problem before.

      I defined personnel access credentials for my private GitHub repository. When I chose the credential on the dropdown menu I see the following message

      Failed to connect to repository : Command "git ls-remote -h -- https://github.com/account/repoName.git HEAD" returned status code 128:
      stdout:
      stderr: warning: invalid credential line: get
      remote: Invalid username or password.
      fatal: Authentication failed for 'https://github.com/account/repoName.git/'

      I also defined account credentials(user name and password) for the private repository but I get the same result. The credentials I describe is absolutely correct, I achieve success when I use access commands such as clone in pipeline script.

      I googled it and reads many issues but don't found any solutions work for me. There must be some things I'm missing.

      I'm creating this issue before reinstalling Jenkins because doing this seems very unprofessional to me.

      I would be glad if you could help.

      Thanks

            Unassigned Unassigned
            hakdogan Hüseyin Akdoğan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: