Skip to content

lltcggie/rocketchatnotifier-plugin

 
 

Repository files navigation

Rocket Chat Notification Plugin for Jenkins

Build Status Build Status Build Status

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

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:

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

Packages

No packages published

Languages

  • Java 98.5%
  • Other 1.5%