Drone plugins > Wechat
by lizheming
The Wechat plugin posts build status messages to your account.
Example
kind: pipeline
name: default
steps:
- name: wechat
image: lizheming/drone-wechat
settings:
corpid:
from_secret: wechat_corpid
corp_secret:
from_secret: wechat_corp_secret
agent_id:
from_secret: agent_id
to_user: 111
to_party: 112
to_tag: ${DRONE_REPO_NAME}
msg_url: ${DRONE_BUILD_LINK}
safe: 1
btn_txt: more
title: ${DRONE_REPO_NAME}
message: >
{%if success %}
build {{build.number}} succeeded. Good job.
{% else %}
build {{build.number}} failed. Fix me please.
{% endif %}
Properties
corpid
stringrequiredThe corpid for authorization
Secret recommendedDefault: none
corp_secret
stringrequiredThe corp_secret for authorization
Secret recommendedDefault: none
agent_id
stringrequiredThe agent id to send the message
Default: none
to_party
stringoptionalThe party id to send the message
Default: none
to_user
stringoptionalThe user id to send the message
Default: none
to_tag
stringoptionalThe tag id to send the message
Default: none
safe
booleanoptionalencrypt message, default is false
Default: false
msg_url
stringoptionalThe link for the text card click
Default: none
btn_text
stringoptionalThe text for the button on the card
Default: none
title
stringoptionalThe title for the card
Default: none
message
stringrequiredNotification body message, support markdown
Default: none