@Extension(ordinal=10000.0) public class GitReferenceRecorder extends io.jenkins.plugins.forensics.reference.ReferenceRecorder
| Modifier and Type | Class and Description |
|---|---|
static class |
GitReferenceRecorder.Descriptor
Descriptor for this step: defines the symbol for the pipeline.
|
io.jenkins.plugins.forensics.reference.SimpleReferenceRecorder.SimpleReferenceRecorderDescriptorPublisher.DescriptorExtensionListImplSimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactoryBuildStep.PublisherListExtensionPoint.LegacyInstancesAreScopedToHudsonNO_REFERENCE_JOBBUILDERS, PUBLISHERS| Constructor and Description |
|---|
GitReferenceRecorder()
Creates a new instance of
GitReferenceRecorder. |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<Run<?,?>> |
find(Run<?,?> owner,
Run<?,?> lastCompletedBuildOfReferenceJob) |
GitReferenceRecorder.Descriptor |
getDescriptor() |
int |
getMaxCommits() |
boolean |
isSkipUnknownCommits() |
void |
setMaxCommits(int maxCommits)
Sets the maximal number of commits that will be compared with the builds of the reference job to find the
matching reference build.
|
void |
setSkipUnknownCommits(boolean skipUnknownCommits)
If enabled, then a build of the reference job will be skipped if one of the commits is unknown in the current
branch.
|
findReferenceBuild, getDefaultBranch, isLatestBuildIfNotFound, setDefaultBranch, setLatestBuildIfNotFoundcreateEmptyReferenceBuild, findJob, getReferenceJob, getRequiredMonitorService, perform, resolveReferenceJob, setReferenceJoball, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, perform, prebuildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProjectAction, getProjectActions, perform, prebuild@DataBoundConstructor public GitReferenceRecorder()
GitReferenceRecorder.@DataBoundSetter public void setMaxCommits(int maxCommits)
maxCommits - maximal number of commitspublic int getMaxCommits()
@DataBoundSetter public void setSkipUnknownCommits(boolean skipUnknownCommits)
skipUnknownCommits - if true then builds with unknown commits will be skipped, otherwise unknown commits will be
ignoredpublic boolean isSkipUnknownCommits()
protected Optional<Run<?,?>> find(Run<?,?> owner, Run<?,?> lastCompletedBuildOfReferenceJob)
find in class io.jenkins.plugins.forensics.reference.ReferenceRecorderpublic GitReferenceRecorder.Descriptor getDescriptor()
getDescriptor in interface Describable<Publisher>getDescriptor in class io.jenkins.plugins.forensics.reference.SimpleReferenceRecorderCopyright © 2016–2020. All rights reserved.