|
|
@@ -23,7 +23,7 @@ class FeishuNotifier implements Serializable {
|
|
|
(status == 'SUCCESS') ? '✅ 构建成功' :
|
|
|
(status == 'FAILURE') ? '❌ 构建失败' : '🟡 构建不稳定'
|
|
|
|
|
|
- // 2. 飞书极简卡片:header + elements
|
|
|
+ // 2. 飞书卡片:header + elements
|
|
|
def payload = [
|
|
|
msg_type: 'interactive',
|
|
|
card: [
|
|
|
@@ -32,15 +32,23 @@ class FeishuNotifier implements Serializable {
|
|
|
tag: 'plain_text',
|
|
|
content: title
|
|
|
],
|
|
|
- template: color // 左侧条颜色
|
|
|
+ template: color
|
|
|
],
|
|
|
elements: [
|
|
|
+ // 任务名称:高亮标题
|
|
|
+ [
|
|
|
+ tag: 'title',
|
|
|
+ text: [
|
|
|
+ tag: 'plain_text',
|
|
|
+ content: jobName
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ // 其余详情
|
|
|
[
|
|
|
tag: 'div',
|
|
|
text: [
|
|
|
tag: 'lark_md',
|
|
|
content: """
|
|
|
-**任务名称**: ${jobName}
|
|
|
**构建编号**: [#${buildNumber}](${buildUrl})
|
|
|
**持续时间**: ${duration}
|
|
|
**分支**: ${branch}
|
|
|
@@ -50,6 +58,7 @@ class FeishuNotifier implements Serializable {
|
|
|
""".stripIndent()
|
|
|
]
|
|
|
],
|
|
|
+ // 查看详情按钮
|
|
|
[
|
|
|
tag: 'action',
|
|
|
actions: [
|