We need a way to deploy software preserving chmod.
Currently, the publish-over-ssh-plugin uses scp without -p flag, so it losts information.
upstream — Reported for Jenkins publish-over-ssh-plugin as JENKINS-36553. Moved to https://github.com/jenkinsci/publish-over-ssh-plugin/issues/135.