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 classMqttNotifier.DescriptorImplNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description StringgetBrokerUrl()StringgetCredentialsId()StringgetMessage()StringgetQos()BuildStepMonitorgetRequiredMonitorService()StringgetTopic()booleanisRetainMessage()booleanneedsToRunAfterFinalized()voidperform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)voidsetBrokerUrl(String brokerUrl)voidsetCredentialsId(String credentialsId)voidsetMessage(String message)voidsetQos(String qos)voidsetRetainMessage(boolean retainMessage)voidsetTopic(String topic)Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getRequiredMonitorServicein interfaceBuildStep
-
needsToRunAfterFinalized
public boolean needsToRunAfterFinalized()- Overrides:
needsToRunAfterFinalizedin classPublisher
-
perform
public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-