com.atlassian.bamboo.v2.trigger
Class DefaultChangeDetectionManager
java.lang.Object
com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager
- All Implemented Interfaces:
- ChangeDetectionManager
public class DefaultChangeDetectionManager
- extends java.lang.Object
- implements ChangeDetectionManager
Method Summary |
BuildChanges |
collectAllChangesSinceLastBuild(ImmutableChain chain,
java.util.Map<java.lang.String,java.lang.String> customVariableValues)
Collect changes for a plan since the last build, regardless of whether the build triggering repositories have changes or not. |
BuildRepositoryChanges |
collectChangesBetween(ImmutableChain chain,
RepositoryDefinition repositoryDefinition,
PlanVcsRevisionData fromVcsRevisionData,
PlanVcsRevisionData toVcsRevisionData)
Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred
between the fromVcsRevisionKey to toVcsRevisionKey |
BuildRepositoryChanges |
collectChangesSinceLastBuild(ImmutableChain chain,
RepositoryDefinition repositoryDefinition,
PlanVcsRevisionData lastVcsRevisionData,
java.util.Map<java.lang.String,java.lang.String> customVariableValues)
Given a RepositoryDefinition 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,
java.util.Map<java.lang.String,java.lang.String> customVariableValues)
Collect changes for a plan since the last build. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultChangeDetectionManager
public DefaultChangeDetectionManager(BuildContextFactory buildContextFactory,
BuildLoggerManager buildLoggerManager,
com.opensymphony.xwork.TextProvider textProvider,
VariableDefinitionManager variableDefinitionManager,
CustomVariableContext customVariableContext,
PlanVcsRevisionHistoryService planVcsRevisionHistoryService,
BranchCommitInformationManager branchCommitInformationManager,
BranchIntegrationService branchIntegrationService)
collectChangesSinceLastBuildIfTriggered
@NotNull
public BuildChanges collectChangesSinceLastBuildIfTriggered(@NotNull
ImmutableChain chain,
@Nullable
java.util.Map<java.lang.String,java.lang.String> customVariableValues)
throws RepositoryException
- Description copied from interface:
ChangeDetectionManager
- Collect changes for a plan since the last build. Returns changes only if at least one of the build triggering repositories has changes.
- Specified by:
collectChangesSinceLastBuildIfTriggered
in interface ChangeDetectionManager
- Returns:
- aggregated changes from all repositories
- Throws:
RepositoryException
collectAllChangesSinceLastBuild
@NotNull
public BuildChanges collectAllChangesSinceLastBuild(@NotNull
ImmutableChain chain,
@Nullable
java.util.Map<java.lang.String,java.lang.String> customVariableValues)
throws RepositoryException
- Description copied from interface:
ChangeDetectionManager
- Collect changes for a plan since the last build, regardless of whether the build triggering repositories have changes or not.
- Specified by:
collectAllChangesSinceLastBuild
in interface ChangeDetectionManager
- Returns:
- aggregated changes from all repositories
- Throws:
RepositoryException
collectChangesSinceLastBuild
@NotNull
public BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull
ImmutableChain chain,
@NotNull
RepositoryDefinition repositoryDefinition,
@NotNull
PlanVcsRevisionData lastVcsRevisionData,
@Nullable
java.util.Map<java.lang.String,java.lang.String> customVariableValues)
throws RepositoryException
- Description copied from interface:
ChangeDetectionManager
- Given a
RepositoryDefinition
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
- Specified by:
collectChangesSinceLastBuild
in interface ChangeDetectionManager
- Returns:
-
- Throws:
RepositoryException
collectChangesBetween
@NotNull
public BuildRepositoryChanges collectChangesBetween(@NotNull
ImmutableChain chain,
@NotNull
RepositoryDefinition repositoryDefinition,
@Nullable
PlanVcsRevisionData fromVcsRevisionData,
@NotNull
PlanVcsRevisionData toVcsRevisionData)
throws RepositoryException
- Description copied from interface:
ChangeDetectionManager
- Given a
RepositoryV2
finds the BuildChanges
object that captures all changes that occurred
between the fromVcsRevisionKey to toVcsRevisionKey
- Specified by:
collectChangesBetween
in interface ChangeDetectionManager
- Returns:
-
- Throws:
RepositoryException
Copyright © 2012 Atlassian. All Rights Reserved.