public class BuildChangesImpl extends Object implements BuildChanges
| Constructor and Description |
|---|
BuildChangesImpl() |
BuildChangesImpl(BuildChanges other) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRepositoryChanges(BuildRepositoryChanges repositoryChanges) |
boolean |
equals(Object o) |
BuildRepositoryChanges |
getBuildRepositoryChanges(long repositoryId) |
com.google.common.collect.ImmutableList<CommitContext> |
getChanges()
Get changes from all repositories
|
List<CommitContext> |
getChanges(long repositoryId)
|
PlanVcsRevisionData |
getIntegrationBranchRevisionData() |
String |
getIntegrationBranchVcsRevision()
The current revision of the integration branch, that one that was detected during detecting all other changes.
|
long |
getIntegrationRepositoryId() |
String |
getPreviousVcsRevisionKey(long repositoryId)
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 |
Iterable<BuildRepositoryChanges> |
getRepositoryChanges() |
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)
|
String |
getVcsLastChangeRevisionKey(long repositoryId) |
PlanVcsRevisionData |
getVcsRevisionData(long repositoryId)
Returns
PlanVcsRevisionData containing Repository dependent vcs revision data for this checkout. |
String |
getVcsRevisionKey(long repositoryId)
Returns a
Repository dependent "id" for this checkout. |
int |
hashCode() |
void |
setChanges(long repositoryId,
List<CommitContext> changes) |
void |
setIntegrationBranchRevisionData(PlanVcsRevisionData integrationBranchRevisionData) |
void |
setIntegrationRepositoryId(long integrationRepositoryId) |
void |
setPreviousVcsRevisionKey(long repositoryId,
String previousVcsRevisionKey) |
void |
setSkippedCommitsCount(long repositoryId,
int skippedCommitsCount) |
void |
setVcsLastChangeRevisionKey(long repositoryId,
String vcsLastChangeRevisionKey) |
void |
setVcsRevisionKey(long repositoryId,
String vcsRevisionKey) |
String |
toString() |
public BuildChangesImpl(@NotNull
BuildChanges other)
public BuildChangesImpl()
public void addRepositoryChanges(@NotNull
BuildRepositoryChanges repositoryChanges)
addRepositoryChanges in interface BuildChangespublic Iterable<BuildRepositoryChanges> getRepositoryChanges()
getRepositoryChanges in interface BuildChanges@Nullable public String getVcsRevisionKey(long repositoryId)
BuildChangesRepository 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 consistentgetVcsRevisionKey in interface BuildChangespublic void setVcsRevisionKey(long repositoryId,
@NotNull
String vcsRevisionKey)
setVcsRevisionKey in interface BuildChanges@NotNull public PlanVcsRevisionData getVcsRevisionData(long repositoryId)
BuildChangesPlanVcsRevisionData containing Repository dependent vcs revision data for this checkout.getVcsRevisionData in interface BuildChangespublic String getPreviousVcsRevisionKey(long repositoryId)
BuildChangesRepository 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 consistentgetPreviousVcsRevisionKey in interface BuildChangespublic void setPreviousVcsRevisionKey(long repositoryId,
@Nullable
String previousVcsRevisionKey)
setPreviousVcsRevisionKey in interface BuildChangespublic String getVcsLastChangeRevisionKey(long repositoryId)
getVcsLastChangeRevisionKey in interface BuildChangespublic void setVcsLastChangeRevisionKey(long repositoryId,
String vcsLastChangeRevisionKey)
setVcsLastChangeRevisionKey in interface BuildChanges@NotNull public List<CommitContext> getChanges(long repositoryId)
BuildChangesList of Commit objects that triggered off this particular build. Returns empty collection if no changes
returned.getChanges in interface BuildChangesList of Commits. May be empty@NotNull public com.google.common.collect.ImmutableList<CommitContext> getChanges()
BuildChangesgetChanges in interface BuildChangespublic void setChanges(long repositoryId,
@NotNull
List<CommitContext> changes)
setChanges in interface BuildChangespublic int getSkippedCommitsCount(long repositoryId)
BuildChangesgetSkippedCommitsCount in interface BuildChangespublic void setSkippedCommitsCount(long repositoryId,
int skippedCommitsCount)
setSkippedCommitsCount in interface BuildChangespublic String getIntegrationBranchVcsRevision()
BuildChangesgetIntegrationBranchVcsRevision in interface BuildChangespublic long getIntegrationRepositoryId()
getIntegrationRepositoryId in interface BuildChangespublic void setIntegrationRepositoryId(long integrationRepositoryId)
setIntegrationRepositoryId in interface BuildChanges@Nullable public PlanVcsRevisionData getIntegrationBranchRevisionData()
getIntegrationBranchRevisionData in interface BuildChangespublic void setIntegrationBranchRevisionData(@NotNull
PlanVcsRevisionData integrationBranchRevisionData)
setIntegrationBranchRevisionData in interface BuildChanges@NotNull public BuildRepositoryChanges getBuildRepositoryChanges(long repositoryId)
getBuildRepositoryChanges in interface BuildChangesrepositoryId - repository idBuildRepositoryChanges object for a specified repository id.Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.