@Internal
public interface LightweightBranchCreationService
BranchCreationFacade| Modifier and Type | Method and Description |
|---|---|
ChainBranchCreationResult |
createChainBranch(ImmutableChain chain,
PlanBranchWorkflow planBranchWorkflow,
String branchName,
String branchDescription,
PlanRepositoryDefinition defaultRepositoryDefinition,
VcsRepositoryModuleDescriptor moduleDescriptor,
VcsBranch newBranch,
BuildConfiguration buildConfiguration,
PlanCreationService.EnablePlan enablePlan,
boolean enableExpiry,
Consumer<PlanKey> branchPlanKeyConsumer,
boolean expectingDivergentBranch)
Creates a new lightweight plan branch for give chain.
|
Collection<ChainBranchCreationResult> |
createChainBranches(ImmutableChain chain,
PlanBranchWorkflow planBranchWorkflow,
Collection<VcsBranch> branches,
PlanRepositoryDefinition defaultRepositoryDefinition,
ErrorCollection errorCollection,
PlanCreationService.EnablePlan enablePlan,
boolean enableExpiry,
Consumer<PlanKey> branchPlanKeyConsumer,
boolean expectingDivergentBranch)
Creates a new lightweight plan branch or enables existing one for each vcs branch in given collection under given
chain.
|
ChainBranchCreationResult |
createOrEnableChainBranch(ImmutableChain chain,
PlanBranchWorkflow planBranchWorkflow,
String branchName,
Function<VcsBranchConfigurator,VcsBranch> vcsBranchProvider,
BuildConfiguration buildConfiguration,
PlanCreationService.EnablePlan enablePlan,
boolean enableExpiry,
Consumer<PlanKey> branchPlanKeyConsumer,
boolean expectingDivergentBranch)
Given a branch name and (optionally) vcs branch name, check if branch already exists.
|
ChainBranchCreationResult |
enableExistingChainBranch(ImmutableChain chain,
ImmutableChainBranch existingChainBranch,
VcsBranch vcsBranch,
PlanCreationService.EnablePlan enablePlan,
boolean expectingDivergentBranch)
Enables existing chain branch.
|
void |
validateCreateChainBranch(ImmutableChain chain,
PlanBranchWorkflow planBranchWorkflow,
String branchName,
String branchDescription,
PlanRepositoryDefinition defaultRepositoryDefinition,
VcsRepositoryModuleDescriptor moduleDescriptor,
VcsBranch newBranch,
boolean enableExpiry,
com.atlassian.struts.ValidationAware validationAware)
Validates configuration for creating chain branch
|
@NotNull ChainBranchCreationResult createOrEnableChainBranch(@NotNull ImmutableChain chain, @NotNull PlanBranchWorkflow planBranchWorkflow, @Nullable String branchName, @NotNull Function<VcsBranchConfigurator,VcsBranch> vcsBranchProvider, @Nullable BuildConfiguration buildConfiguration, @NotNull PlanCreationService.EnablePlan enablePlan, boolean enableExpiry, @NotNull Consumer<PlanKey> branchPlanKeyConsumer, boolean expectingDivergentBranch) throws PlanCreationDeniedException
chain - to create branch underplanBranchWorkflow - which workflow led to creation of branchbranchName - optional name for the plan branch. If null name of vcs branch will be used.vcsBranchProvider - provides VcsBranch to use when overriding repository definitionbuildConfiguration - optional default fragment of configuration to create the chain branch withenablePlan - defines whether newly created branches should be enabled or disabled after creationenableExpiry - defines whether created branch can be removed due to branch expiration detectionbranchPlanKeyConsumer - code should be executed before triggering events that new plan createdexpectingDivergentBranch - RSS will attempt updating this branch; post creation events should be deferredPlanCreationDeniedException@NotNull ChainBranchCreationResult enableExistingChainBranch(@NotNull ImmutableChain chain, @NotNull ImmutableChainBranch existingChainBranch, @NotNull VcsBranch vcsBranch, @NotNull PlanCreationService.EnablePlan enablePlan, boolean expectingDivergentBranch)
@NotNull Collection<ChainBranchCreationResult> createChainBranches(@NotNull ImmutableChain chain, @NotNull PlanBranchWorkflow planBranchWorkflow, @NotNull Collection<VcsBranch> branches, @NotNull PlanRepositoryDefinition defaultRepositoryDefinition, @Nullable ErrorCollection errorCollection, @NotNull PlanCreationService.EnablePlan enablePlan, boolean enableExpiry, @NotNull Consumer<PlanKey> branchPlanKeyConsumer, boolean expectingDivergentBranch)
chain - to create branches underplanBranchWorkflow - which workflow led to creation of these branchesbranches - collection ov vcs branches for which plan branches should be createddefaultRepositoryDefinition - default repository of the given chainerrorCollection - to add errors to, if you don't supply an error collection, they will just get
loggedenablePlan - defines whether newly created branches should be enabled or disabled after
creationenableExpiry - defines whether created branch can be removed due to branch expiration
detectionbranchPlanKeyConsumer - code should be executed before triggering events that new plan createdexpectingDivergentBranch - RSS will attempt updating this branch; post creation events should be deferred@NotNull ChainBranchCreationResult createChainBranch(@NotNull ImmutableChain chain, @NotNull PlanBranchWorkflow planBranchWorkflow, @NotNull String branchName, @Nullable String branchDescription, @Nullable PlanRepositoryDefinition defaultRepositoryDefinition, @Nullable VcsRepositoryModuleDescriptor moduleDescriptor, @Nullable VcsBranch newBranch, @NotNull BuildConfiguration buildConfiguration, PlanCreationService.EnablePlan enablePlan, boolean enableExpiry, @NotNull Consumer<PlanKey> branchPlanKeyConsumer, boolean expectingDivergentBranch) throws PlanCreationDeniedException
chain - to create branches underplanBranchWorkflow - which workflow led to creation of branchbranchName - optional plan branch namebranchDescription - optional plan branch descriptiondefaultRepositoryDefinition - optional default repository of the given chainmoduleDescriptor - module descriptor of the given defaultRepositoryDefinitionnewBranch - VCS branch to usebuildConfiguration - optional default fragment of configuration to create the chain branch withenablePlan - defines whether newly created branches should be enabled or disabled after
creationenableExpiry - defines whether created branch can be removed due to branch expiration
detectionbranchPlanKeyConsumer - code should be executed before triggering events that new plan createdexpectingDivergentBranch - RSS will attempt updating this branch; post creation events should be deferredPlanCreationDeniedExceptionvoid validateCreateChainBranch(@NotNull
ImmutableChain chain,
@NotNull
PlanBranchWorkflow planBranchWorkflow,
@NotNull
String branchName,
@Nullable
String branchDescription,
@Nullable
PlanRepositoryDefinition defaultRepositoryDefinition,
@Nullable
VcsRepositoryModuleDescriptor moduleDescriptor,
@Nullable
VcsBranch newBranch,
boolean enableExpiry,
@NotNull
com.atlassian.struts.ValidationAware validationAware)
chain - to create branches underplanBranchWorkflow - which workflow led to creation of branchbranchName - optional plan branch namebranchDescription - optional plan branch descriptiondefaultRepositoryDefinition - optional default repository of the given chainmoduleDescriptor - module descriptor of the given defaultRepositoryDefinitionnewBranch - VCS branch to useenableExpiry - defines whether created branch can be removed due to branch expiration *
detectionvalidationAware - to add errors toCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.