public interface BranchDetectionService
Modifier and Type | Method and Description |
---|---|
PlanKey |
createChainBranch(ImmutableChain chain,
String branchName,
VcsBranch vcsBranch,
BuildConfiguration buildConfiguration,
PlanCreationService.EnablePlan enablePlan,
boolean enableExpiry)
Deprecated.
temporary workaround
|
void |
detectBranchesForRepository(long repositoryId,
boolean ignoreChainsConfig)
Immediately executes branch detection for a given repository and creates new plan branches for chains using this repository as default.
|
Optional<List<VcsBranch>> |
getOpenBranches(VariableSubstitutor variableSubstitutor,
VcsRepositoryData vcsRepositoryData,
VcsBranchDetector branchDetector,
ErrorCollection errorCollection,
Iterable<ImmutableChain> chains)
Returns a list of currently open branches for given repository.
|
boolean |
scheduleBranchDetectionForRepository(long repositoryId)
Schedules branch detection for given repository
|
boolean |
scheduleBranchListInitialisation(Chain chain)
Schedules initialisation of existing vcs branch list.
|
boolean scheduleBranchDetectionForRepository(long repositoryId)
void detectBranchesForRepository(long repositoryId, boolean ignoreChainsConfig)
repositoryId
- id of the repositoryignoreChainsConfig
- allows to force branch creation and cleanup for all related chains. If true branch detection
will be executed even if a chain is not configured to automatically manage branches.boolean scheduleBranchListInitialisation(@NotNull Chain chain)
chain
- chain which vcs branches list should be initializedIllegalStateException
- if plan doesn't have default repository@NotNull Optional<List<VcsBranch>> getOpenBranches(@NotNull VariableSubstitutor variableSubstitutor, @NotNull VcsRepositoryData vcsRepositoryData, @NotNull VcsBranchDetector branchDetector, @Nullable ErrorCollection errorCollection, @NotNull Iterable<ImmutableChain> chains)
variableSubstitutor
- variable substitutor to use for substituting repository configurationvcsRepositoryData
- the repositorybranchDetector
- executor responsible for branch detectionerrorCollection
- errors collection to add errors tochains
- list of chains against which errors will be recorded@Deprecated PlanKey createChainBranch(@NotNull ImmutableChain chain, @NotNull String branchName, @Nullable VcsBranch vcsBranch, @Nullable BuildConfiguration buildConfiguration, @NotNull PlanCreationService.EnablePlan enablePlan, boolean enableExpiry) throws PlanCreationDeniedException
PlanCreationDeniedException
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.