Class ManagedFileUtil

java.lang.Object
org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFileUtil

public class ManagedFileUtil extends Object
  • Constructor Details

    • ManagedFileUtil

      public ManagedFileUtil()
  • Method Details

    • provisionConfigFiles

      @Deprecated public static Map<ManagedFile,FilePath> provisionConfigFiles(List<ManagedFile> managedFiles, Run<?,?> build, FilePath workspace, TaskListener listener, List<String> tempFiles) throws IOException, InterruptedException
      Deprecated.
      Use method that provides 'env' instead.
      provisions (publishes) the given files to the workspace.
      Parameters:
      managedFiles - the files to be provisioned
      build - the build
      workspace - target workspace
      listener - the listener
      tempFiles - temp files created by this method, these files should be deleted by the caller
      Returns:
      a map of all the files copied, mapped to the path of the remote location, never null.
      Throws:
      IOException
      InterruptedException
      AbortException - config file has not been found
    • provisionConfigFiles

      public static Map<ManagedFile,FilePath> provisionConfigFiles(List<ManagedFile> managedFiles, @Nullable EnvVars env, Run<?,?> build, FilePath workspace, TaskListener listener, List<String> tempFiles) throws IOException, InterruptedException
      provisions (publishes) the given files to the workspace.
      Parameters:
      managedFiles - the files to be provisioned
      env - enhanced environment to use in the variable substitution
      build - the build
      workspace - target workspace
      listener - the listener
      tempFiles - temp files created by this method, these files should be deleted by the caller
      Returns:
      a map of all the files copied, mapped to the path of the remote location, never null.
      Throws:
      IOException
      InterruptedException
      AbortException - config file has not been found