Package io.jenkins.plugins.sdk
Class DingTalkSender
java.lang.Object
io.jenkins.plugins.sdk.DingTalkSender
消息发送器
- Author:
- liuwei
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsendLink(MessageModel msg) 发送 link 类型的消息sendMarkdown(MessageModel msg) sendText(MessageModel msg) 发送 text 类型的消息
-
Constructor Details
-
DingTalkSender
-
-
Method Details
-
sendText
发送 text 类型的消息Unlike markdown and actionCard, DingTalk renders the mention for this type from the
atobject on its own — appending one to the content as well gets it rendered twice.- Parameters:
msg- 消息- Returns:
- 异常信息
-
sendLink
发送 link 类型的消息DingTalk documents the link type as not supporting mentions at all: the
atobject 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
-
sendActionCard
-