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

Error to connect bitbucket source code management to jenkins

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I'm trying to connect bitbucket to jenkins. All the public/private key is configured, firewall is configured, but I keep having this error:

      Failed to connect to repository : Command "git.exe ls-remote -h git@bitbucket.org:myrepo/myproject.git HEAD" returned status code 128: stdout: stderr: Load key "C:\\Windows\\TEMP
      ssh6081589915199893224.key": invalid format
       Permission denied (publickey). fatal: Could not read from remote repository.

      Please make sure you have the correct access rights and the repository exists.

      The credential is set to "Private Key" -> "Enter directly" -> "my key" and my passphrase is setted too.

      Why is jenkins trying to get the key from TEMP and not from .ssh inside jenkins' folder?

        Attachments

          Activity

          lgmguto Luiz Gustavo Maia created issue -
          markewaite Mark Waite made changes -
          Field Original Value New Value
          Assignee Mark Waite [ markewaite ]
          markewaite Mark Waite made changes -
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Resolved [ 5 ]
          markewaite Mark Waite made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            lgmguto Luiz Gustavo Maia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: