luhaowen 5 days ago
parent
commit
b9df71779b
1 changed files with 10 additions and 1 deletions
  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}