Class ManagedFileUtil
- java.lang.Object
-
- org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFileUtil
-
public class ManagedFileUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ManagedFileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Map<ManagedFile,FilePath>
provisionConfigFiles(List<ManagedFile> managedFiles, EnvVars env, Run<?,?> build, FilePath workspace, TaskListener listener, List<String> tempFiles)
provisions (publishes) the given files to the workspace.static Map<ManagedFile,FilePath>
provisionConfigFiles(List<ManagedFile> managedFiles, Run<?,?> build, FilePath workspace, TaskListener listener, List<String> tempFiles)
Deprecated.Use method that provides 'env' instead.
-
-
-
Method Detail
-
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 provisionedbuild
- the buildworkspace
- target workspacelistener
- the listenertempFiles
- 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 provisionedenv
- enhanced environment to use in the variable substitutionbuild
- the buildworkspace
- target workspacelistener
- the listenertempFiles
- 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
-
-