瀏覽代碼

Initial commit10

luhaowen 1 周之前
父節點
當前提交
355ce52db8
共有 1 個文件被更改,包括 9 次插入7 次删除
  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()
+
             ]
         ]