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

Git Plugin: unsupported option "accept-new".

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • git-plugin
    • None

      Hi,

      Recently, we have upgraded Jenkins to 2.414.1 and using the Git Plugin -  5.2.1.

      Select "Accept first connection":

      'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' -> "Accept first connection"

       

      Go to Dashboard -> select any job that interacts with git repositories:

      When selecting the git branch or trying to establish a connection:

       

       

      
      The default value has been returned 
      An error occurred while download data
      Command "git ls-remote -h -- git@git-test.com:sample/testing.git" returned status code 128:<br>stdout: <br>stderr: command-line line 0: unsupported option "accept-new". <br>fatal: Could not read from remote repository.<br><br>Please make sure you have the correct access rights<br>and the repository exists.<br>
      Please look at the Log
      Please check the configuration 
      
      

       

      Hitting the above issue, as per our requirement, we wanted to use 'Git Host Key Verification Configuration' -> "Accept first connection" only.

      Can you please guide me on how to fix the issue, or is there a new version of the plugin?

       

       

            markewaite Mark Waite
            mahendragi Mahendra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: