-
Task
-
Resolution: Won't Fix
-
Major
-
None
I want to send the .war file I created from the source code to the remote server with SCP. I am getting the error that I have shared in the attachment.,
war:
[delete] Deleting: /var/lib/jenkins/workspace/MyWeb/build/WebCont.war
[war] Building war: /var/lib/jenkins/workspace/MyWeb/build/WebCont.war
BUILD SUCCESSFUL
Total time: 0 seconds
[SCP] Connecting to 11.1.3.195
ERROR: Failed to upload files
com.jcraft.jsch.JSchException: Session.connect: java.net.SocketException: Connection reset
at com.jcraft.jsch.Session.connect(Session.java:495)
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:47)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:763)
at hudson.model.Build$BuildExecution.post2(Build.java:179)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:707)
at hudson.model.Run.execute(Run.java:1921)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
Build step 'Publish artifacts to SCP Repository' changed build result to UNSTABLE
Finished: UNSTABLE