Skip to content

Commit 6ba2cc1

Browse files
committed
ci: 将发布通知从企业微信切换为钉钉机器人并增加更多构建信息
1 parent bfdd5a7 commit 6ba2cc1

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.cnb/workflows/publish.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,24 @@ main:
3838
target: /data/www/JenkinsGuide/
3939
delete: true
4040
- name: 🔔 发布通知
41-
image: tencentcom/wecom-message
41+
image: tencentcom/dingtalk-bot-msg
4242
settings:
43-
robot: ${WECOM_BOT}
44-
msgType: markdown
43+
c_type: "markdown" # 支持: text, markdown, link, actionCard, multiActionCard, feedCard
44+
secret: $DING_BOT_SECRET
45+
webhook: $DING_BOT_WEBHOOK
46+
isAtAll: true
47+
debug: false # 新增: 是否启用调试模式
4548
content: |
4649
> **🎉 JenkinsGuide 又一次发布啦!**
50+
>
4751
> **构建时间:** $CUSTOM_ENV_DATE_INFO
48-
> **提交信息:** $CNB_COMMIT_MESSAGE_TITLE
49-
> **仓库地址:** [$CNB_REPO_URL_HTTPS]($CNB_REPO_URL_HTTPS)
52+
> **仓库地址:** [$CNB_REPO_SLUG]($CNB_REPO_URL_HTTPS)
53+
> **构建用户:** $CNB_BUILD_USER
54+
> **提交用户:** $CNB_COMMITTER
55+
> **提交标题:** $CNB_COMMIT_MESSAGE_TITLE
56+
> **提交详情:** [${CNB_COMMIT_SHORT}](${CNB_EVENT_URL})
57+
> **构建日志:** [查看日志]($CNB_BUILD_WEB_URL)
58+
5059
- name: 🧘‍♂️ 刷新缓存
5160
image: docker.cnb.cool/znb/cdn-refresh
5261
settings:

0 commit comments

Comments
 (0)