-
Improvement
-
Resolution: Unresolved
-
Minor
We need to rename directories on a remote machine as part of a pipeline. Due to restrictions on the remote machine which only allows SFTP operations and forbids the execution of SSH commands, the rename must be done with SFTP.
Solutions with sshpass/sftp or custom groovy script have been examined and successfully tested. However we prefer to add this functionality to the ssh-steps plugin as the backing libraries of the plugin (groovy-ssh and jsch) already support the rename operation.
So, I forked the plugin's repository, started working on the addition of the ssh rename step and found out that the groovy-ssh library also needs to be edited to support this functionality (the rename operation is there, but needs to be added as a SessionExtension too).
I will try to create a pull request on groovy-ssh and when (hopefully) a release of the library is out with the new feature I will continue work here as well.