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

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

XMLWordPrintable

      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

       

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

              Created:
              Updated: