Package jetbrains.buildServer.agent
Interface AgentTempDirectories
-
- All Known Implementing Classes:
AgentTempDirectoriesImpl
public interface AgentTempDirectories
Agent 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 File
createAgentTempDirectory(String prefix, String suffix)
Create temp directory for build.File
createAgentTempFile(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
-
-