Class InitializeBuild
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.task.InitializeBuild
-
- All Implemented Interfaces:
BuildPhase
,InterruptibleBuildPhase
@Internal public class InitializeBuild extends Object implements BuildPhase, InterruptibleBuildPhase
A task that initializes the build to the latest version to be run
-
-
Field Summary
Fields Modifier and Type Field Description static String
GIT_CACHE_DIRECTORY_NAME
static String
REPOSITORY_DATA_DIR_NAME
-
Constructor Summary
Constructors Constructor Description InitializeBuild()
Cannot use constructor injection due to how we create this component in DefaultBuildAgent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull CommonContext
call(@NotNull CommonContext commonContext, @NotNull ReadOnlyCapabilitySet capabilitySet)
Execute the build task.void
setBuildDirectoryManager(BuildDirectoryManager buildDirectoryManager)
void
setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
void
setExecutionPhaseService(ExecutionPhaseService executionPhaseService)
void
setHomeDirectoryLayout(HomeDirectoryLayout homeDirectoryLayout)
void
setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
-
-
-
Field Detail
-
GIT_CACHE_DIRECTORY_NAME
public static final String GIT_CACHE_DIRECTORY_NAME
- See Also:
- Constant Field Values
-
REPOSITORY_DATA_DIR_NAME
public static final String REPOSITORY_DATA_DIR_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
call
@NotNull public @NotNull CommonContext call(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull ReadOnlyCapabilitySet capabilitySet) throws RepositoryException, RepositoryDefinitionException
Description copied from interface:BuildPhase
Execute the build task.
Implementations should regularly check if the calling
Thread
has been interrupted.- Specified by:
call
in interfaceBuildPhase
- Returns:
- Throws:
RepositoryException
RepositoryDefinitionException
-
setBuildDirectoryManager
public void setBuildDirectoryManager(BuildDirectoryManager buildDirectoryManager)
-
setBuildLoggerManager
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
-
setExecutionPhaseService
public void setExecutionPhaseService(ExecutionPhaseService executionPhaseService)
-
setVcsRepositoryManager
public void setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
-
setHomeDirectoryLayout
public void setHomeDirectoryLayout(HomeDirectoryLayout homeDirectoryLayout)
-
-