Giter Site home page Giter Site logo

flowdock-plugin's Introduction

Flowdock Plugin for Jenkins

Flowdock Plugin is a tool for sending build notification from Jenkins to your flow. It hooks to Post-build Actions of the build, so you can use with any number of different builds. All you need to configure is the API token of the flow where you want the notifications to go. See Tokens page for list of your API tokens.

Install

With Jenkins Plugin manager

  • Go to Manage Jenkins -> Manage Plugins -> Available
  • Find "Flowdock plugin" and install it
  • Restart Jenkins

From Jenkins Plugin repository

  • Download the latest plugin
  • Install it by uploading the package in admin: Manage Jenkins/Hudson -> Manage Plugins -> Advanced -> Upload Plugin
  • Restart Jenkins/Hudson

From source

To compile this plugin from source, you need to have at Maven 3.0.4 or newer installed.

  • Clone the Github repo
  • Run mvn install to build a .hpi-plugin package
  • Install it by uploading the package in admin: Manage Jenkins/Hudson -> Manage Plugins -> Advanced -> Upload Plugin
  • Restart Jenkins/Hudson

Configure

  • Go to Configure page inside a build
  • Scroll down to Post-build Actions
  • Select "Flowdock notification" from the list and fill out your the API token of your flow
  • Save the changes and click "Build Now"
  • Your flow should now receive notification. If not, see the Console Output of the build for errors.

Troubleshooting

If Flowdock plugin stops working after upgrading, the likely cause is old configuration data that may remain and cause exceptions. The quickest way to resolve this is to re-install the Flowdock plugin, which should flush the cached configuration.

Common errors in console output

Flowdock: failed to send notification
Flowdock: response status: 401 Unauthorized

Most likely the API token is not valid or you do not have the permission to access the flow.

Flowdock: failed to send notification
Flowdock: response status: 400 Bad Request, _RESPONSE_

Validation of the notification message failed. This can occur when customizing the build notification content as it needs to conform to Flowdock Push API format described in the API documentation. The RESPONSE text should help in debugging why the message was rejected.

Write your own custom notifier

It's easy, just fork the Github repo of Jenkins Flowdock Plugin and start hacking!

To simply modify the contents of Team Inbox or Chat messages sent by the plugin, see the fromBuild method in TeamInboxMessage and ChatMessage classes.

Jenkins Flowdock Plugin contains a full implementation of the Flowdock Push API which is great for posting notifications. If you need to go beyond simple notifications, have a look at what the REST API can offer you.

flowdock-plugin's People

Contributors

arcivanov avatar jimlar avatar lautis avatar batmat avatar elithompson avatar osqu avatar tjokimie avatar jstaffans avatar

Watchers

James Cloos avatar Jeff Workman 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.