public class RemoteBuildDirectoryManager extends Object implements BuildDirectoryManager
BuildDirectoryManager.ServerSideTaskType
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_WORKING_DIRECTORY_KEY |
static String |
DEFAULT_BUILD_WORKING_DIRECTORY |
Constructor and Description |
---|
RemoteBuildDirectoryManager() |
Modifier and Type | Method and Description |
---|---|
String |
getAgentPathPrefix(ExecutableBuildAgent buildAgent) |
File |
getApplicationHome()
Returns application's/agent's home directory.
|
File |
getBaseBuildWorkingDirectory() |
File |
getBuildWorkingDirectory(Key key)
Returns the working directory for the plan.
|
Path |
getServerSideTaskWorkingDirectory(BuildDirectoryManager.ServerSideTaskType taskType)
Returns the directory used by server-side tasks of specific type.
|
File |
getServerSideTaskWorkingDirectory(ResultKey resultKey)
Returns the directory used by server-side tasks, e.g.
|
File |
getWorkingDirectoryOfCurrentAgent() |
void |
setAgentConfiguration(AgentConfiguration agentConfiguration) |
public static final String BUILD_WORKING_DIRECTORY_KEY
public static final String DEFAULT_BUILD_WORKING_DIRECTORY
@Nullable public File getWorkingDirectoryOfCurrentAgent()
getWorkingDirectoryOfCurrentAgent
in interface BuildDirectoryManager
@Nullable public File getBaseBuildWorkingDirectory()
getBaseBuildWorkingDirectory
in interface BuildDirectoryManager
@NotNull public File getBuildWorkingDirectory(@NotNull Key key)
BuildDirectoryManager
getBuildWorkingDirectory
in interface BuildDirectoryManager
public File getApplicationHome()
BuildDirectoryManager
getApplicationHome
in interface BuildDirectoryManager
public String getAgentPathPrefix(ExecutableBuildAgent buildAgent)
getAgentPathPrefix
in interface BuildDirectoryManager
public void setAgentConfiguration(AgentConfiguration agentConfiguration)
@NotNull public File getServerSideTaskWorkingDirectory(@NotNull ResultKey resultKey)
BuildDirectoryManager
getServerSideTaskWorkingDirectory
in interface BuildDirectoryManager
@NotNull public Path getServerSideTaskWorkingDirectory(@NotNull BuildDirectoryManager.ServerSideTaskType taskType)
BuildDirectoryManager
getServerSideTaskWorkingDirectory
in interface BuildDirectoryManager
taskType
- @returnCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.