Package hudson.tasks
Class Notifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep
public abstract class Notifier extends Publisher implements ExtensionPoint
BuildSteps that run after the build is completed.Notifieris a kind ofPublisherthat sends out the outcome of the builds to other systems and humans. This marking ensures that notifiers are run after the build result is set to its final value by otherRecorders. To run even after the build is marked as complete, overridePublisher.needsToRunAfterFinalized()to return true.To register a custom
Publisherfrom a plugin, putExtensionon your descriptor.- Since:
- 1.286
- Author:
- Kohsuke Kawaguchi
- See Also:
Recorder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildStepDescriptorgetDescriptor()Gets the descriptor for this instance.-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getRequiredMonitorService
-
-
-
-
Method Detail
-
getDescriptor
public BuildStepDescriptor 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.)- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classPublisher
-
-