public class BranchIntegrationHelperImpl extends Object implements BranchIntegrationHelper, VcsBranchIntegrationHelper
Constructor and Description |
---|
BranchIntegrationHelperImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthorEmail(Repository repository)
Get email of author used for branch integration operations.
|
String |
getAuthorName(Repository repository)
Get name of author used for branch integration operations.
|
String |
getCommitterEmail() |
String |
getCommitterEmail(Repository repository)
Get email of committer used for branch integration operations.
|
String |
getCommitterName() |
String |
getCommitterName(Repository repository)
Get name of committer used for branch integration operations.
|
protected BranchMergingAwareRepository |
getDefaultRepository(BuildContext buildContext)
Get default repository narrowed to
BranchMergingAwareRepository |
String |
getIntegrationCommitMessage(Repository repository)
Get commit message used for branch integration operations.
|
BranchMergingAwareRepository |
getIntegrationRepository(BuildContext buildContext)
Get integration repository narrowed to
BranchMergingAwareRepository |
VcsBranch |
getIntegrationVcsBranch(BuildContext buildContext) |
PlanRepositoryDefinition |
getIntegrationVcsRepository(BuildContext buildContext) |
MergeResult |
merge(BuildContext buildContext,
File mergeDirectory,
BuildLogger logger)
Perform branch merging according to Integration Configuration
|
MergeResult |
merge(BuildContext buildContext,
VcsRepositoryData defaultRepositoryDefinition,
VcsRepositoryModuleDescriptor moduleDescriptor,
VcsBranch integrationBranch,
File mergeDir,
BuildLogger logger) |
protected String |
toBuildLogger(BuildLogger logger,
String msg) |
public BranchIntegrationHelperImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor)
@NotNull public String getAuthorName(@Nullable Repository repository)
BranchIntegrationHelper
getAuthorName
in interface BranchIntegrationHelper
@NotNull public String getCommitterName(@Nullable Repository repository)
BranchIntegrationHelper
getCommitterName
in interface BranchIntegrationHelper
@NotNull public String getAuthorEmail(@Nullable Repository repository)
BranchIntegrationHelper
getAuthorEmail
in interface BranchIntegrationHelper
@NotNull public String getCommitterEmail(@Nullable Repository repository)
BranchIntegrationHelper
getCommitterEmail
in interface BranchIntegrationHelper
public String getIntegrationCommitMessage(@Nullable Repository repository)
BranchIntegrationHelper
getIntegrationCommitMessage
in interface BranchIntegrationHelper
public String getCommitterName()
getCommitterName
in interface VcsBranchIntegrationHelper
public String getCommitterEmail()
getCommitterEmail
in interface VcsBranchIntegrationHelper
@NotNull public MergeResult merge(@NotNull BuildContext buildContext, @NotNull File mergeDirectory, @Nullable BuildLogger logger) throws RepositoryException
BranchIntegrationHelper
merge
in interface BranchIntegrationHelper
RepositoryException
@NotNull public BranchMergingAwareRepository getIntegrationRepository(@NotNull BuildContext buildContext)
BranchMergingAwareRepository
getIntegrationRepository
in interface BranchIntegrationHelper
protected BranchMergingAwareRepository getDefaultRepository(@NotNull BuildContext buildContext)
BranchMergingAwareRepository
@NotNull protected String toBuildLogger(@Nullable BuildLogger logger, @NotNull String msg)
@Nullable public PlanRepositoryDefinition getIntegrationVcsRepository(@NotNull BuildContext buildContext)
getIntegrationVcsRepository
in interface VcsBranchIntegrationHelper
@Nullable public VcsBranch getIntegrationVcsBranch(@NotNull BuildContext buildContext)
getIntegrationVcsBranch
in interface VcsBranchIntegrationHelper
@NotNull public MergeResult merge(@NotNull BuildContext buildContext, @NotNull VcsRepositoryData defaultRepositoryDefinition, @NotNull VcsRepositoryModuleDescriptor moduleDescriptor, @NotNull VcsBranch integrationBranch, @NotNull File mergeDir, @Nullable BuildLogger logger) throws RepositoryException
merge
in interface VcsBranchIntegrationHelper
RepositoryException
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.