Like in the Publish over FTP plugin

          [JENKINS-33056] Please add clean remote option

          Andrew Gray added a comment -

          Thanks Alex.  It is only the jelly (UI?) files?

          Has this functionality been implemented for Declarative Pipeline to function as I am expecting?

          If so, what should the attribute be if not "cleanRemote: true"

          "clean-Remote: true"?

          Many Thanks.

          Andrew Gray added a comment - Thanks Alex.  It is only the jelly (UI?) files? Has this functionality been implemented for Declarative Pipeline to function as I am expecting? If so, what should the attribute be if not "cleanRemote: true" "clean-Remote: true"? Many Thanks.

          Alex Earl added a comment -

          No, one other file got missed when I pushed. It would be cleanRemote: true. If it works for scripted, it should work for declarative. There is nothing special that needs to be done for declarative as far as I know.

          Alex Earl added a comment - No, one other file got missed when I pushed. It would be cleanRemote: true. If it works for scripted, it should work for declarative. There is nothing special that needs to be done for declarative as far as I know.

          Andrew Gray added a comment - - edited

          As you can see from the 2nd sshPublisher() line above the cleanRemote: true appears to be totally ignored.

          Monitoring the remote directory while the job executes I see no deletion of anything in the remote directory.  Hence why I had to add the 1st sshPublisher() line as a workaround.

          Andrew Gray added a comment - - edited As you can see from the 2nd sshPublisher() line above the cleanRemote: true appears to be totally ignored. Monitoring the remote directory while the job executes I see no deletion of anything in the remote directory.  Hence why I had to add the 1st sshPublisher() line as a workaround.

          Alex Earl added a comment -

          Yes, that would be because the other file that got missed

          Alex Earl added a comment - Yes, that would be because the other file that got missed

          Alex Earl added a comment -

          1.21.1 released

          Alex Earl added a comment - 1.21.1 released

          Andrew Gray added a comment -

          Thank you Alex.  Tested and confirmed working as expected.

          Andrew Gray added a comment - Thank you Alex.  Tested and confirmed working as expected.

          Kim Abbott added a comment -

          Where is this released?  The latest release I see is 1.20.1.  Was this release pulled?

          Kim Abbott added a comment - Where is this released?  The latest release I see is 1.20.1.  Was this release pulled?

          m l added a comment -

          I reopen this issue since the last published Version is 1.20.1 and it does not contain correctly working clean remote option.

          m l added a comment - I reopen this issue since the last published Version is 1.20.1 and it does not contain correctly working clean remote option.

          For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/144
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-33056%22

          (Note: this is an automated bulk comment)

          Gavin McDonald added a comment - For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/144 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-33056%22 (Note: this is an automated bulk comment)

          Closing ticket, please use the corresponding Github Issue as linked above.

          Gavin McDonald added a comment - Closing ticket, please use the corresponding Github Issue as linked above.

            Unassigned Unassigned
            zerthimon Lior Goikhburg
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: