Giter VIP home page Giter VIP logo

qy-wechat-notification-plugin's Introduction

企业微信Jenkins构建通知插件

Build Status Jenkins Plugin

该插件适用于使用"企业微信"工作的小伙伴,在Jenkins项目构建时使用群机器人进行状态通知

需要不低于企业微信 2.8.7版本

添加群机器人

任意群成员,都可以通过右键群名称的进行添加群机器人

添加微信机器人

企业微信会给新增加的群机器人分配一个Webhook,作为通知接口

添加微信群机器人

项目配置

在Jenkins项目底部的构建后操作,添加企业微信通知配置 添加微信群机器人

将Webhook地址信息输入Jenkins中,即可完成最简单配置 将地址信息输入Jenkins中

可配置的控制项(可多选):

  • 是否仅失败才发送信息
  • 是否仅成功才发送信息
  • 是否仅中断才发送信息
  • 是否仅不稳定构建才发送信息
  • 是否仅失败才@
  • 是否发送开始构建信息

运行效果

在构建开始的时候,群机器人会执行开始构建通知 (需勾选"发送开始构建信息") 构建开始通知

构建成功后,群机器人会执行构建成功的通知 (需勾选"仅成功才发送信息") 构建成功通知

构建失败时,群机器人则会执行失败的通知 (需勾选"仅失败才发送信息") 构建失败通知

项目开发

mvn org.jenkins-ci.tools:maven-hpi-plugin:run

打开Jenkins地址

http://127.0.0.1:8080/jenkins

项目DEBUG

set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n

项目打包

mvn package

qy-wechat-notification-plugin's People

Contributors

donhui avatar icemap avatar itwake avatar

Watchers

 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.