Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The Yammer Plugin for Jenkins enables notifications to be sent to a Yammer group on the success or failure of a build.

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Rakelib
Octocat-spinner-32 plugin
Octocat-spinner-32 readme
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 rakefile
Octocat-spinner-32 readme.md
readme.md

Yammer Plugin for Jenkins

The Yammer Plugin for Jenkins enables notifications to be sent to a Yammer group on the success or failure of a build. Yammer Plugin on jenkins-ci.org.

This is an example of a successful build notification sent to the Build Notifications group:

Success notification in Yammer

Installation

Easy install

Install the plugin from the Jenkins Plugin Manager. It should be listed as Yammer Plugin under Build Notifiers.

Manual install

  1. Install the ruby-runtime plugin.
  2. Install the Token Macro Plugin. It may already be installed.
  3. Download the latest Yammer Plugin .hpi file from: http://maven.jenkins-ci.org/content/repositories/releases/org/jenkins-ci/ruby-plugins/yammer.
  4. Upload the .hpi file into Jenkins from Plugin Manager > Advanced.
  5. Restart Jenkins.

Obtaining an Access Token

See: Obtaining an Access Token

Enabling Yammer Notifications

In the job configuration, under Post-build Actions, select Yammer Notification:

Enable Yammer Notifications for a job

The Access Token defaults to an environment variable named YAMMER_ACCESS_TOKEN under the assumption that the same access token will likely be the same for many, if not all jobs. For example, you might create a Yammer user representing Jenkins that will act as the source of all Yammer notifications from Jenkins.

Global environment variables can be set from Jenkins at Manage Jenkins > Configure System > Global Properties:

OAuth environment variables

With the Access Token set, select whether to send success and/or failure notifications:

Enable success notifications

Both success and failure notifications require a message and a group name. Environment variables are also allowed.

Please ensure that the Yammer user associated with the OAuth token has been added to the specified groups, otherwise the post will result in a HTTP 403 Unauthorised error.

Config File

The same settings specified in the job configuration can be provided as a JSON file that can be generated during the build. By default, the file should be named yammer.json under the workspace root.

Example file:

{
    "success": {
        "message": "This success message was generated by the build.",
        "group": "Build Notifications"
    },
    "failure": {
        "message": "This failure message was generated by the build.",
        "group": "Build Notifications"
    }
}

The file path can be changed in the "Advanced" section of the job configuration.

Please note that the settings specified in the job configuration will be merged with the config file. Any duplicate settings will overidden by the config file.

Support

Raise an issue

Changelog

Version 1.1.0 (July 19, 2013)

  • Add config file so that settings can be generated during the build.

Version 1.0.0 (March 15, 2013)

  • Upgrade to OAuth 2.0 requiring only an access token.
  • Yammer group name replaces group ID.

Version 0.1.1 (March 15, 2013)

  • Add support for Jenkins version 1.505. Thanks Jörg Wendland.
  • Use better OAuth terminology (consumer instead of client). Thanks mikec-bullhorn.

Version 0.1.0 (June 24, 2012)

  • Initial release.
Something went wrong with that request. Please try again.