Coder Social home page Coder Social logo

ifttt-build-notifier's Introduction

ifttt-build-notifier

A Simple Jenkins Build Status Notifier for IFTTT Maker Channel Trigger

Posts the build status to IFTTT Maker Channel to trigger actions with all other Channels available on IFTTT. For example notify build status via a tweet or add trello card or Light-up a IoT connected device.

Create an installable artifact:

  1. git clone https://github.com/upgundecha/ifttt-build-notifier.git
  2. cd ifttt-build-notifier
  3. mvn clean install
  4. Install Plugin via Manage Jenkins > Plugins > Advanced > Upload ./target/ifttt-build-notifier.hpi
  5. Restart Jenkins ([$JENKINS_URL]/restart)

Let's setup a notification trigger with following steps. This will send a direct twitter message when a build job is completed:

Login to https://ifttt.com and perform the following steps:

  1. Create a new Recipe
  2. Click on this part
  3. Enter or select Maker Channel in Choose Trigger Channel
  4. Select Receive a Web Request in Choose a Trigger
  5. Enter an Event name (for example build_notification)
  6. Click on Create Trigger button
  7. Next, click on that part
  8. Enter or select Twitter in Choose Action Channel
  9. Select Send a direct message to yourself in Choose an Actin
  10. Enter following message in Message field in Complete Action Fields
Jenkins Build Status for Project: {{Value1}}, Build Number:{{Value2}}, Status: {{Value3}} 

Note: IFTTT Maker Channel Receive a Web Request trigger accepts three values and plugin sends Project Name as Value1, Build Number as Value2 and Status as Value3

  1. Finally click on Create Action button
  2. Give a name to newly created recipe
  3. Click on Create Recipe button to create the recipe
  4. Now, navigate to https://ifttt.com/maker
  5. Copy the Key from Your key is: section

You can also use template recipe from here https://ifttt.com/recipes/336376-send-a-direct-tweet-when-jenkins-build-is-completed (see more recipes below)

Back in Jenkins setup a project to send build notifications:

  1. Configure a Job or Project for which you want to enable IFTTT trigger
  2. Add IFTTT Build Notifier action from Add Post Build Action list
  3. Enter Event Name specified in Step#4 above (for example build_notification)
  4. Enter Key copied from Step#14 above
  5. Save the configuration
  6. That's it

Now whenever a build is triggered and completed, you will see a Twitter message with build status

More Recipe Templates:

ifttt-build-notifier's People

Contributors

soft-shop avatar upgundecha 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.