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

jsch plugin prevents Remote SFTP Plugin From Working on MacOS Monterey

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • jsch-plugin, scp-plugin
    • Jenkins 2.360, jsch 0.1.55.2 , Mac OS X Monterey

      I have different build projects which automate builds for IOS and Android Mobile Applications.... For IOS we do an SSH to a MAC and run all the commands and scripts there so we can have access to the Keychain and required libs for Apple.

       

      We had to upgrade our MAC to Monterey and our Jenkins Builds are failing at the Step of doing a Remote SFTP Download to bring back the binaries to Jenkins UI.

       

      FYI Jenkins is running inside a container

       

      If I run the same Build Process from Jenkin to a Mac OSX Catalina  Machine everything works fine

       

      I saw this post which let me to believe that the problem happened before and was fixed and now its back again

      https://issues.jenkins.io/browse/JENKINS-55645

       

      The Error is:

      14:13:07 ##########################################################################
      14:13:07 execute on server --  M1_SERVERS_GROUP~~M1_MACBOOK_PRO~~192.168.20.150
      14:13:07 create ssh session failed with ip=[192.168.20.150],port=[22],username=[pidouminou],password=[*******]
      14:13:07 com.jcraft.jsch.JSchException: Algorithm negotiation fail
      14:13:07 	at com.jcraft.jsch.Session.receive_kexinit(Session.java:552)
      14:13:07 	at com.jcraft.jsch.Session.connect(Session.java:299)
      14:13:07 	at com.jcraft.jsch.Session.connect(Session.java:162)
      14:13:07 	at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:75)
      14:13:07 	at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.downloadFile(DefaultSshClient.java:141)
      14:13:07 	at jenkins.plugins.ssh2easy.gssh.GsshFtpDownloadBuilder.perform(GsshFtpDownloadBuilder.java:77)
      14:13:07 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      14:13:07 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816)
      14:13:07 	at hudson.model.Build$BuildExecution.build(Build.java:199)
      14:13:07 	at hudson.model.Build$BuildExecution.doRun(Build.java:164)
      14:13:07 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524)
      14:13:07 	at hudson.model.Run.execute(Run.java:1899)
      14:13:07 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      14:13:07 	at hudson.model.ResourceController.execute(ResourceController.java:107)
      14:13:07 	at hudson.model.Executor.run(Executor.java:449)
      14:13:07 [GSSH - SFTP]  Exception:[GSSH - SFTP]  Exception Algorithm negotiation fail
      14:13:07 jenkins.plugins.ssh2easy.gssh.GsshPluginException: [GSSH - SFTP]  Exception Algorithm negotiation fail
      14:13:07 	at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:84)
      14:13:07 	at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.downloadFile(DefaultSshClient.java:141)
      14:13:07 	at jenkins.plugins.ssh2easy.gssh.GsshFtpDownloadBuilder.perform(GsshFtpDownloadBuilder.java:77)
      14:13:07 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      14:13:07 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816)
      14:13:07 	at hudson.model.Build$BuildExecution.build(Build.java:199)
      14:13:07 	at hudson.model.Build$BuildExecution.doRun(Build.java:164)
      14:13:07 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524)
      14:13:07 	at hudson.model.Run.execute(Run.java:1899)
      14:13:07 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      14:13:07 	at hudson.model.ResourceController.execute(ResourceController.java:107)
      14:13:07 	at hudson.model.Executor.run(Executor.java:449)
      14:13:07 Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail
      14:13:07 	at com.jcraft.jsch.Session.receive_kexinit(Session.java:552)
      14:13:07 	at com.jcraft.jsch.Session.connect(Session.java:299)
      14:13:07 	at com.jcraft.jsch.Session.connect(Session.java:162)
      14:13:07 	at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:75)
      14:13:07 	... 11 more
      14:13:07 Build step 'Remote SFTP Download' marked build as failure

            dnusbaum Devin Nusbaum
            badetter Ricardo Badette
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: