Jenkins : RocketChat Plugin

Plugin Information

View RocketChat Notifier on the plugin site for more information.

Allows users to send build notifications via RocketChat

Issues

Report in JIRA:

com.atlassian.sal.api.net.ResponseException: Can not retrieve jira chart image

Limitations

  • works with all current RocketVersion, see the test matrix 
  • currently no support for API keys

Usage

rawMessage 

  • Message will not be preformated.
rocketSend channel: 'general', message: 'My message', rawMessage: true

message properties :

  • alias
  • emoji
  • avatar
  • attachments

Examples:

Emoji:

rocketSend channel: 'general', emoji: ':sob:', message: 'My message', rawMessage: true


Avatar:

rocketSend avatar: 'http://127.0.0.1:8080/jenkins/static/ff676c77/images/headshot.png', channel: 'general', message: 'My message', rawMessage: true

Attachments

  • title: mandatory
  • color
  • text
  • thumbUrl
  • messageLink
  • collapsed
  • authorName
  • authorIcon
  • authorLink
  • titleLink
  • titleLinkDownload
  • imageUrl
  • audioUrl
  • videoUrl
rocketSend 
	attachments: [[$class: 'MessageAttachment', text: 'Build Succes', title: 'my attachment']], 
	channel: 'general', message: 'My message', rawMessage: true

with many attachments:

rocketSend 
	attachments: [
		[$class: 'MessageAttachment', color: 'green', text: 'Build Succes'', title: 'my attachment'],
		[$class: 'MessageAttachment', color: 'red', text: 'Something failed', title: 'my other attachment'],
	], 
	channel: 'general', message: 'My message', rawMessage: true

Snippet generator:

Changelog

Version 1.4.3

hypery2k released this just now · 2 commits to develop since this release

Bug Fixes

  • Message sent: Improve error handling (ec36a79)


Version 1.4.2

hypery2k released this on 1 Feb · 2 commits to develop since this release

Bug Fixes

  • RocketChatClientCallBuilder: fix proxy access without credentials (JENKINS-55890) (4d27927)

Version 1.4.1

hypery2k released this on 26 Jan · 13 commits to develop since this release

Features

  • Authentication: Adding support for personal token login (4108174)

Version 1.3.3

hypery2k released this on 24 Jan · 24 commits to develop since this release

Bug Fixes

  • Error-Handling: Avoid possible NPE (c49d31e)

Version 1.3.2

hypery2k released this on 26 Dec 2018

Bug Fixes

  • pom.xml to reduce vulnerabilities (38fd3ab)
  • pom.xml to reduce vulnerabilities (5b6885c)
  • pom.xml to reduce vulnerabilities (e6ab323)

Version 1.3.1

hypery2k released this on 27 Oct 2018 · 43 commits to develop since this release

Bug Fixes

Version 1.3.0

hypery2k released this on 27 Oct 2018 · 60 commits to develop since this release

Bug Fixes

Features

  • Attachments: Adding attachment send to normal jobs (ca4b80a)

1.2.1 (May 6, 2018)

Bug Fixes

1.2.0 (Feb 15, 2018)

Bug Fixes

1.1.2 (Jan 25, 2018)

Bug Fixes

1.1.1 (Jan 10, 2018)

Bug Fixes


1.1.0 (Dec 30, 2017)
Features

  • Add support for posting to webhook Drop support for older rocket.chat versions (JENKINS-42099)

Bug Fixes

1.0.4 (Dec 11, 2017)

Bug Fixes

1.0.3 (Nov 24, 2017)

Bug Fixes

1.0.2 (Nov 23, 2017)

Bug Fixes

1.0.1 (Nov 16, 2017)

Bug Fixes

  • release-error: Resolve versioning error

1.0.0 (Nov 15, 2017)

Bug Fixes

  • duration-display: Fix for duration label error (28c8594)
  • error-handling: Improved error handling for special characters in fields (see #JENKINS-47858) (2a3a542)
  • NPE: Resolve null pointer in error log (94b7308), closes #JENKINS-47841

Features


  • coverage: Adding code coverage (dfe4b4e)

0.5.5 (Nov 14, 2017)

Bug Fixes

0.5.4 (Nov 10, 2017)

Bug Fixes

0.5.3 (Sep 13, 2017)

Bug Fixes

  • message-text: "Finished" messages don't mention FAIL/SUCCESS, always 0 ms (JENKINS-46583)

Features

  • drop-old-rocket-api: Drop support for older rocket.chat versions (40dad98)

0.5.2 (Jul 13, 2017)

Features

0.5.1 (Jun 2, 2017)

Bug Fixes

  • status-msg: Corrected status message (724c625) 

0.5.0 (Feb 10, 2017)

Bug Fixes

  • NPE: Corrected NPE error. (583b847)
  • status-msg: Corrected status message (724c625)

Features

  • add the posibility to send attachments. (c56748e)

0.4.5 (Jan 26, 2017)

  • Bugfixes
    • listener: fix build change listener (see JENKINS-39690)

0.4.4 (Dec 30, 2016)

  • Features
    • new-rocket-api: first basic implementation (see JENKINS-40595), support for Rocket 0.48+ API