Code Monkey home page Code Monkey logo

wechat-notification-plugin's Introduction

Jenkins 企业微信通知插件

利用企业微信API,通过Jenkins向企业微信发送Markdown格式信息

使用前请先阅读:

企业微信基本概念介绍

准备:

  • 企业微信管理后台-我的企业
    • 查询得到企业ID(CorpID)
  • 企业微信管理后台-应用与小程序-自建-创建应用(自定义名称,如Jenkins Notification)
    • 查询得到AgentID
    • 查询得到Secret

安装:

  • Jenkins-Plugin Manager-Advanced-Upload Plugin
  • 上传target目录的wechat-notification-plugin.hpi

使用:

  • FreeStyle

  • Pipeline

    node {
       wechat corpid:"企业ID",secret:"应用密钥",agentid:"应用ID",toparty:"部门ID,需在后台查询,如583",markdown:"消息内容"
    }

效果:

Refer:

企业微信获取access_token

企业微信发送应用消息

最最最全的Jenkins插件开发教程

Jenkins企业微信通知开发

wechat-notification-plugin's People

Contributors

sonicrang 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.