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

Unable to connect to remote Stash repository using git plugin

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin
    • UAT

      Unable to connect to remote Stash repository using git plugin. It's actually a public repository where no credentials required. I'm running the job on Master node.

      When I search on google, I could see a recommendation to add git executables under global tool configuration. Do we need to install Git also in the Jenkins server apart from git plugin. 

      Attached the complete error logs.

      Error:

      Failed to connect to repository : Error performing command:  ls-remote -h http://bitbucket/scm/project/public.git HEAD

          [JENKINS-43321] Unable to connect to remote Stash repository using git plugin

          Mark Waite added a comment - - edited

          Please don't use the bug tracker to ask for help. There are far more people reading the Jenkins user mailing list that can help than there are developers reading the Jenkins bug tracker for git plugin or git client plugin bug reports.

          In this particular case, you should double check your URL, since "https://bitbucket/" is not a valid hostname in the URL. It is usually "https://bitbucket.org".

          If you have not installed command line git on the agent (master and all slaves), then yes, that is also required, unless you switch the git implementation to use "jgit" instead of command line git. The git plugin wiki page describes a number of areas where the jgit implementation is missing features compared to the command line git implementation.

          Mark Waite added a comment - - edited Please don't use the bug tracker to ask for help. There are far more people reading the Jenkins user mailing list that can help than there are developers reading the Jenkins bug tracker for git plugin or git client plugin bug reports. In this particular case, you should double check your URL, since "https://bitbucket/" is not a valid hostname in the URL. It is usually "https://bitbucket.org". If you have not installed command line git on the agent (master and all slaves), then yes, that is also required, unless you switch the git implementation to use "jgit" instead of command line git. The git plugin wiki page describes a number of areas where the jgit implementation is missing features compared to the command line git implementation.

            markewaite Mark Waite
            subashp Subash P
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: