@PublicApi
public interface ChangeDetectionManager
Modifier and Type | Field and Description |
---|---|
static int |
MAX_OPERATION_RETRIES
Total number of retries to perform for repository operation failure
|
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 |
BuildRepositoryChanges |
collectChangesBetween(ImmutableChain chain,
RepositoryDefinition repositoryDefinition,
PlanVcsRevisionData fromVcsRevisionData,
PlanVcsRevisionData toVcsRevisionData)
Deprecated.
|
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. |
BuildRepositoryChanges |
collectChangesSinceLastBuild(ImmutableChain chain,
RepositoryDefinition repositoryDefinition,
PlanVcsRevisionData lastVcsRevisionData,
Map<String,String> customVariableValues,
String customRevision)
Deprecated.
|
BuildChanges |
collectChangesSinceLastBuildIfTriggered(ImmutableChain chain,
Map<String,String> customVariableValues,
Set<Long> triggeringRepositories)
Collect changes for a plan since the last build.
|
void |
updateIntegrationRepositoryDetails(ImmutableChain chain,
BuildChanges buildChanges) |
static final int MAX_OPERATION_RETRIES
@NotNull BuildChanges collectChangesSinceLastBuildIfTriggered(@NotNull ImmutableChain chain, @Nullable Map<String,String> customVariableValues, @Nullable Set<Long> triggeringRepositories) throws RepositoryException
chain
- customVariableValues
- triggeringRepositories
- id of repositories that trigger the buildRepositoryException
@NotNull BuildChanges collectAllChangesSinceLastBuild(@NotNull ImmutableChain chain, @Nullable Map<String,String> customVariableValues, @Nullable String customRevision) throws RepositoryException
chain
- customVariableValues
- customRevision
- specify which revision we're going to build (run customised plan dialog)RepositoryException
@Deprecated @NotNull BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull ImmutableChain chain, @NotNull RepositoryDefinition repositoryDefinition, @NotNull PlanVcsRevisionData lastVcsRevisionData, @Nullable Map<String,String> customVariableValues, @Nullable String customRevision) throws RepositoryException
collectChangesSinceLastBuild(ImmutableChain, PlanRepositoryDefinition, PlanVcsRevisionData, Map, String)
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 detectionchain
- repositoryDefinition
- lastVcsRevisionData
- customVariableValues
- customRevision
- - override target revision for default repository definition - used by 'run
customised build'RepositoryException
@NotNull BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull ImmutableChain chain, @NotNull PlanRepositoryDefinition repositoryDefinition, @NotNull PlanVcsRevisionData lastVcsRevisionData, @Nullable Map<String,String> customVariableValues, @Nullable String customRevision) throws RepositoryException
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 detectionchain
- repositoryDefinition
- lastVcsRevisionData
- customVariableValues
- customRevision
- - override target revision for default repository definition - used by 'run
customised build'RepositoryException
@NotNull @Deprecated BuildRepositoryChanges collectChangesBetween(@NotNull ImmutableChain chain, @NotNull RepositoryDefinition repositoryDefinition, @Nullable PlanVcsRevisionData fromVcsRevisionData, @NotNull PlanVcsRevisionData toVcsRevisionData) throws RepositoryException
collectChangesBetween(ImmutableChain, PlanRepositoryDefinition, PlanVcsRevisionData, PlanVcsRevisionData)
RepositoryV2
finds the BuildChanges
object that captures all changes that occurred
between the fromVcsRevisionKey to toVcsRevisionKeychain
- repositoryDefinition
- fromVcsRevisionData
- toVcsRevisionData
- RepositoryException
@NotNull BuildRepositoryChanges collectChangesBetween(@NotNull ImmutableChain chain, @NotNull PlanRepositoryDefinition repositoryDefinition, @Nullable PlanVcsRevisionData fromVcsRevisionData, @NotNull PlanVcsRevisionData toVcsRevisionData) throws RepositoryException
PlanRepositoryDefinition
finds the BuildChanges
object that captures all changes that occurred
between the fromVcsRevisionKey to toVcsRevisionKeychain
- repositoryDefinition
- fromVcsRevisionData
- toVcsRevisionData
- RepositoryException
void updateIntegrationRepositoryDetails(ImmutableChain chain, BuildChanges buildChanges) throws RepositoryException
RepositoryException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences