public class BuildRepositoryChangesImpl extends Object implements BuildRepositoryChanges
Constructor and Description |
---|
BuildRepositoryChangesImpl()
Deprecated.
since 5.14 avoid using constructor that produces incomplete data
|
BuildRepositoryChangesImpl(@NotNull BuildRepositoryChanges other) |
BuildRepositoryChangesImpl(long repositoryId)
Deprecated.
since 5.14 avoid using constructor that produces incomplete data
|
BuildRepositoryChangesImpl(long repositoryId,
@Nullable String vcsRevisionKey,
@Nullable List<? extends CommitContext> changes)
Deprecated.
since 5.14 avoid using constructor that produces incomplete data
|
BuildRepositoryChangesImpl(long repositoryId,
@Nullable String vcsRevisionKey,
@Nullable List<? extends CommitContext> changes,
@Nullable VcsBranch actualBranch) |
BuildRepositoryChangesImpl(@NotNull String vcsRevisionKey)
Deprecated.
since 5.14 avoid using constructor that produces incomplete data
|
BuildRepositoryChangesImpl(@NotNull String vcsRevisionKey,
@NotNull 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) |
@Nullable VcsBranch |
getActualBranch() |
@NotNull List<CommitContext> |
getChanges()
|
String |
getCustomXmlData()
Repository specific data related to this changeset, e.g.
|
@Nullable 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)
|
@Nullable 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(@Nullable VcsBranch actualBranch) |
void |
setBuildTrigger(boolean buildTrigger) |
void |
setChanges(@NotNull List<? extends CommitContext> changes) |
void |
setCustomXmlData(@Nullable String customXmlData) |
void |
setPreviousVcsRevisionKey(@Nullable String previousVcsRevisionKey) |
void |
setRepositoryId(long repositoryId) |
void |
setSkippedCommitsCount(int skippedCommitsCount) |
void |
setVcsRevisionKey(@NotNull String vcsRevisionKey) |
String |
toString() |
public BuildRepositoryChangesImpl(@NotNull @NotNull BuildRepositoryChanges other)
@Deprecated public BuildRepositoryChangesImpl()
@Deprecated public BuildRepositoryChangesImpl(long repositoryId)
@Deprecated public BuildRepositoryChangesImpl(@NotNull @NotNull String vcsRevisionKey)
@Deprecated public BuildRepositoryChangesImpl(@NotNull @NotNull String vcsRevisionKey, @NotNull @NotNull List<? extends CommitContext> changes)
@Deprecated public BuildRepositoryChangesImpl(long repositoryId, @Nullable @Nullable String vcsRevisionKey, @Nullable @Nullable List<? extends CommitContext> changes)
public BuildRepositoryChangesImpl(long repositoryId, @Nullable @Nullable String vcsRevisionKey, @Nullable @Nullable List<? extends CommitContext> changes, @Nullable @Nullable VcsBranch actualBranch)
public long getRepositoryId()
getRepositoryId
in interface BuildRepositoryChanges
public void setRepositoryId(long repositoryId)
setRepositoryId
in interface BuildRepositoryChanges
@Nullable public @Nullable String getVcsRevisionKey()
BuildRepositoryChanges
Repository
dependent "id" for this checkout. e.g. 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 @NotNull String vcsRevisionKey)
setVcsRevisionKey
in interface BuildRepositoryChanges
@Nullable public @Nullable 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 @Nullable String previousVcsRevisionKey)
setPreviousVcsRevisionKey
in interface BuildRepositoryChanges
@NotNull public @NotNull 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 @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 @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 @Nullable VcsBranch getActualBranch()
getActualBranch
in interface BuildRepositoryChanges
public void setActualBranch(@Nullable @Nullable VcsBranch actualBranch)
setActualBranch
in interface BuildRepositoryChanges
public int compareTo(BuildRepositoryChanges o)
compareTo
in interface Comparable<BuildRepositoryChanges>
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.