public class ArgusNotifier
extends hudson.tasks.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. |
hudson.tasks.Publisher.DescriptorExtensionListImpl| Constructor and Description |
|---|
ArgusNotifier() |
| Modifier and Type | Method and Description |
|---|---|
ArgusNotifier.DescriptorImpl |
getDescriptor() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
boolean |
needsToRunAfterFinalized()
Return true to ensure that we run after the build has been finalized (as the method suggests).
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
public boolean needsToRunAfterFinalized()
needsToRunAfterFinalized in class hudson.tasks.Publisherpublic boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerIOExceptionInterruptedExceptionpublic ArgusNotifier.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Notifierpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Copyright © 2016–2018. All rights reserved.