/rocketchatnotifier-plugin

Rocket Chat Notification Plugin for Jenkins

Primary LanguageJavaApache License 2.0Apache-2.0

Rocket Chat Notification Plugin for Jenkins

Build Status Build Status Build Status codecov Known Vulnerabilities

The latest stable version is available at Plugins Center. Dev builds are available via the Experimental Plugins Update Center.

Feel free to donate

Click here to lend your support to: Open Source and make a donation at pledgie.com !

Or donate Bitcoins: bitcoin:3NKtxw1SRYgess5ev4Ri54GekoAgkR213D

Bitcoin

Also via greenaddress

Usage

Pipeline

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:

sampel message

It also works with normal jobs:

job config

Admin settings

You can define a default notification channel:

sampel message

Contribution

Bugs

If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to our JIRA. Even better you can submit a Pull Request with a fix.

First search if the issue is already described!

If not create a new issue:

  • Tell about your environment:
    • operating system and version
    • Jenkins version
    • Java version
    • RocketChat version
  • Describe your issue
    • describe your steps leading to the issue
    • attach error logs or screenshots
    • if possible provide test case or screenshots