jenkinsci / publish-over-ssh-plugin

https://plugins.jenkins.io/publish-over-ssh/
117 stars 150 forks source link

Copy directory permissions #251

Open yantimirov-timur opened 2 years ago

yantimirov-timur commented 2 years ago

Jenkins and plugins versions report

Jenkins: 2.289.1 OS: Linux - 5.13.0-51-generic

bouncycastle-api:2.20 command-launcher:1.2 credentials:2.6.1 jaxb:2.3.0 jdk-tool:1.0 jsch:0.1.55.2 publish-over:0.22 publish-over-ssh:1.25-SNAPSHOT (private-bb57d76d-tyantimirov) script-security:1.75 ssh-credentials:1.18.1 sshd:3.0.3 structs:1.23 trilead-api:1.0.13

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

Uses chmod from com.jcraft.jsch.ChannelSftp.

Expected Results

Copying directories and their permissions

Actual Results

Copying directories

Anything else?

Extended plugin with copying files and their permissions, and it work's correctly (PR - https://github.com/REC-SPb-ETU/publish-over-ssh-plugin/commit/967c1a26f26c7224ba399e431f051cb727008f57), but it doesn't work with directories and their permissions. Solution used chmod from com.jcraft.jsch.ChannelSftp.