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

Branch Indexing of protected repository fails

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.86, git-plugin 3.6.2
    • Similar Issues:

      Description

      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.
      

        Attachments

          Issue Links

            Activity

            jabarton Jaroslav Barton created issue -
            jabarton Jaroslav Barton made changes -
            Field Original Value New Value
            Description 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

            {code:java}
            <source class="jenkins.plugins.git.GitSCMSource" plugin="git@3.6.2">{code}

             * we are using {{ssh}} for access

            {code:java}
            <remote>ssh://...&lt;/remote>{code}

             * we are using SSH key stored in credentials store

            {code:java}
            <credentialsId>git</credentialsId>{code}

             * private key in credentials store is entered directly - see attached screenshot

             

            As I mentioned before, it after downgrade back to previous installed version - {{3.6.0}} it works again as expected...
            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

            {code:java}
            <source class="jenkins.plugins.git.GitSCMSource" plugin="git@3.6.2">{code}
             * we are using {{ssh}} for access

            {code:java}
            <remote>ssh://...&lt;/remote>{code}
             * we are using SSH key stored in credentials store

            {code:java}
            <credentialsId>git</credentialsId>{code}
             * private key in credentials store is entered directly - see attached screenshot

             

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

             

            Build is running OK with either version.
            jabarton Jaroslav Barton made changes -
            Description 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

            {code:java}
            <source class="jenkins.plugins.git.GitSCMSource" plugin="git@3.6.2">{code}
             * we are using {{ssh}} for access

            {code:java}
            <remote>ssh://...&lt;/remote>{code}
             * we are using SSH key stored in credentials store

            {code:java}
            <credentialsId>git</credentialsId>{code}
             * private key in credentials store is entered directly - see attached screenshot

             

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

             

            Build is running OK with either version.
            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

            {code:java}
            <source class="jenkins.plugins.git.GitSCMSource" plugin="git@3.6.2">{code}
             * we are using {{ssh}} for access

            {code:java}
            <remote>ssh://...&lt;/remote>{code}
             * we are using SSH key stored in credentials store

            {code:java}
            <credentialsId>git</credentialsId>{code}
             * private key in credentials store is entered directly - see attached screenshot

             

            As I mentioned before, it 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:
            {code:java}
            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.
            {code}
            markewaite Mark Waite made changes -
            Assignee Mark Waite [ markewaite ]
            jabarton Jaroslav Barton made changes -
            Description 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

            {code:java}
            <source class="jenkins.plugins.git.GitSCMSource" plugin="git@3.6.2">{code}
             * we are using {{ssh}} for access

            {code:java}
            <remote>ssh://...&lt;/remote>{code}
             * we are using SSH key stored in credentials store

            {code:java}
            <credentialsId>git</credentialsId>{code}
             * private key in credentials store is entered directly - see attached screenshot

             

            As I mentioned before, it 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:
            {code:java}
            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.
            {code}
            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

            {code:java}
            <source class="jenkins.plugins.git.GitSCMSource" plugin="git@3.6.2">{code}
             * we are using {{ssh}} for access

            {code:java}
            <remote>ssh://...&lt;/remote>{code}
             * we are using SSH key stored in credentials store

            {code:java}
            <credentialsId>git</credentialsId>{code}
             * 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:
            {code:java}
            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.
            {code}
            markewaite Mark Waite made changes -
            Link This issue duplicates JENKINS-47629 [ JENKINS-47629 ]
            markewaite Mark Waite made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-47680 [ JENKINS-47680 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                jabarton Jaroslav Barton
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: