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

Update to 3.11.1 breaks ssh auth with AWS Linux 2 and other OpenSSH 7.4 implementations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • git-client-plugin
    • None
    • Amazon Linux 2
      OpenSSH_7.4p1, OpenSSL 1.0.2k-fips

      I updated from 3.11.0 to 3.11.1 and it broke ssh auth with Bitbucket for a pipeline using Pipeline script for SCM (Git). The error message states unsupported option "accept-new". I was able to resolve the issue by rolling back to the previous version and restarting Jenkins. My Jenkins is running on Amazon Linux 2 with SSH version: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017. 

       

      hudson.plugins.git.GitException: Command "git fetch --tags --force --progress --prune -- origin +refs/heads/develop:refs/remotes/origin/develop" returned status code 128:
      stdout: 
      stderr: command-line line 0: unsupported option "accept-new".
      fatal: Could not read from remote repository.
      
      Please make sure you have the correct access rights
      and the repository exists.
      
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2674)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2098)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
      	at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:366)
      	at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:197)
      	at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:173)
      	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:118)
      	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:70)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311)
      	at hudson.model.ResourceController.execute(ResourceController.java:101)
      	at hudson.model.Executor.run(Executor.java:442)
      Finished: FAILURE 

       
      Can also resolve the issue by changing the Git host key verification strategy as described in the git client plugin documentation.
       

            markewaite Mark Waite
            gaforester Roger F Bryant
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: