Package com.atlassian.bamboo.plan.branch
Class BranchMetadataCheckServiceImpl
java.lang.Object
com.atlassian.bamboo.plan.branch.BranchMetadataCheckServiceImpl
- All Implemented Interfaces:
BranchMetadataCheckService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onPlansRepositoryChanged
(@NotNull PlansDefaultVcsRepositoryChanged event) boolean
verifyAndUpdateVcsBranch
(@NotNull ImmutableChainBranch immutableChainBranch) Verify metadata against current vcs configuration.
-
Constructor Details
-
BranchMetadataCheckServiceImpl
public BranchMetadataCheckServiceImpl()
-
-
Method Details
-
verifyAndUpdateVcsBranch
public boolean verifyAndUpdateVcsBranch(@NotNull @NotNull ImmutableChainBranch immutableChainBranch) Description copied from interface:BranchMetadataCheckService
Verify metadata against current vcs configuration. Updated the vcs configuration and/or metadata if the inconsistency can be resolved automatically.- Specified by:
verifyAndUpdateVcsBranch
in interfaceBranchMetadataCheckService
- Returns:
- true if branch is healthy, false if there is an unresolvable inconsistency.
-
onPlansRepositoryChanged
@EventListener public void onPlansRepositoryChanged(@NotNull @NotNull PlansDefaultVcsRepositoryChanged event)
-