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 BranchIntegrationPointchangeDetectionIntegrationPointForChain(@NotNull ImmutableChain chain) Finds the best possible branch integration point for change detection, according to chain branch configuration.static @NotNull BranchIntegrationPointImplforOldIntegrationPointWithNewPlanKey(BranchIntegrationPoint integrationPoint, @Nullable PlanKey planKey) Creates an integration point for a given old integration point with overwritten plan key.static @NotNull BranchIntegrationPointImplforPlanBranch(@NotNull PlanKey branchKey) Creates an integration point for a given plan branch.static @NotNull BranchIntegrationPointImplforVcsReference(@NotNull String vcsReference) Creates an integration point for the given VCS reference.@Nullable PlanKey@Nullable StringVCS 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:
getIntegrationPlanBranchKeyin interfaceBranchIntegrationPoint
-
getIntegrationVcsReference
Description copied from interface:BranchIntegrationPointVCS reference used for merging.- Specified by:
getIntegrationVcsReferencein 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-
-