Giter Club home page Giter Club logo

hipchat-plugin's Introduction

HipChat plugin for Jenkins

A Jenkins plugin that can send notifications to HipChat chat rooms for build events.

Features

  • Supports both v1 and v2 API
  • Can send notifications for the following build events:
  • Build Start
  • Aborted
  • Failure
  • Not Built
  • Success
  • Unstable
  • Back To Normal
  • The room name can be parameterized
  • Supports different notification modes for matrix builds

Proxy settings

The plugin utilizes the proxy configuration in Jenkins when making external HTTPS connections.

Configuration

When using v1 API, an API token needs to be provided, otherwise an OAuth2 access token with send_notification scope shall be used.

Build-flow-plugin support

When the flow project does not have a workspace, the HipChat post build action will not send out messages, in that case it is recommended to modify the DSL script (as can be seen below) to send out the notification as part of the flow itself (see also #45)

The following DSL script can be used to send out notifications as part of the flow build:

def hipChatV1 = new jenkins.plugins.hipchat.impl.HipChatV1Service("api.hipchat.com", "v1_token", "room name list that can be separated by comma, or just a single room name", "sendAs");
hipChatV1.publish("This is a V1 notification", "green", /*notify?*/true);
def hipChatV2 = new jenkins.plugins.hipchat.impl.HipChatV2Service("api.hipchat.com", "v2_token", "room name list that can be separated by comma, or just a single room name");
hipChatV2.publish("This is a V2 notification", "green", /*notify?*/true);

Note, that the API may change between versions potentially causing build failures for such projects.

Workflow-plugin support

When using workflow projects, HipChat messages can be sent using the following script snippet:

hipchatSend color: 'YELLOW', failOnError: true, message: 'foo', notify: true, room: 'hello', sendAs: 'world', server: 'bar', token: 'baz', v2enabled: true

hipchat-plugin's People

Contributors

aldaris avatar darrinholst avatar iristyle avatar jessedearing avatar jglick avatar jlewallen avatar kellybyrd avatar kmadel avatar mfriedenhagen-ui avatar ndeloof avatar peterlynch avatar phil-schneider avatar pierrefritsch avatar retoo avatar rocketraman avatar takai avatar thatguy1177 avatar toneill818 avatar vlatombe avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.