Skip to content

Commit

Permalink
Merge pull request #72 from rundeck-plugins/RUN-2731
Browse files Browse the repository at this point in the history
RUN-2731Fixes SSH CopyFileFailed for recurisve copy after update to rundeck 5.3.0/5.4.0
  • Loading branch information
carlosrfranco authored Feb 20, 2025
2 parents b2d0971 + 692fd89 commit d973d21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/plugin/sshjplugin/model/SSHJScp.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ public void execute(SSHClient ssh) throws Exception {
try {

if(useSftp) {
sftp.put(new FileSystemFile(this.localFile), toDir);
sftp.put(new FileSystemFile(file), toDir);
} else {
ssh.newSCPFileTransfer().upload(new FileSystemFile(this.localFile), toDir);
ssh.newSCPFileTransfer().upload(new FileSystemFile(file), toDir);
}
} catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit d973d21

Please sign in to comment.