com.atlassian.bamboo.v2.trigger
Interface ChangeDetectionManager

All Known Implementing Classes:
DefaultChangeDetectionManager

public interface ChangeDetectionManager

Enscapsulates the detection of the changes given a repository. It provides a central point to place common change detection logic


Method Summary
 BuildChanges collectChangesBetween(Plan plan, RepositoryV2 repository, java.lang.String fromVcsRevisionKey, java.lang.String toVcsRevisionKey)
          Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred between the fromVcsRevisionKey to toVcsRevisionKey
 BuildChanges collectChangesSinceLastBuild(Plan plan, RepositoryV2 repository, java.lang.String lastVcsRevisionKey)
          Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred since the lastVcsRevisionKey to the current latest found on the repository
 BuildChanges collectChangesSinceLastBuild(Plan plan, RepositoryV2 repository, java.lang.String lastVcsRevisionKey, java.util.Map<java.lang.String,java.lang.String> customVariableValues)
          Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred since the lastVcsRevisionKey to the current latest found on the repository.
 

Method Detail

collectChangesSinceLastBuild

@NotNull
BuildChanges collectChangesSinceLastBuild(@NotNull
                                                  Plan plan,
                                                  @NotNull
                                                  RepositoryV2 repository,
                                                  @Nullable
                                                  java.lang.String lastVcsRevisionKey)
                                          throws RepositoryException
Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred since the lastVcsRevisionKey to the current latest found on the repository

Parameters:
plan -
repository -
lastVcsRevisionKey -
Returns:
Throws:
RepositoryException

collectChangesSinceLastBuild

@NotNull
BuildChanges collectChangesSinceLastBuild(@NotNull
                                                  Plan plan,
                                                  @NotNull
                                                  RepositoryV2 repository,
                                                  @Nullable
                                                  java.lang.String lastVcsRevisionKey,
                                                  @Nullable
                                                  java.util.Map<java.lang.String,java.lang.String> customVariableValues)
                                          throws RepositoryException
Given a RepositoryV2 finds the BuildChanges 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

Parameters:
plan -
repository -
lastVcsRevisionKey -
customVariableValues -
Returns:
Throws:
RepositoryException

collectChangesBetween

@NotNull
BuildChanges collectChangesBetween(@NotNull
                                           Plan plan,
                                           @NotNull
                                           RepositoryV2 repository,
                                           @Nullable
                                           java.lang.String fromVcsRevisionKey,
                                           @NotNull
                                           java.lang.String toVcsRevisionKey)
                                   throws RepositoryException
Given a RepositoryV2 finds the BuildChanges object that captures all changes that occurred between the fromVcsRevisionKey to toVcsRevisionKey

Parameters:
plan -
repository -
fromVcsRevisionKey -
toVcsRevisionKey -
Returns:
Throws:
RepositoryException


Copyright © 2011 Atlassian. All Rights Reserved.