Package jetbrains.buildServer.agent
Interface AgentTempDirectories
-
- All Known Implementing Classes:
AgentTempDirectoriesImpl
public interface AgentTempDirectoriesAgent temp factory. Generated temp files may be cleaned up before new build is started. Files are generated underAgentBuildSettings.getAgentTempDirectory()folder.- Since:
- 4.0.1
- Author:
- Eugene Petrenko
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FilecreateAgentTempDirectory(String prefix, String suffix)Create temp directory for build.FilecreateAgentTempFile(String prefix, String suffix)Create temp file for build.
-
-
-
Method Detail
-
createAgentTempFile
File createAgentTempFile(@NotNull String prefix, @NotNull String suffix) throws IOException
Create temp file for build. Files are generated underAgentBuildSettings.getAgentTempDirectory()folder.- Parameters:
prefix- filename prefixsuffix- filename suffix- Returns:
- path to new-ly created temp file
- Throws:
IOException- on error
-
createAgentTempDirectory
File createAgentTempDirectory(@NotNull String prefix, @NotNull String suffix) throws IOException
Create temp directory for build. Files are generated underAgentBuildSettings.getAgentTempDirectory()folder.- Parameters:
prefix- filename prefixsuffix- filename suffix- Returns:
- path to new-ly created temp directory
- Throws:
IOException- on error
-
-