public class BranchIntegrationConfigurationImpl extends Object implements BranchIntegrationConfiguration
| Modifier and Type | Field and Description |
|---|---|
static String |
BRANCH_INTEGRATION_PREFIX |
static String |
BRANCHES_PREFIX |
static String |
INTEGRATION_BRANCH_UPDATER_MERGE_FROM_VCS_BRANCH |
| Constructor and Description |
|---|
BranchIntegrationConfigurationImpl() |
BranchIntegrationConfigurationImpl(boolean aDefaultConfiguration) |
BranchIntegrationConfigurationImpl(boolean enabled,
BranchIntegrationStrategy strategy,
BranchIntegrationPoint branchIntegrationPoint,
boolean pushEnabled,
boolean isDefaultConfiguration) |
BranchIntegrationConfigurationImpl(BranchIntegrationConfiguration other,
boolean isDefaultConfiguration) |
BranchIntegrationConfigurationImpl(BranchIntegrationConfiguration other,
boolean isDefaultConfiguration,
boolean pushEnabled) |
BranchIntegrationConfigurationImpl(BranchIntegrationStrategy strategy,
PlanKey integrationPlanKey,
boolean pushEnabled)
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
findBranchToMergeWith(@NotNull PlanKey featureBranch)
Returns the PlanKey or branch name of the relevant vcs branch we want to merge with.
|
@Nullable PlanKey |
getBranchToMergeWith(@NotNull PlanKey featureBranch)
Returns the PlanKey we want to merge with.
|
@Nullable PlanKey |
getIntegrationPlanBranchKey() |
@NotNull BranchIntegrationPoint |
getIntegrationPoint() |
@NotNull PlanKey |
getMergeResultDestinationBranch(@NotNull PlanKey planBranch)
Returns the PlanKey of the relevant VCS branch we want to perform the merge on.
|
BranchIntegrationStrategy |
getStrategy() |
static boolean |
hasConfiguration(BuildConfiguration buildConfiguration)
Tests if a
BuildConfiguration contains a BranchIntegrationConfiguration |
boolean |
isEnabled() |
boolean |
isPushEnabled()
Tells whether Bamboo should push back the merged commit back into upstream repository
if the build finishes successfully.
|
boolean |
isValid()
Is the object state valid after it has been initialised from properties.
|
void |
populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
Update the current object with data in the
HierarchicalConfiguration |
void |
setBranchIntegrationPoint(@NotNull BranchIntegrationPoint branchIntegrationPoint) |
@NotNull org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Generate a
HierarchicalConfiguration from the current state of the object |
void |
toConfiguration(org.apache.commons.configuration.HierarchicalConfiguration dstConfiguration) |
public static final String INTEGRATION_BRANCH_UPDATER_MERGE_FROM_VCS_BRANCH
public static final String BRANCH_INTEGRATION_PREFIX
public static final String BRANCHES_PREFIX
public BranchIntegrationConfigurationImpl()
public BranchIntegrationConfigurationImpl(boolean aDefaultConfiguration)
public BranchIntegrationConfigurationImpl(BranchIntegrationConfiguration other, boolean isDefaultConfiguration, boolean pushEnabled)
public BranchIntegrationConfigurationImpl(BranchIntegrationConfiguration other, boolean isDefaultConfiguration)
@Deprecated public BranchIntegrationConfigurationImpl(BranchIntegrationStrategy strategy, PlanKey integrationPlanKey, boolean pushEnabled)
public BranchIntegrationConfigurationImpl(boolean enabled,
BranchIntegrationStrategy strategy,
BranchIntegrationPoint branchIntegrationPoint,
boolean pushEnabled,
boolean isDefaultConfiguration)
public static boolean hasConfiguration(BuildConfiguration buildConfiguration)
BuildConfiguration contains a BranchIntegrationConfigurationbuildConfiguration - to testBranchIntegrationConfiguration@Nullable public @Nullable PlanKey getIntegrationPlanBranchKey()
getIntegrationPlanBranchKey in interface BranchIntegrationConfigurationpublic boolean isEnabled()
isEnabled in interface BranchIntegrationConfigurationpublic BranchIntegrationStrategy getStrategy()
getStrategy in interface BranchIntegrationConfigurationpublic boolean isPushEnabled()
BranchIntegrationConfigurationisPushEnabled in interface BranchIntegrationConfiguration@NotNull public @NotNull PlanKey getMergeResultDestinationBranch(@NotNull @NotNull PlanKey planBranch)
BranchIntegrationConfigurationgetMergeResultDestinationBranch in interface BranchIntegrationConfiguration@Nullable public @Nullable PlanKey getBranchToMergeWith(@NotNull @NotNull PlanKey featureBranch)
BranchIntegrationConfigurationgetBranchToMergeWith in interface BranchIntegrationConfiguration@NotNull public @NotNull String findBranchToMergeWith(@NotNull @NotNull PlanKey featureBranch)
BranchIntegrationConfigurationfindBranchToMergeWith in interface BranchIntegrationConfiguration@NotNull public @NotNull BranchIntegrationPoint getIntegrationPoint()
getIntegrationPoint in interface BranchIntegrationConfigurationpublic void setBranchIntegrationPoint(@NotNull
@NotNull BranchIntegrationPoint branchIntegrationPoint)
public void populateFromConfig(@NotNull
@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfigHierarchicalConfigurationpopulateFromConfig in interface ConvertibleFromConfig@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfigHierarchicalConfiguration from the current state of the objecttoConfiguration in interface ConvertibleFromConfigHierarchicalConfiguration. Never nullpublic void toConfiguration(org.apache.commons.configuration.HierarchicalConfiguration dstConfiguration)
toConfiguration in interface ConfigurationMergingCapablepublic boolean isValid()
OptionallyConvertibleFromConfigisValid in interface OptionallyConvertibleFromConfigCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.