-
Bug
-
Resolution: Unresolved
-
Major
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
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] |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Labels | Original: plugin | New: plugin ssh-steps-plugin |
Please use filterBy, filterRegex options to copy contents of the folders instead of coping the entire folder, and also use
override: true option to override the contents.