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

[ sshPut ] unable to copy only contents inside folder. put always copying full folder

      I am trying to copy contents inside of a folder(whcih is Jenkins workspace) to another reomte location using sshPut. put always copying full folder instead of contents. 

      In below example it always trying to copy test folder to destination location.

      if the same command executes for the second time it giving below error.
      Failed SFTP MKDIR: <host address>:$SERVER_PATH/test

      example code:

      sshPut remote: remote, from: "$BUILD_NUMBER/test/",into: "$SERVER_PATH"

      Installed SSH Pipeline Steps version is  2.0.0

       

          [JENKINS-58778] [ sshPut ] unable to copy only contents inside folder. put always copying full folder

          Kiran Kumar Gangadi created issue -
          Kiran Kumar Gangadi made changes -
          Description Original: I am trying to copy contents inside of a folder(whcih is Jenkins workspace) to another reomte location using sshPut. put always copying full folder instead of contents. 

          In below example it always trying to copy test folder to destination location.

          if the same command executes for the second time it giving below error.
          Failed SFTP MKDIR: <host address>:$SERVER_PATH/test
          example code:

          *sshPut remote: remote, from: "$BUILD_NUMBER/test/",into: "$SERVER_PATH"*
          New: I am trying to copy contents inside of a folder(whcih is Jenkins workspace) to another reomte location using sshPut. put always copying full folder instead of contents. 

          In below example it always trying to copy test folder to destination location.

          if the same command executes for the second time it giving below error.
           Failed SFTP MKDIR: <host address>:$SERVER_PATH/test

          example code:

          *sshPut remote: remote, from: "$BUILD_NUMBER/test/",into: "$SERVER_PATH"*

          Installed [SSH Pipeline Steps|https://wiki.jenkins.io/display/JENKINS/SSH+Steps+Plugin] version is  [2.0.0|https://jenkins-test.basf.net/apdl/pluginManager/plugin/ssh-steps/thirdPartyLicenses]

           
          Naresh Rayapati made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Piotr S made changes -
          Labels Original: plugin New: plugin ssh-steps-plugin
          Piotr S made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

            nrayapati Naresh Rayapati
            kirangangadi Kiran Kumar Gangadi
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: