public class DefaultChangeDetectionManager extends Object implements ChangeDetectionManager
MAX_OPERATION_RETRIES
Constructor and Description |
---|
DefaultChangeDetectionManager(BuildContextFactory buildContextFactory,
BuildLoggerManager buildLoggerManager,
com.opensymphony.xwork2.TextProvider textProvider,
VariableDefinitionManager variableDefinitionManager,
CustomVariableContext customVariableContext,
PlanVcsRevisionHistoryService planVcsRevisionHistoryService,
BranchCommitInformationManager branchCommitInformationManager,
BranchIntegrationService branchIntegrationService,
ChainBranchManager chainBranchManager,
RepositoryCachingFacade repositoryCachingFacade,
VcsRepositoryManager vcsRepositoryManager,
FeatureManager featureManager) |
Modifier and Type | Method and Description |
---|---|
BuildChanges |
collectAllChangesSinceLastBuild(ImmutableChain chain,
Map<String,String> customVariableValues,
String customRevision)
Collect changes for a plan since the last build, regardless of whether the build triggering repositories have
changes or not.
|
BuildRepositoryChanges |
collectChangesBetween(ImmutableChain chain,
PlanRepositoryDefinition repositoryDefinition,
PlanVcsRevisionData fromVcsRevisionData,
PlanVcsRevisionData toVcsRevisionData)
Given a
PlanRepositoryDefinition finds the BuildChanges object that captures all changes that occurred
between the fromVcsRevisionKey to toVcsRevisionKey
This method suppresses quiet period settings and returns changes immediately. |
BuildRepositoryChanges |
collectChangesSinceLastBuild(ImmutableChain chain,
PlanRepositoryDefinition repositoryDefinition,
PlanVcsRevisionData lastVcsRevisionData,
Map<String,String> customVariableValues,
String customRevision)
Given a
PlanRepositoryDefinition finds the BuildRepositoryChanges object that captures all changes
that occurred since the lastVcsRevisionKey to the current latest found on the repository. |
BuildChanges |
collectChangesSinceLastBuildIfTriggered(ImmutableChain chain,
Map<String,String> customVariableValues,
Set<Long> triggeringRepositories)
Collect changes for a plan since the last build.
|
protected BuildRepositoryChanges |
collectChangesSinceLastBuildInternal(ImmutableChain chain,
PlanRepositoryDefinition repositoryDefinition,
PlanVcsRevisionData lastVcsRevisionData,
Map<String,String> customVariableValues,
String customRevision,
boolean isBuildTrigger,
boolean suppressQuietPeriod) |
void |
updateIntegrationRepositoryDetails(ImmutableChain chain,
BuildChanges buildChanges) |
public DefaultChangeDetectionManager(BuildContextFactory buildContextFactory, BuildLoggerManager buildLoggerManager, com.opensymphony.xwork2.TextProvider textProvider, VariableDefinitionManager variableDefinitionManager, CustomVariableContext customVariableContext, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, BranchCommitInformationManager branchCommitInformationManager, BranchIntegrationService branchIntegrationService, ChainBranchManager chainBranchManager, RepositoryCachingFacade repositoryCachingFacade, VcsRepositoryManager vcsRepositoryManager, FeatureManager featureManager)
@NotNull public BuildChanges collectChangesSinceLastBuildIfTriggered(@NotNull ImmutableChain chain, @Nullable Map<String,String> customVariableValues, @Nullable Set<Long> triggeringRepositories) throws RepositoryException
ChangeDetectionManager
collectChangesSinceLastBuildIfTriggered
in interface ChangeDetectionManager
triggeringRepositories
- id of repositories that trigger the buildRepositoryException
@NotNull public BuildChanges collectAllChangesSinceLastBuild(@NotNull ImmutableChain chain, @Nullable Map<String,String> customVariableValues, @Nullable String customRevision) throws RepositoryException
ChangeDetectionManager
collectAllChangesSinceLastBuild
in interface ChangeDetectionManager
customRevision
- specify which revision we're going to build (run customised plan dialog)RepositoryException
@NotNull public BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull ImmutableChain chain, @NotNull PlanRepositoryDefinition repositoryDefinition, @NotNull PlanVcsRevisionData lastVcsRevisionData, @Nullable Map<String,String> customVariableValues, @Nullable String customRevision) throws RepositoryException
ChangeDetectionManager
PlanRepositoryDefinition
finds the BuildRepositoryChanges
object that captures all changes
that occurred since the lastVcsRevisionKey to the current latest found on the repository. Method provides
manually set variables collection for evaluation during change detection
This method suppresses quiet period settings and returns changes immediately.collectChangesSinceLastBuild
in interface ChangeDetectionManager
customRevision
- - override target revision for default repository definition - used by 'run
customised build'RepositoryException
@NotNull protected BuildRepositoryChanges collectChangesSinceLastBuildInternal(@NotNull ImmutableChain chain, @NotNull PlanRepositoryDefinition repositoryDefinition, @NotNull PlanVcsRevisionData lastVcsRevisionData, @Nullable Map<String,String> customVariableValues, @Nullable String customRevision, boolean isBuildTrigger, boolean suppressQuietPeriod) throws RepositoryException
RepositoryException
@NotNull public BuildRepositoryChanges collectChangesBetween(@NotNull ImmutableChain chain, @NotNull PlanRepositoryDefinition repositoryDefinition, @Nullable PlanVcsRevisionData fromVcsRevisionData, @NotNull PlanVcsRevisionData toVcsRevisionData) throws RepositoryException
ChangeDetectionManager
PlanRepositoryDefinition
finds the BuildChanges
object that captures all changes that occurred
between the fromVcsRevisionKey to toVcsRevisionKey
This method suppresses quiet period settings and returns changes immediately.collectChangesBetween
in interface ChangeDetectionManager
RepositoryException
public void updateIntegrationRepositoryDetails(ImmutableChain chain, BuildChanges buildChanges) throws RepositoryException
updateIntegrationRepositoryDetails
in interface ChangeDetectionManager
RepositoryException
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.