Class DingTalkSender

java.lang.Object
io.jenkins.plugins.sdk.DingTalkSender

public class DingTalkSender extends Object
消息发送器
Author:
liuwei
  • Constructor Details

  • Method Details

    • sendText

      public String sendText(MessageModel msg)
      发送 text 类型的消息

      Unlike markdown and actionCard, DingTalk renders the mention for this type from the at object on its own — appending one to the content as well gets it rendered twice.

      Parameters:
      msg - 消息
      Returns:
      异常信息
    • sendLink

      public String sendLink(MessageModel msg)
      发送 link 类型的消息

      DingTalk documents the link type as not supporting mentions at all: the at object is ignored, and an appended @<mobile> is never resolved — it would just leave a bare phone number in the message and notify nobody.

      Parameters:
      msg - 消息
      Returns:
      异常信息
    • sendMarkdown

      public String sendMarkdown(MessageModel msg)
    • sendActionCard

      public String sendActionCard(MessageModel msg)