com.atlassian.bamboo.build.fileserver
Interface BuildDirectoryManager

All Known Implementing Classes:
DefaultBuildDirectoryManager, RemoteBuildDirectoryManager

public interface BuildDirectoryManager

Interface to retrieve various build locations


Method Summary
 java.lang.String getAgentPathPrefix(ExecutableBuildAgent buildAgent)
           
 java.io.File getApplicationHome()
          Returns application's/agent's home directory.
 java.io.File getBaseBuildWorkingDirectory()
           
 java.io.File getBuildWorkingDirectory(Key key)
          Returns the working directory for the plan.
 java.io.File getServerSideTaskWorkingDirectory(ResultKey resultKey)
          Returns the directory used by server-side tasks, e.g.
 java.io.File getWorkingDirectoryOfCurrentAgent()
           
 

Method Detail

getBuildWorkingDirectory

@NotNull
java.io.File getBuildWorkingDirectory(@NotNull
                                              Key key)
Returns the working directory for the plan.

Parameters:
key@return -

getWorkingDirectoryOfCurrentAgent

@Nullable
java.io.File getWorkingDirectoryOfCurrentAgent()

getApplicationHome

java.io.File getApplicationHome()
Returns application's/agent's home directory.

Returns:
Application's/agent's home directory

getBaseBuildWorkingDirectory

java.io.File getBaseBuildWorkingDirectory()

getAgentPathPrefix

java.lang.String getAgentPathPrefix(ExecutableBuildAgent buildAgent)

getServerSideTaskWorkingDirectory

@NotNull
java.io.File getServerSideTaskWorkingDirectory(@NotNull
                                                       ResultKey resultKey)
Returns the directory used by server-side tasks, e.g. pre/post build merge & commit

Parameters:
resultKey@return -
Throws:
java.lang.UnsupportedOperationException - if called on remote agent
Since:
4.0


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.