luhaowen 1 settimana fa
parent
commit
355ce52db8
1 ha cambiato i file con 9 aggiunte e 7 eliminazioni
  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()
+
             ]
         ]