Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57891

FileCopyOperation does not work from outside the workspace

XMLWordPrintable

      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".

       

            pskumar448 Suresh Kumar
            seyguai Nicolas Boussuge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: