Package org.jenkinsci.plugins.snsnotify
Class AmazonSNSNotifier
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
public class AmazonSNSNotifier extends Notifier
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AmazonSNSNotifier.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
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
Constructors Constructor Description AmazonSNSNotifier(String projectTopicArn, String subjectTemplate, String messageTemplate)
-
Method Summary
Modifier and Type Method Description AmazonSNSNotifier.DescriptorImpl
getDescriptor()
String
getMessageTemplate()
static AmazonSNSNotifier
getNotifier(AbstractProject project)
String
getProjectTopicArn()
BuildStepMonitor
getRequiredMonitorService()
String
getSubjectTemplate()
void
onCompleted(AbstractBuild build, TaskListener listener)
void
onStarted(AbstractBuild build, TaskListener listener)
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
AmazonSNSNotifier
-
-
Method Details
-
getProjectTopicArn
-
getSubjectTemplate
-
getMessageTemplate
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classNotifier
-
getNotifier
-
onStarted
-
onCompleted
-
getRequiredMonitorService
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-