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

Failed to connect to private bitbucket repository with username/password

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None

      Git plugin version 2.3.5, jenkins version 1.613.
      When trying to link the job with my GIT repository (i am using bitbucket) , I am getting this red error message:
      Failed to connect to repository : Could not init C:\Users\<username>\AppData\Local\Temp\hudson6773377567759656092tmp

      This is interesting because I can successfully clone this repository from git bash. The project uses login credentials rather than SSH keys.
      The git.exe ls-remote <repo url> command also works correctly from git bash.
      I believe i have my permissions set correctly, all the online forums i have looked at have been no help, many have said it must be a bug with the git plugin.

      Here is the info on the failed build when i try to build the project in jenkins.

      Started by user anonymous
      Building in workspace C:\Program Files (x86)\Jenkins\workspace\CPQ-core-practice
      Cloning the remote Git repository
      Cloning repository https://apttusciuser@bitbucket.org/apttusciuser/cpq-core.git
      > C:\Users\<user>y\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\bin init C:\Program Files (x86)\Jenkins\workspace\<projectname> # timeout=10
      ERROR: Error cloning remote repo 'origin'
      ERROR: Error cloning remote repo 'origin'
      Finished: FAILURE

            Unassigned Unassigned
            srakoczy Spencer Rakoczy
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: