Package com.atlassian.bamboo.v2.build
Class BuildRepositoryChangesImpl
java.lang.Object
com.atlassian.bamboo.v2.build.BuildRepositoryChangesImpl
- All Implemented Interfaces:
BuildRepositoryChanges,Serializable,Comparable<BuildRepositoryChanges>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.since 5.14 avoid using constructor that produces incomplete dataBuildRepositoryChangesImpl(long repositoryId) Deprecated.since 5.14 avoid using constructor that produces incomplete dataBuildRepositoryChangesImpl(long repositoryId, @Nullable String vcsRevisionKey, @Nullable List<? extends CommitContext> changes) Deprecated.since 5.14 avoid using constructor that produces incomplete dataBuildRepositoryChangesImpl(long repositoryId, @Nullable String vcsRevisionKey, @Nullable List<? extends CommitContext> changes, @Nullable VcsBranch actualBranch) BuildRepositoryChangesImpl(@NotNull BuildRepositoryChanges other) BuildRepositoryChangesImpl(@NotNull String vcsRevisionKey) Deprecated.since 5.14 avoid using constructor that produces incomplete dataBuildRepositoryChangesImpl(@NotNull String vcsRevisionKey, @NotNull List<? extends CommitContext> changes) Deprecated.since 5.14 avoid using constructor that produces incomplete data -
Method Summary
Modifier and TypeMethodDescriptionintboolean@Nullable VcsBranch@NotNull List<CommitContext>Repository specific data related to this changeset, e.g.@Nullable StringReturns aRepositorydependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from theRepositoryas to be internally consistentlongintThe 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)@Nullable StringReturns aRepositorydependent "id" for this checkout.inthashCode()booleanIndicates if this changeset is reason to start a build.voidsetActualBranch(@Nullable VcsBranch actualBranch) voidsetBuildTrigger(boolean buildTrigger) final voidsetChanges(@NotNull List<? extends CommitContext> changes) voidsetCustomXmlData(@Nullable String customXmlData) voidsetPreviousVcsRevisionKey(@Nullable String previousVcsRevisionKey) voidsetRepositoryId(long repositoryId) voidsetSkippedCommitsCount(int skippedCommitsCount) voidsetVcsRevisionKey(@NotNull String vcsRevisionKey) toString()
-
Constructor Details
-
BuildRepositoryChangesImpl
-
BuildRepositoryChangesImpl
Deprecated.since 5.14 avoid using constructor that produces incomplete data -
BuildRepositoryChangesImpl
Deprecated.since 5.14 avoid using constructor that produces incomplete data -
BuildRepositoryChangesImpl
Deprecated.since 5.14 avoid using constructor that produces incomplete data -
BuildRepositoryChangesImpl
@Deprecated public BuildRepositoryChangesImpl(@NotNull @NotNull String vcsRevisionKey, @NotNull @NotNull List<? extends CommitContext> changes) Deprecated.since 5.14 avoid using constructor that produces incomplete data -
BuildRepositoryChangesImpl
@Deprecated public BuildRepositoryChangesImpl(long repositoryId, @Nullable @Nullable String vcsRevisionKey, @Nullable @Nullable List<? extends CommitContext> changes) Deprecated.since 5.14 avoid using constructor that produces incomplete data -
BuildRepositoryChangesImpl
public BuildRepositoryChangesImpl(long repositoryId, @Nullable @Nullable String vcsRevisionKey, @Nullable @Nullable List<? extends CommitContext> changes, @Nullable @Nullable VcsBranch actualBranch)
-
-
Method Details
-
getRepositoryId
public long getRepositoryId()- Specified by:
getRepositoryIdin interfaceBuildRepositoryChanges
-
setRepositoryId
public void setRepositoryId(long repositoryId) - Specified by:
setRepositoryIdin interfaceBuildRepositoryChanges
-
getVcsRevisionKey
Description copied from interface:BuildRepositoryChangesReturns aRepositorydependent "id" for this checkout. e.g. revision number for SVN etc. This is value is taken from theRepositoryas to be internally consistent- Specified by:
getVcsRevisionKeyin interfaceBuildRepositoryChanges- Returns:
- Revision "id"
-
setVcsRevisionKey
- Specified by:
setVcsRevisionKeyin interfaceBuildRepositoryChanges
-
getPreviousVcsRevisionKey
Description copied from interface:BuildRepositoryChangesReturns aRepositorydependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from theRepositoryas to be internally consistent- Specified by:
getPreviousVcsRevisionKeyin interfaceBuildRepositoryChanges- Returns:
-
setPreviousVcsRevisionKey
- Specified by:
setPreviousVcsRevisionKeyin interfaceBuildRepositoryChanges
-
getChanges
Description copied from interface:BuildRepositoryChangesListofCommitobjects that triggered off this particular build. Returns empty collection if no changes returned.- Specified by:
getChangesin interfaceBuildRepositoryChanges- Returns:
ListofCommits. May be empty
-
setChanges
- Specified by:
setChangesin interfaceBuildRepositoryChanges
-
getSkippedCommitsCount
public int getSkippedCommitsCount()Description copied from interface:BuildRepositoryChangesThe 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)- Specified by:
getSkippedCommitsCountin interfaceBuildRepositoryChanges- Returns:
- number of skipped commits
-
setSkippedCommitsCount
public void setSkippedCommitsCount(int skippedCommitsCount) - Specified by:
setSkippedCommitsCountin interfaceBuildRepositoryChanges
-
getCustomXmlData
Description copied from interface:BuildRepositoryChangesRepository specific data related to this changeset, e.g. information on SVN externals. Only available server-side.- Specified by:
getCustomXmlDatain interfaceBuildRepositoryChanges- Returns:
-
setCustomXmlData
- Specified by:
setCustomXmlDatain interfaceBuildRepositoryChanges
-
isBuildTrigger
public boolean isBuildTrigger()Description copied from interface:BuildRepositoryChangesIndicates if this changeset is reason to start a build.- Specified by:
isBuildTriggerin interfaceBuildRepositoryChanges- Returns:
- true iff repository is on the triggering repository list of event triggering change detection produciong this object
-
setBuildTrigger
public void setBuildTrigger(boolean buildTrigger) - Specified by:
setBuildTriggerin interfaceBuildRepositoryChanges
-
getActualBranch
- Specified by:
getActualBranchin interfaceBuildRepositoryChanges
-
setActualBranch
- Specified by:
setActualBranchin interfaceBuildRepositoryChanges
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<BuildRepositoryChanges>
-
toString
-