public abstract class Notifier extends Publisher implements ExtensionPoint
BuildStep
s that run after the build is completed.
Notifier
is a kind of Publisher
that 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 other Recorder
s. To run even after the build is marked
as complete, override Publisher.needsToRunAfterFinalized()
to return true.
To register a custom Publisher
from a plugin,
put Extension
on your descriptor.
Recorder
Publisher.DescriptorExtensionListImpl
ExtensionPoint.LegacyInstancesAreScopedToHudson
BuildStep.PublisherList
BUILDERS, PUBLISHERS
Modifier | Constructor and Description |
---|---|
protected |
Notifier() |
Modifier and Type | Method and Description |
---|---|
BuildStepDescriptor |
getDescriptor()
Gets the descriptor for this instance.
|
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequiredMonitorService
public BuildStepDescriptor getDescriptor()
Describable
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.)
getDescriptor
in interface Describable<Publisher>
getDescriptor
in class Publisher
Copyright © 2018. All rights reserved.