Drone plugins > Wechat

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

    stringrequired

    The corpid for authorization

    Secret recommended

    Default: none

  • corp_secret

    stringrequired

    The corp_secret for authorization

    Secret recommended

    Default: none

  • agent_id

    stringrequired

    The agent id to send the message

    Default: none

  • to_party

    stringoptional

    The party id to send the message

    Default: none

  • to_user

    stringoptional

    The user id to send the message

    Default: none

  • to_tag

    stringoptional

    The tag id to send the message

    Default: none

  • safe

    booleanoptional

    encrypt message, default is false

    Default: false

  • msg_url

    stringoptional

    The link for the text card click

    Default: none

  • btn_text

    stringoptional

    The text for the button on the card

    Default: none

  • title

    stringoptional

    The title for the card

    Default: none

  • message

    stringrequired

    Notification body message, support markdown

    Default: none