Class ManagedFileUtil
java.lang.Object
org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFileUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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, InterruptedExceptionDeprecated.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, InterruptedExceptionprovisions (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
-