Files
certd/packages/ui/certd-server/metadata/addon_emailTemplate_pipelineResult.yaml
2025-12-31 18:39:58 +08:00

73 lines
1.6 KiB
YAML

addonType: emailTemplate
name: pipelineResult
title: 流水线执行结果邮件模版
desc: 执行失败,xxxx自动化【流水线id】;运行ID:xxx,错误信息:xxxx
icon: simple-icons:email:blue
showTest: false
input:
useIntro:
title: 配置说明
component:
name: a-alert
props:
type: info
message: 在标题和内容模版中,通过${name}引用参数,例如: 感谢注册,您的注册验证码为:${code}
order: -9
col:
span: 24
formatType:
title: 邮件格式
component:
name: a-select
props:
options:
- label: HTML
value: html
- label: TEXT
value: text
order: 9
col:
span: 24
required: true
titleTemplate:
title: 邮件标题模版
required: true
order: 10
component:
name: a-input
props:
placeholder: 邮件标题模版
col:
span: 24
contentTemplate:
title: 邮件内容模版
component:
name: a-textarea
rows: 6
order: 20
col:
span: 24
required: true
paramIntro:
title: 可用参数
component:
name: ParamsShow
params:
- label: 运行结果
value: pipelineResult
- label: 流水线标题
value: pipelineTitle
- label: 流水线ID
value: pipelineId
- label: 运行Id
value: historyId
- label: 错误信息
value: errors
- label: URL
value: url
col:
span: 24
pluginType: addon
type: builtIn
scriptFilePath: /plugins/plugin-template/email/plugin-pipeline-result.js