[JIRA] (JENKINS-57891) FileCopyOperation does not work from outside the workspace

2 views
Skip to first unread message

nb.seyguai@gmail.com (JIRA)

unread,
Jun 6, 2019, 12:40:02 PM6/6/19
to jenkinsc...@googlegroups.com
Nicolas Boussuge created an issue
 
Jenkins / Bug JENKINS-57891
FileCopyOperation does not work from outside the workspace
Issue Type: Bug Bug
Assignee: Suresh Kumar
Components: file-operations-plugin
Created: 2019-06-06 16:39
Priority: Minor Minor
Reporter: Nicolas Boussuge

FolderCopyOperation relies on hudson.FilePath#FilePath(hudson.FilePath, java.lang.String), with the first argument being the workspace and the second the user provided string.

This implementation handles properly relative / absolute paths.

 

FileCopyOperation relies on hudson.FilePath#list(java.lang.String, java.lang.String), with both arguments being provided by the user (includes & excludes).

This implementation treats the input as an Ant GLOB pattern, and does not support absolute paths.

 

Since it is possible to copy any directory from anywhere, it should be possible to copy files from outside the current workspace.

Maybe something like an optional parameter "sourceFileLocation".

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages