Class NewRelicDeploymentNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- org.jenkinsci.plugins.newrelicnotifier.NewRelicDeploymentNotifier
-
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,SimpleBuildStep
public class NewRelicDeploymentNotifier extends Notifier implements SimpleBuildStep
Notifies a New Relic instance about deployment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNewRelicDeploymentNotifier.DescriptorImpl-
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
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description NewRelicDeploymentNotifier(List<DeploymentNotificationBean> notifications)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewRelicClientgetClient()NewRelicDeploymentNotifier.DescriptorImplgetDescriptor()List<DeploymentNotificationBean>getNotifications()BuildStepMonitorgetRequiredMonitorService()booleanperform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)voidperform(Run<?,?> run, FilePath filePath, Launcher launcher, TaskListener taskListener)-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, 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
getProjectAction, getProjectActions, prebuild
-
-
-
-
Constructor Detail
-
NewRelicDeploymentNotifier
@DataBoundConstructor public NewRelicDeploymentNotifier(List<DeploymentNotificationBean> notifications)
-
-
Method Detail
-
getNotifications
public List<DeploymentNotificationBean> getNotifications()
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
getClient
public NewRelicClient getClient()
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
getDescriptor
public NewRelicDeploymentNotifier.DescriptorImpl getDescriptor()
- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classNotifier
-
perform
public void perform(@Nonnull Run<?,?> run, @Nonnull FilePath filePath, @Nonnull Launcher launcher, @Nonnull TaskListener taskListener) throws InterruptedException, IOException
- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
-