The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
mqttNotification: MQTT NotificationbrokerUrl : String (optional)
The URL for the MQTT broker. This should also include the protocol (e.g. "tcp://192.168.0.1:1883").
topic : String (optional)
The topic to which to publish the notification. If no value is specified then the default value ("jenkins/$JOB_URL" e.g. "jenkins/job/my-build") is used.
In addition to environment variables and build parameters, the following variables can also be used (all variables must be prefix with "$"):
message : String (optional)
The "payload" for the MQTT message.
In addition to environment variables and build parameters, the following variables can also be used (all variables must be encapsulated within "${}"):
qos : String (optional)
retainMessage : boolean (optional)
If the message is "retained" then the broker will keep a copy as the "last known" message and publish it to any new subscribers when they first connect.
credentialsId : String (optional)
notifyOnComplete : boolean (optional)
If checked, sends an MQTT notification when a build completes execution.
notifyOnStart : boolean (optional)
If checked, sends an MQTT notification when a build begins execution.
startMessage : String (optional)
Optional payload for the build start notification message. If left blank, "STARTED" will be sent.
Supports variable replacement (e.g. ${JOB_NAME}, ${BUILD_NUMBER}, ${BUILD_DISPLAY_NAME}).
startTopic : String (optional)
Optional MQTT topic to use specifically for build start notifications. If left blank, the standard Topic will be used.
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.