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.
jabberNotify
: Jabber Notification
try {
//main build here.
currentBuild.result = Result.SUCCESS.toString() //otherwise message will say "NOT_BUILT"
} catch(e) {
currentBuild.result = Result.FAILURE.toString()
throw e
} finally {
jabberNotify notificationStrategy: 'failure and fixed', notifyCulprits: true, notifySuspects: true, targets: '...'
}
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Started', targets: '...'
try {
//main build here
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Succeeded', targets: '...'
} catch (e) {
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Failed', targets: '...'
throw e
}
targets
String
buildToChatNotifier
(optional)
$class: 'BuildParametersBuildToChatNotifier'
$class: 'DefaultBuildToChatNotifier'
$class: 'ExtraMessageOnlyBuildToChatNotifier'
$class: 'PrintFailingTestsBuildToChatNotifier'
$class: 'SummaryOnlyBuildToChatNotifier'
extraMessage
(optional)
String
matrixNotifier
(optional)
ONLY_PARENT
, ONLY_CONFIGURATIONS
, ALL
notificationStrategy
(optional)
String
notifyCulprits
(optional)
boolean
notifyFixers
(optional)
boolean
notifySuspects
(optional)
boolean
notifyUpstreamCommitters
(optional)
boolean
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.