com.atlassian.bamboo.v2.build
Interface BuildRepositoryChanges

All Superinterfaces:
java.lang.Comparable<BuildRepositoryChanges>, java.io.Serializable
All Known Implementing Classes:
BuildRepositoryChangesImpl

public interface BuildRepositoryChanges
extends java.lang.Comparable<BuildRepositoryChanges>, java.io.Serializable

Since:
3.3

Method Summary
 java.util.List<CommitContext> getChanges()
          List of Commit objects that triggered off this particular build.
 java.lang.String getCustomXmlData()
          Repository specific data related to this changeset, e.g.
 java.lang.String getPreviousVcsRevisionKey()
          Returns a Repository dependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from the Repository as to be internally consistent
 long getRepositoryId()
           
 int getSkippedCommitsCount()
          The number of commits that were included in this buildChanges, but their details were skipped (because there was too many commits to keep them all in this buildChanges)
 java.lang.String getVcsLastChangeRevisionKey()
          Returns a Repository dependent "id" for last change for repository subpath - currently implemented for Subversion ONLY This is value is taken from the Repository as to be internally consistent *
 java.lang.String getVcsRevisionKey()
          Returns a Repository dependent "id" for this checkout.
 boolean isBuildTrigger()
          Indicates if this changeset is reason to start a build.
 void setBuildTrigger(boolean buildTrigger)
           
 void setChanges(java.util.List<CommitContext> changes)
           
 void setCustomXmlData(java.lang.String customXmlData)
           
 void setPreviousVcsRevisionKey(java.lang.String previousVcsRevisionKey)
           
 void setRepositoryId(long repositoryId)
           
 void setSkippedCommitsCount(int skippedCommitsCount)
           
 void setVcsLastChangeRevisionKey(java.lang.String vcsRevisionKeyForSubpath)
           
 void setVcsRevisionKey(java.lang.String vcsRevisionKey)
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getRepositoryId

long getRepositoryId()

setRepositoryId

void setRepositoryId(long repositoryId)

getVcsRevisionKey

@Nullable
java.lang.String getVcsRevisionKey()
Returns a Repository dependent "id" for this checkout. e.g. date timestamp for CVS, revision number for SVN etc. This is value is taken from the Repository as to be internally consistent

Returns:
Revision "id"

setVcsRevisionKey

void setVcsRevisionKey(@NotNull
                       java.lang.String vcsRevisionKey)

getPreviousVcsRevisionKey

@Nullable
java.lang.String getPreviousVcsRevisionKey()
Returns a Repository dependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from the Repository as to be internally consistent

Returns:

setPreviousVcsRevisionKey

void setPreviousVcsRevisionKey(@Nullable
                               java.lang.String previousVcsRevisionKey)

getVcsLastChangeRevisionKey

@Nullable
java.lang.String getVcsLastChangeRevisionKey()
Returns a Repository dependent "id" for last change for repository subpath - currently implemented for Subversion ONLY This is value is taken from the Repository as to be internally consistent *

Returns:

setVcsLastChangeRevisionKey

void setVcsLastChangeRevisionKey(java.lang.String vcsRevisionKeyForSubpath)

getChanges

@NotNull
java.util.List<CommitContext> getChanges()
List of Commit objects that triggered off this particular build. Returns empty collection if no changes returned.

Returns:
List of Commits. May be empty

setChanges

void setChanges(@NotNull
                java.util.List<CommitContext> changes)

getSkippedCommitsCount

int getSkippedCommitsCount()
The number of commits that were included in this buildChanges, but their details were skipped (because there was too many commits to keep them all in this buildChanges)

Returns:
number of skipped commits

setSkippedCommitsCount

void setSkippedCommitsCount(int skippedCommitsCount)

getCustomXmlData

@Nullable
java.lang.String getCustomXmlData()
Repository specific data related to this changeset, e.g. information on SVN externals. Only available server-side.

Returns:

setCustomXmlData

void setCustomXmlData(@Nullable
                      java.lang.String customXmlData)

isBuildTrigger

boolean isBuildTrigger()
Indicates if this changeset is reason to start a build.

Returns:
true iff repository is on the triggering repository list of event triggering change detection produciong this object
Since:
4.3

setBuildTrigger

void setBuildTrigger(boolean buildTrigger)
Since:
4.3


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.