public class BuildRepositoryChangesImpl extends Object implements BuildRepositoryChanges
Constructor and Description |
---|
BuildRepositoryChangesImpl()
Deprecated.
since 5.14 avoid using constructor that produces incomplete data
|
BuildRepositoryChangesImpl(BuildRepositoryChanges other) |
BuildRepositoryChangesImpl(long repositoryId)
Deprecated.
since 5.14 avoid using constructor that produces incomplete data
|
BuildRepositoryChangesImpl(long repositoryId,
String vcsRevisionKey,
List<? extends CommitContext> changes)
Deprecated.
since 5.14 avoid using constructor that produces incomplete data
|
BuildRepositoryChangesImpl(long repositoryId,
String vcsRevisionKey,
List<? extends CommitContext> changes,
VcsBranch actualBranch) |
BuildRepositoryChangesImpl(String vcsRevisionKey)
Deprecated.
since 5.14 avoid using constructor that produces incomplete data
|
BuildRepositoryChangesImpl(String vcsRevisionKey,
List<? extends CommitContext> changes)
Deprecated.
since 5.14 avoid using constructor that produces incomplete data
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BuildRepositoryChanges o) |
boolean |
equals(Object o) |
VcsBranch |
getActualBranch() |
List<CommitContext> |
getChanges()
|
String |
getCustomXmlData()
Repository specific data related to this changeset, e.g.
|
VcsBranch |
getOverriddenVcsBranch() |
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)
|
String |
getVcsLastChangeRevisionKey() |
String |
getVcsRevisionKey()
Returns a
Repository dependent "id" for this checkout. |
int |
hashCode() |
boolean |
isBuildTrigger()
Indicates if this changeset is reason to start a build.
|
void |
setActualBranch(VcsBranch actualBranch) |
void |
setBuildTrigger(boolean buildTrigger) |
void |
setChanges(List<? extends CommitContext> changes) |
void |
setCustomXmlData(String customXmlData) |
void |
setOverriddenVcsBranch(VcsBranch overriddenVcsBranch) |
void |
setPreviousVcsRevisionKey(String previousVcsRevisionKey) |
void |
setRepositoryId(long repositoryId) |
void |
setSkippedCommitsCount(int skippedCommitsCount) |
void |
setVcsLastChangeRevisionKey(String vcsLastChangeRevisionKey) |
void |
setVcsRevisionKey(String vcsRevisionKey) |
String |
toString() |
public BuildRepositoryChangesImpl(@NotNull BuildRepositoryChanges other)
@Deprecated public BuildRepositoryChangesImpl()
@Deprecated public BuildRepositoryChangesImpl(long repositoryId)
@Deprecated public BuildRepositoryChangesImpl(@NotNull String vcsRevisionKey)
@Deprecated public BuildRepositoryChangesImpl(@NotNull String vcsRevisionKey, @NotNull List<? extends CommitContext> changes)
@Deprecated public BuildRepositoryChangesImpl(long repositoryId, @Nullable String vcsRevisionKey, @Nullable List<? extends CommitContext> changes)
public BuildRepositoryChangesImpl(long repositoryId, @Nullable String vcsRevisionKey, @Nullable List<? extends CommitContext> changes, @Nullable VcsBranch actualBranch)
public long getRepositoryId()
getRepositoryId
in interface BuildRepositoryChanges
public void setRepositoryId(long repositoryId)
setRepositoryId
in interface BuildRepositoryChanges
@Nullable public String getVcsRevisionKey()
BuildRepositoryChanges
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 consistentgetVcsRevisionKey
in interface BuildRepositoryChanges
public void setVcsRevisionKey(@NotNull String vcsRevisionKey)
setVcsRevisionKey
in interface BuildRepositoryChanges
@Nullable public String getPreviousVcsRevisionKey()
BuildRepositoryChanges
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 consistentgetPreviousVcsRevisionKey
in interface BuildRepositoryChanges
public void setPreviousVcsRevisionKey(@Nullable String previousVcsRevisionKey)
setPreviousVcsRevisionKey
in interface BuildRepositoryChanges
public String getVcsLastChangeRevisionKey()
getVcsLastChangeRevisionKey
in interface BuildRepositoryChanges
public void setVcsLastChangeRevisionKey(String vcsLastChangeRevisionKey)
setVcsLastChangeRevisionKey
in interface BuildRepositoryChanges
@NotNull public List<CommitContext> getChanges()
BuildRepositoryChanges
List
of Commit
objects that triggered off this particular build. Returns empty collection if no changes
returned.getChanges
in interface BuildRepositoryChanges
List
of Commit
s. May be emptypublic final void setChanges(@NotNull List<? extends CommitContext> changes)
setChanges
in interface BuildRepositoryChanges
public int getSkippedCommitsCount()
BuildRepositoryChanges
getSkippedCommitsCount
in interface BuildRepositoryChanges
public void setSkippedCommitsCount(int skippedCommitsCount)
setSkippedCommitsCount
in interface BuildRepositoryChanges
public String getCustomXmlData()
BuildRepositoryChanges
getCustomXmlData
in interface BuildRepositoryChanges
public void setCustomXmlData(@Nullable String customXmlData)
setCustomXmlData
in interface BuildRepositoryChanges
public boolean isBuildTrigger()
BuildRepositoryChanges
isBuildTrigger
in interface BuildRepositoryChanges
public void setBuildTrigger(boolean buildTrigger)
setBuildTrigger
in interface BuildRepositoryChanges
@Nullable public VcsBranch getOverriddenVcsBranch()
getOverriddenVcsBranch
in interface BuildRepositoryChanges
public void setOverriddenVcsBranch(@NotNull VcsBranch overriddenVcsBranch)
setOverriddenVcsBranch
in interface BuildRepositoryChanges
@Nullable public VcsBranch getActualBranch()
getActualBranch
in interface BuildRepositoryChanges
public void setActualBranch(@Nullable VcsBranch actualBranch)
setActualBranch
in interface BuildRepositoryChanges
public int compareTo(BuildRepositoryChanges o)
compareTo
in interface Comparable<BuildRepositoryChanges>
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.