public class ArgusNotifier extends Notifier
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest)
is invoked
and a new ArgusNotifier
is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields
to remember the configuration.
When a build is performed, the perform(hudson.model.AbstractBuild<?, ?>, hudson.Launcher, hudson.model.BuildListener)
method will be invoked.
Modifier and Type | Class and Description |
---|---|
static class |
ArgusNotifier.DescriptorImpl
Descriptor for
ArgusNotifier . |
Publisher.DescriptorExtensionListImpl
ExtensionPoint.LegacyInstancesAreScopedToHudson
BuildStep.PublisherList
BUILDERS, PUBLISHERS
Constructor and Description |
---|
ArgusNotifier() |
Modifier and Type | Method and Description |
---|---|
ArgusNotifier.DescriptorImpl |
getDescriptor() |
BuildStepMonitor |
getRequiredMonitorService() |
boolean |
needsToRunAfterFinalized()
Return true to ensure that we run after the build has been finalized (as the method suggests).
|
boolean |
perform(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener) |
all, getProjectAction, prebuild
getProjectAction, getProjectActions, perform, prebuild
public boolean needsToRunAfterFinalized()
needsToRunAfterFinalized
in class Publisher
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
perform
in interface BuildStep
perform
in class BuildStepCompatibilityLayer
IOException
InterruptedException
public ArgusNotifier.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<Publisher>
getDescriptor
in class Notifier
public BuildStepMonitor getRequiredMonitorService()
Copyright © 2016–2019. All rights reserved.