Ver código fonte

Initial commit10

luhaowen 1 semana atrás
pai
commit
355ce52db8
1 arquivos alterados com 9 adições e 7 exclusões
  1. 9 7
      src/com/example/FeishuNotifier.groovy

+ 9 - 7
src/com/example/FeishuNotifier.groovy

@@ -29,14 +29,16 @@ class FeishuNotifier implements Serializable {
         """.stripIndent()
 
         def payload = [
-            msg_type: "post",
+            msg_type: "text",
             content: [
-                post: [
-                    zh_cn: [
-                        title: title,
-                        content: [[ tag: "text", text: text ]]
-                    ]
-                ]
+                text: """
+                构建状态: ${status}
+                任务名称: ${jobName}
+                构建编号: #${buildNumber}
+                持续时间: ${duration}
+                查看详情: ${buildUrl}
+                """.stripIndent()
+
             ]
         ]