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

Add step to rename remote directory or file with SFTP

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ssh-steps-plugin

      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.

          [JENKINS-72468] Add step to rename remote directory or file with SFTP

          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.

          Dimitris Meletiou added a comment - 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.

            dmel Dimitris Meletiou
            dmel Dimitris Meletiou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: