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 |
---|---|
String |
findBranchToMergeWith(PlanKey featureBranch)
Returns the PlanKey or branch name of the relevant vcs branch we want to merge with.
|
PlanKey |
getBranchToMergeWith(PlanKey featureBranch)
Returns the PlanKey we want to merge with.
|
PlanKey |
getIntegrationPlanBranchKey() |
BranchIntegrationPoint |
getIntegrationPoint() |
PlanKey |
getMergeResultDestinationBranch(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(org.apache.commons.configuration.HierarchicalConfiguration config)
Update the current object with data in the
HierarchicalConfiguration |
void |
setBranchIntegrationPoint(BranchIntegrationPoint branchIntegrationPoint) |
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 BranchIntegrationConfiguration
buildConfiguration
- to testBranchIntegrationConfiguration
@Nullable public PlanKey getIntegrationPlanBranchKey()
getIntegrationPlanBranchKey
in interface BranchIntegrationConfiguration
public boolean isEnabled()
isEnabled
in interface BranchIntegrationConfiguration
public BranchIntegrationStrategy getStrategy()
getStrategy
in interface BranchIntegrationConfiguration
public boolean isPushEnabled()
BranchIntegrationConfiguration
isPushEnabled
in interface BranchIntegrationConfiguration
@NotNull public PlanKey getMergeResultDestinationBranch(@NotNull PlanKey planBranch)
BranchIntegrationConfiguration
getMergeResultDestinationBranch
in interface BranchIntegrationConfiguration
@Nullable public PlanKey getBranchToMergeWith(@NotNull PlanKey featureBranch)
BranchIntegrationConfiguration
getBranchToMergeWith
in interface BranchIntegrationConfiguration
@NotNull public String findBranchToMergeWith(@NotNull PlanKey featureBranch)
BranchIntegrationConfiguration
findBranchToMergeWith
in interface BranchIntegrationConfiguration
@NotNull public BranchIntegrationPoint getIntegrationPoint()
getIntegrationPoint
in interface BranchIntegrationConfiguration
public void setBranchIntegrationPoint(@NotNull BranchIntegrationPoint branchIntegrationPoint)
public void populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfig
HierarchicalConfiguration
populateFromConfig
in interface ConvertibleFromConfig
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the objecttoConfiguration
in interface ConvertibleFromConfig
HierarchicalConfiguration
. Never nullpublic void toConfiguration(org.apache.commons.configuration.HierarchicalConfiguration dstConfiguration)
toConfiguration
in interface ConfigurationMergingCapable
public boolean isValid()
OptionallyConvertibleFromConfig
isValid
in interface OptionallyConvertibleFromConfig
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.