@Internal public class InitializeBuild extends Object implements BuildPhase, InterruptibleBuildPhase
Modifier and Type | Field and Description |
---|---|
static String |
GIT_CACHE_DIRECTORY_NAME |
static String |
REPOSITORY_DATA_DIR_NAME |
Constructor and Description |
---|
InitializeBuild()
Cannot use constructor injection due to how we create this component in DefaultBuildAgent
|
Modifier and Type | Method and Description |
---|---|
CommonContext |
call(CommonContext commonContext,
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) |
public static final String GIT_CACHE_DIRECTORY_NAME
public static final String REPOSITORY_DATA_DIR_NAME
public InitializeBuild()
@NotNull public CommonContext call(@NotNull CommonContext commonContext, @NotNull ReadOnlyCapabilitySet capabilitySet) throws RepositoryException, RepositoryDefinitionException
BuildPhase
Execute the build task.
Implementations should regularly check if the calling Thread
has been interrupted.
call
in interface BuildPhase
RepositoryException
RepositoryDefinitionException
public void setBuildDirectoryManager(BuildDirectoryManager buildDirectoryManager)
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setExecutionPhaseService(ExecutionPhaseService executionPhaseService)
public void setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
public void setHomeDirectoryLayout(HomeDirectoryLayout homeDirectoryLayout)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.