Class Recorder
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep
- Direct Known Subclasses:
ArtifactArchiver,BuildTrigger,Fingerprinter
BuildSteps that run after the build is completed.
Recorder is a kind of Publisher that collects statistics from the build,
and can mark builds as unstable/failure. This marking ensures that builds are marked accordingly
before notifications are sent via Notifiers. Otherwise, if the build is marked failed
after some notifications are sent, inconsistency ensues.
To register a custom Publisher from a plugin,
put Extension on your descriptor.
- Since:
- 1.286
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the descriptor for this instance.Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getRequiredMonitorService
-
Constructor Details
-
Recorder
protected Recorder()
-
-
Method Details
-
getDescriptor
Description copied from interface:DescribableGets the descriptor for this instance.Descriptoris a singleton for every concreteDescribableimplementation, so ifa.getClass() == b.getClass()then by defaulta.getDescriptor() == b.getDescriptor()as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)By default looks for a nested class (conventionally named
DescriptorImpl) implementingDescriptorand marked withExtension.- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classPublisher
-