Git Product home page Git Product logo

telegram-notifier-plugin's Introduction

Telegram Notifier Jenkins Plugin

Introduction

This Jenkins plugin sends build notification through Telegram. It is referenced from Build Notifications Plugin. This plugin is pipeline compatible.

Build

mvn install

Deploy to Jenkins

  1. Copy target/telegram-notifier-plugin.hpi to JENKINS_HOME/plugins.
  2. Restart Jenkins

Set up plugin

  1. Manage Jenkins => Configure System => Telegram Notifier Plugin
  2. Put the bot token (e.g. 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11)
  3. Save configuration

Usage

Parameters

  • defaultChatIds: (String, required) Default telegram chat IDs.
  • sendIfSuccess: (Boolean, optional) Send notification even the build succeeds. Default value is false.
  • successfulChatIds: (String, optional) Telegram chat IDs for sending notifications regarding successful builds. Default chat IDs is used if it is not defined.
  • brokenChatIds: (String, optional) Telegram chat IDs for sending notifications regarding broken builds. Default chat IDs is used if it is not defined.
  • stillBrokenChatIds: (String, optional) Telegram chat IDs for sending notifications regarding subsequent broken builds. Default chat IDs is used if it is not defined.
  • fixedChatIds: (String, optional) Telegram chat IDs for sending notifications regarding builds that fixed a broken one. Default chat IDs is used if it is not defined.

Multiple chat IDs should be separated with ,. Example: -12345678,-23456789.

Example:

post {
    always {
        step([$class: 'TelegramNotifier', defaultChatIds: '-12345678', sendIfSuccess: true, brokenChatIds: '-23456789', stillBrokenChatIds: '-23456789', fixedChatIds: '-12345678,-23456789'])
    }
}

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.