Branch Indexing of protected repository fails

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      After upgrading git-plugin from 3.6.0 to 3.6.2, we ran into issues with branch indexing.

       

      Our setup:

      •  multibranch project is configured to use git plugin as a branch source
      <source class="jenkins.plugins.git.GitSCMSource" plugin="git@3.6.2">
      • we are using ssh for access
      <remote>ssh://...</remote>
      • we are using SSH key stored in credentials store
      <credentialsId>git</credentialsId>
      • private key in credentials store is entered directly - see attached screenshot

       

      As I mentioned before, after downgrade back to previous installed version - 3.6.0 it works again as expected...

       

      Build is running OK with either version.

       

      During branch indexing we are getting following error:

      hudson.plugins.git.GitException: Command "git ls-remote --symref ssh://..." returned status code 128:
      stdout: 
      stderr: Host key fingerprint is SHA256:mwgKiiDwV1aEzioD2snW9pEl6w...
      +---[ECDSA 256]---+
      ...
      +----[SHA256]-----+
      Permission denied (publickey).
      fatal: Could not read from remote repository.
      
      Please make sure you have the correct access rights
      and the repository exists.
      

            Assignee:
            Unassigned
            Reporter:
            Jaroslav Barton
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: