public class GitCommitsRecord extends Object implements RunAction2, Serializable
SCM repository a
unique GitCommitsRecord instance will be used.| Modifier and Type | Method and Description |
|---|---|
List<String> |
getCommits() |
String |
getDisplayName() |
List<String> |
getErrorMessages() |
String |
getIconFileName() |
List<String> |
getInfoMessages() |
String |
getLatestCommit() |
String |
getLatestCommitLink() |
Run<?,?> |
getOwner() |
Optional<Run<?,?>> |
getReferencePoint(GitCommitsRecord referenceCommits,
int maxCommits,
boolean skipUnknownCommits)
Tries to find a reference build using the specified
GitCommitsRecord of the reference job as a starting
point. |
String |
getScmKey() |
int |
getSize() |
String |
getUrlName() |
boolean |
isEmpty() |
boolean |
isFirstBuild() |
boolean |
isNotEmpty() |
void |
onAttached(Run<?,?> run) |
void |
onLoad(Run<?,?> run) |
int |
size()
Returns the number of new commits.
|
String |
toString() |
public Run<?,?> getOwner()
public boolean isFirstBuild()
public String getScmKey()
public String getLatestCommit()
public String getLatestCommitLink()
public int size()
public int getSize()
public boolean isNotEmpty()
public boolean isEmpty()
public void onAttached(Run<?,?> run)
onAttached in interface RunAction2public void onLoad(Run<?,?> run)
onLoad in interface RunAction2public String getIconFileName()
getIconFileName in interface Actionpublic String getDisplayName()
getDisplayName in interface ActiongetDisplayName in interface ModelObjectpublic String getUrlName()
getUrlName in interface Actionpublic Optional<Run<?,?>> getReferencePoint(GitCommitsRecord referenceCommits, int maxCommits, boolean skipUnknownCommits)
GitCommitsRecord of the reference job as a starting
point.referenceCommits - the recorded commits of the build of the reference job that should be used as a starting point for the
searchmaxCommits - maximal number of commits to look atskipUnknownCommits - determines whether a build with unknown commits should be skipped or notCopyright © 2016–2021. All rights reserved.