提交 f756ddae 编写于 作者: S StevenGBrown

[FIXED HUDSON-6889] FileParameterValue now creates the directory that the file...

[FIXED HUDSON-6889] FileParameterValue now creates the directory that the file parameter is copied into, since DiskFileItem does not.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32393 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a85f5639
......@@ -106,6 +106,7 @@ public class FileParameterValue extends ParameterValue {
if (!StringUtils.isEmpty(file.getName())) {
listener.getLogger().println("Copying file to "+location);
FilePath locationFilePath = build.getWorkspace().child(location);
locationFilePath.getParent().mkdirs();
locationFilePath.copyFrom(file);
file = null;
locationFilePath.copyTo(new FilePath(getLocationUnderBuild(build)));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册