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,
java.lang.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,
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,
java.lang.String customRevision)
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,
java.util.Set<java.lang.Long> triggeringRepositories)
Collect changes for a plan since the last build. |
void |
updateIntegrationRepositoryDetails(ImmutableChain chain,
BuildChanges buildChanges)
|
| 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.xwork2.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,
@Nullable
java.util.Set<java.lang.Long> triggeringRepositories)
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
triggeringRepositories - id of repositories that trigger the build
- 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,
@Nullable
java.lang.String customRevision)
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
customRevision - specify which revision we're going to build (run customised plan dialog)
- 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,
@Nullable
java.lang.String customRevision)
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
customRevision - - override target revision for default repository definition - used by 'run
customised build'
- 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
updateIntegrationRepositoryDetails
public void updateIntegrationRepositoryDetails(ImmutableChain chain,
BuildChanges buildChanges)
throws RepositoryException
- Specified by:
updateIntegrationRepositoryDetails in interface ChangeDetectionManager
- Throws:
RepositoryException
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.