Giter Club home page Giter Club logo

drone-dingtalk-message's Introduction

Drone CI DingTalk Message Plugin

Docker Pulls

Drone CI Plugin Config

0.8.x

pipeline:
  ...
  notification:
    image: guoxudongdocker/drone-dingtalk
    token: your-group-bot-token
    type: markdown

1.0.x

kind: pipeline
name: default

steps:
...
- name: notification
  image: guoxudongdocker/drone-dingtalk
  settings:
    token: your-groupbot-token
    type: markdown

Plugin Parameter Reference

token(required)

String. Access token for group bot. (you can get the access token when you add a bot in a group)

type(required)

String. Message type, plan support text, markdown, link and action card, but due to time issue, it's only support markdown and text now, and you can get the best experience by use markdown.

message_color(when type=markdown)

Boolean value. This option can change the title and commit message color if turn on.

success_color(when message_color=true)

String. You can customize the color for the build success message by this option, you should input a hex color, example: 008000.

failure_color(when message_color=true)

String. You can customize the color for the build success message by this option, you should input a hex color, example: FF0000.

sha_link(when type=markdown)

Boolean value. This option can link the sha to your source page when it turn on.

message_pic(when type=markdown)

Boolean value. If this option turn on, it will embed a image into the message.

success_pic(when message_pic=true)

String. You can customize the picture for the build success message by this option.

failure_pic(when message_pic=true)

String. You can customize the picture for the build failure message by this option.

Screen Shot

  • Send Success

send-success

  • Missing Access Token

missing-access-token

  • Missing Message Type Or Not Support Message Type

message-type-error

  • Markdown DingTalk Message(default)

markdown-message-default

  • Markdown DingTalk Message(color and sha link)

markdown-massage-customize

  • Markdown DingTalk Message(color, pic and sha link)

markdown-massage-customize

Development

  • First get this repo
go get github.com/lddsb/drone-dingtalk-message
  • get dependent lib
dep ensure
  • build
cd $GOPATH/src/github.com/lddsb/drone-dingtalk-message && go build .
  • run
./drone-dingtalk-message -h
  • dockerbuild
docker build .

优化

在原有项目的基础上进行了汉化,调整了 success 等图片的大小

WX20190523-112552.png

  • 新增 repo 名称

修复

  • 钉钉签名问题

drone-dingtalk-message's People

Contributors

sunny0826 avatar lddsb avatar

Stargazers

hhdebb avatar lswweb avatar  avatar  avatar panda avatar  avatar  avatar weichunshen89 avatar  avatar tangshd avatar zxin avatar YS Liu avatar

Watchers

James Cloos 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.