Permalink
Browse files

[JENKINS-9741] partial fix for preserving file permissions when copying

artifacts.  Use FilePath.copyToWithPermission to fix issue when "flatten"
option is chosen.
  • Loading branch information...
1 parent b9b1517 commit defe9664862dd9e41f8f7ca87b42209fa320d150 @alanharder alanharder committed Jul 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/copyartifact/FilePathCopyMethod.java
@@ -55,6 +55,6 @@ public int copyAll(FilePath srcDir, String filter, FilePath targetDir)
@Override
public void copyOne(FilePath source, FilePath target)
throws IOException, InterruptedException {
- source.copyTo(target);
+ source.copyToWithPermission(target);
}
}

0 comments on commit defe966

Please sign in to comment.