Rocket Chat Notification Plugin for Jenkins
Usage
You can use it in the Workflow/Pipeline DSL
node {
try {
...
} catch (e) {
rocketSend channel: 'abc', message: 'test'
throw e
}
}
If you omit channel you can shorten it as it would now use the global default channel:
node {
try {
...
} catch (e) {
rocketSend 'test'
throw e
}
}
The message looks then like this:
It also works with normal jobs:
Admin settings
You can define a default notification channel:


