Class ManagedFileUtil


  • public class ManagedFileUtil
    extends Object
    • Constructor Detail

      • ManagedFileUtil

        public ManagedFileUtil()
    • Method Detail

      • 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