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

SCP not working with windows to windows file transfer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • scp-plugin
    • None
    • windows to windows connectivity

      Hi

      we want to achieve the Jenkins pipeline in cross IP environment(same server domain but different IP)  I am trying to copy the shell script file from one windows server to another windows server (through shell script), after successful copy of file we want to execute that copied shell script file on target server(where we copied the file). when we trying to implement this we are facing the following challenges:-

      1. How we can authenticate the target server because RSA_private_key and Public_key exchange method is not working?
      2. When we try to implement this through scp and ssh configuration through plugin and openssh we are getting the following error:

      Started by user jenkins
      [EnvInject] - Loading node environment variables.
      Building in workspace C:\Users\admin\.jenkins\workspace\testing scp
      CIFS: Connecting from host [IIServer1]
      CIFS: Connecting with configuration [IIServer2] ...
      ERROR: Exception when publishing, exception message [Exception when testing config. URL [smb://IIServer2/H:/scripts/], Message: [Logon failure: unknown user name or bad password.]]
      Build step 'Send files to a windows share' changed build result to UNSTABLE
      [SCP] Connecting to IIServer2
      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:744)
       at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
       at hudson.model.Build$BuildExecution.post2(Build.java:186)
       at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
       at hudson.model.Run.execute(Run.java:1819)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      Finished: UNSTABLE

      If you need any further clarification kindly let me know.

      It will be great if you can help me on the above error.

       

       

      Thanks!

      Abhishek Choudhary

       

            andresrc Andres Rodriguez
            abhishekchoudhary Abhishek Choudhary
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: