Package com.atlassian.bamboo.v2.build
Interface BuildChanges
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BuildChangesImpl
Class that encapsulates the repository changes for a particular build result
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRepositoryChanges(@NotNull BuildRepositoryChanges repositoryChanges) @NotNull BuildRepositoryChangesgetBuildRepositoryChanges(long repositoryId) @NotNull List<CommitContext> Get changes from all repositories@NotNull List<CommitContext> getChanges(long repositoryId) @Nullable PlanVcsRevisionDatalonggetPreviousVcsRevisionKey(long repositoryId) intgetSkippedCommitsCount(long repositoryId) 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)@NotNull PlanVcsRevisionDatagetVcsRevisionData(long repositoryId) @Nullable StringgetVcsRevisionKey(long repositoryId) voidsetChanges(long repositoryId, @NotNull List<CommitContext> changes) voidsetIntegrationBranchRevisionData(@NotNull PlanVcsRevisionData integrationBranchRevisionData) voidsetIntegrationRepositoryId(long integrationRepositoryId) voidsetPreviousVcsRevisionKey(long repositoryId, @Nullable String previousVcsRevisionKey) voidsetSkippedCommitsCount(long repositoryId, int skippedCommitsCount) voidsetVcsRevisionKey(long repositoryId, @NotNull String vcsRevisionKey)
-
Method Details
-
addRepositoryChanges
-
getRepositoryChanges
Iterable<BuildRepositoryChanges> getRepositoryChanges() -
getVcsRevisionKey
- Returns:
- Revision "id"
-
setVcsRevisionKey
-
getVcsRevisionData
-
getPreviousVcsRevisionKey
-
setPreviousVcsRevisionKey
void setPreviousVcsRevisionKey(long repositoryId, @Nullable @Nullable String previousVcsRevisionKey) -
getChanges
-
getChanges
Get changes from all repositories- Returns:
-
setChanges
-
getSkippedCommitsCount
int getSkippedCommitsCount(long repositoryId) 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(long repositoryId, int skippedCommitsCount) -
getIntegrationRepositoryId
long getIntegrationRepositoryId() -
setIntegrationRepositoryId
void setIntegrationRepositoryId(long integrationRepositoryId) -
getIntegrationBranchRevisionData
-
setIntegrationBranchRevisionData
void setIntegrationBranchRevisionData(@NotNull @NotNull PlanVcsRevisionData integrationBranchRevisionData) -
getBuildRepositoryChanges
- Parameters:
repositoryId- repository id- Returns:
- complete
BuildRepositoryChangesobject for a specified repository id. - Throws:
IllegalArgumentException- if the repository is not included in this changeset.
-