Package jenkins.plugins.mqttnotification
Class MqttNotifier
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
jenkins.plugins.mqttnotification.MqttNotifier
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class MqttNotifier extends Notifier implements SimpleBuildStep
A simple build result notifier that publishes the result via MQTT.
- Author:
- Gareth Western
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MqttNotifier.DescriptorImpl
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
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
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description String
getBrokerUrl()
String
getCredentialsId()
String
getMessage()
String
getQos()
BuildStepMonitor
getRequiredMonitorService()
String
getTopic()
boolean
isRetainMessage()
boolean
needsToRunAfterFinalized()
void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
void
setBrokerUrl(String brokerUrl)
void
setCredentialsId(String credentialsId)
void
setMessage(String message)
void
setQos(String qos)
void
setRetainMessage(boolean retainMessage)
void
setTopic(String topic)
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, 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, perform, prebuild
-
Constructor Details
-
Method Details
-
getCredentialsId
-
setCredentialsId
-
getBrokerUrl
-
setBrokerUrl
-
getTopic
-
setTopic
-
getMessage
-
setMessage
-
getQos
-
setQos
-
isRetainMessage
public boolean isRetainMessage() -
setRetainMessage
@DataBoundSetter public void setRetainMessage(boolean retainMessage) -
getRequiredMonitorService
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
needsToRunAfterFinalized
public boolean needsToRunAfterFinalized()- Overrides:
needsToRunAfterFinalized
in classPublisher
-
perform
public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-