luhaowen 6 天之前
父节点
当前提交
b9df71779b
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      src/com/example/FeishuNotifier.groovy

+ 10 - 1
src/com/example/FeishuNotifier.groovy

@@ -35,12 +35,21 @@ class FeishuNotifier implements Serializable {
                     template: color
                 ],
                 elements: [
+                    // 单独一行:任务名称(加粗 + 火箭 emoji)
+                    [
+                        tag: 'div',
+                        text: [
+                            tag: 'plain_text',
+                            content: "🚀 任务名称:${jobName}",
+                            bold: true
+                        ]
+                    ],
+                    // 其余信息
                     [
                         tag: 'div',
                         text: [
                             tag: 'lark_md',
                             content: """
-🚀 <b style="font-size:16px">任务名称:${jobName}</b>  
 **构建编号**: [#${buildNumber}](${buildUrl})  
 **持续时间**: ${duration}  
 **分支**: ${branch}