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
-
Constructor Summary
ConstructorDescriptionCannot use constructor injection due to how we create this component in DefaultBuildAgent -
Method Summary
Modifier and TypeMethodDescription@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 Details
-
GIT_CACHE_DIRECTORY_NAME
- See Also:
-
REPOSITORY_DATA_DIR_NAME
- See Also:
-
-
Constructor Details
-
InitializeBuild
public InitializeBuild()Cannot use constructor injection due to how we create this component in DefaultBuildAgent
-
-
Method Details
-
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
-
setBuildLoggerManager
-
setExecutionPhaseService
-
setVcsRepositoryManager
-
setHomeDirectoryLayout
-