Class ConfigFileManager
java.lang.Object
org.jenkinsci.lib.configprovider.model.ConfigFileManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilePathprovisionConfigFile(ConfigFile configFile, EnvVars env, Run<?, ?> build, FilePath workspace, TaskListener listener, List<String> tempFiles) Provisions (publishes) the given file to the workspace.
-
Constructor Details
-
ConfigFileManager
public ConfigFileManager()
-
-
Method Details
-
provisionConfigFile
public static FilePath provisionConfigFile(ConfigFile configFile, @Nullable EnvVars env, Run<?, ?> build, FilePath workspace, TaskListener listener, List<String> tempFiles) throws IOException, InterruptedExceptionProvisions (publishes) the given file to the workspace.- Parameters:
configFile- the file to be provisionedenv- enhanced environment to use in the variable substitutionbuild- a build being runworkspace- target workspacelistener- the listenertempFiles- temp files created by this method, these files should be deleted by the caller- Returns:
- remote location path of the provided file.
- Throws:
IOExceptionInterruptedExceptionAbortException- config file has not been found
-