Package com.atlassian.bamboo.plan.branch
Class BranchIntegrationPointImpl
java.lang.Object
com.atlassian.bamboo.plan.branch.BranchIntegrationPointImpl
- All Implemented Interfaces:
BranchIntegrationPoint
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BranchIntegrationPoint
changeDetectionIntegrationPointForChain
(@NotNull ImmutableChain chain) Finds the best possible branch integration point for change detection, according to chain branch configuration.static @NotNull BranchIntegrationPointImpl
forOldIntegrationPointWithNewPlanKey
(BranchIntegrationPoint integrationPoint, @Nullable PlanKey planKey) Creates an integration point for a given old integration point with overwritten plan key.static @NotNull BranchIntegrationPointImpl
forPlanBranch
(@NotNull PlanKey branchKey) Creates an integration point for a given plan branch.static @NotNull BranchIntegrationPointImpl
forVcsReference
(@NotNull String vcsReference) Creates an integration point for the given VCS reference.@Nullable PlanKey
@Nullable String
VCS reference used for merging.
-
Method Details
-
forOldIntegrationPointWithNewPlanKey
@NotNull public static @NotNull BranchIntegrationPointImpl forOldIntegrationPointWithNewPlanKey(BranchIntegrationPoint integrationPoint, @Nullable @Nullable PlanKey planKey) Creates an integration point for a given old integration point with overwritten plan key.- Since:
- 9.6
-
forPlanBranch
@NotNull public static @NotNull BranchIntegrationPointImpl forPlanBranch(@NotNull @NotNull PlanKey branchKey) Creates an integration point for a given plan branch.- Parameters:
branchKey
- key of the plan branch- Returns:
- new instances of branch integration point
- See Also:
-
forVcsReference
@NotNull public static @NotNull BranchIntegrationPointImpl forVcsReference(@NotNull @NotNull String vcsReference) Creates an integration point for the given VCS reference.- Parameters:
vcsReference
- VCS reference- Returns:
- new instances of branch integration point
- See Also:
-
getIntegrationPlanBranchKey
- Specified by:
getIntegrationPlanBranchKey
in interfaceBranchIntegrationPoint
-
getIntegrationVcsReference
Description copied from interface:BranchIntegrationPoint
VCS reference used for merging.- Specified by:
getIntegrationVcsReference
in interfaceBranchIntegrationPoint
- Returns:
- branch name in format /refs/heads/BRANCH_NAME
-
changeDetectionIntegrationPointForChain
@Nullable public static @Nullable BranchIntegrationPoint changeDetectionIntegrationPointForChain(@NotNull @NotNull ImmutableChain chain) Finds the best possible branch integration point for change detection, according to chain branch configuration. Returns null if chain is not a chain branch.- Parameters:
chain
-
-