-
Type:
Improvement
-
Resolution: Won't Fix
-
Priority:
Minor
-
Component/s: scp-plugin
-
Environment:Ubuntu Linux
OpenSSH_7.2p2 Ubuntu-4ubuntu2.6, OpenSSL 1.0.2g 1 Mar 2016
Hi. I just fix Algorithm negotiation fail. Scp plugin does not work at new OpenSSH:
ERROR: Failed to upload files com.jcraft.jsch.JSchException: Algorithm negotiation fail    at com.jcraft.jsch.Session.receive_kexinit(Session.java:520)    at com.jcraft.jsch.Session.connect(Session.java:286)    at com.jcraft.jsch.Session.connect(Session.java:150)    at be.certipost.hudson.plugin.SCPSite.createSession(SCPSite.java:153)    at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:160)    at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)    at hudson.model.Build$BuildExecution.post2(Build.java:185)    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)    at hudson.model.Run.execute(Run.java:1745)    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)    at hudson.model.ResourceController.execute(ResourceController.java:98)    at hudson.model.Executor.run(Executor.java:404) Build step 'Publish artifacts to SCP Repository' changed build result to UNSTABLE
To fix this problem you need upgrade jsch library (i use 0.1.55). Put this jar to jenkins/plugins/scp/WEB-INF/lib/. Edit pom.xml from jenkins/plugins/scp/META-INF/maven/org.jvnet.hudson.plugins/scp/ and change version string to 0.1.55:
<dependencies> Â Â Â Â Â Â Â <dependency> Â Â Â Â Â Â Â Â Â Â Â <groupId>com.jcraft</groupId> Â Â Â Â Â Â Â Â Â Â Â <artifactId>jsch</artifactId> Â Â Â Â Â Â Â Â Â Â Â <version>0.1.55</version> Â Â Â Â Â Â Â </dependency> Â Â Â </dependencies>
Please update jsch lib to the lastest version. Thanks!