Package hudson.tasks

Class Recorder

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep
Direct Known Subclasses:
ArtifactArchiver, BuildTrigger, Fingerprinter

public abstract class Recorder extends Publisher implements ExtensionPoint
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:
  • Constructor Details

    • Recorder

      protected Recorder()
  • Method Details

    • getDescriptor

      public BuildStepDescriptor getDescriptor()
      Description copied from interface: Describable
      Gets the descriptor for this instance.

      Descriptor is a singleton for every concrete Describable implementation, so if a.getClass() == b.getClass() then by default a.getDescriptor() == b.getDescriptor() as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)

      Specified by:
      getDescriptor in interface Describable<Publisher>
      Overrides:
      getDescriptor in class Publisher