Browse Source

update ci config wechatrobot msg

master
wally 4 years ago
parent
commit
572290fe09
  1. 14
      .drone.yml

14
.drone.yml

@ -85,12 +85,14 @@ steps:
msgtype: markdown msgtype: markdown
content: | content: |
{{if eq .Status "success" }} {{if eq .Status "success" }}
#### 🎉 ${DRONE_REPO} 构建成功 #### 🎉 ${DRONE_REPO} 测试环境构建成功
> Branch: ${DRONE_BRANCH}
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) > Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK})
> Author: ${DRONE_COMMIT_AUTHOR} > Author: ${DRONE_COMMIT_AUTHOR}
> [点击查看](${DRONE_BUILD_LINK}) > [点击查看](${DRONE_BUILD_LINK})
{{else}} {{else}}
#### ❌ ${DRONE_REPO} 构建失败 #### ❌ ${DRONE_REPO} 测试环境构建失败
> Branch: ${DRONE_BRANCH}
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) > Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK})
> Author: ${DRONE_COMMIT_AUTHOR} > Author: ${DRONE_COMMIT_AUTHOR}
> 请立即修复!!! > 请立即修复!!!
@ -187,16 +189,18 @@ steps:
image: fifsky/drone-wechat-work image: fifsky/drone-wechat-work
pull: if-not-exists pull: if-not-exists
settings: settings:
url: NOTIFY_WECHATROBOT_WEBHOOK url: *NOTIFY_WECHATROBOT_WEBHOOK
msgtype: markdown msgtype: markdown
content: | content: |
{{if eq .Status "success" }} {{if eq .Status "success" }}
#### 🎉 ${DRONE_REPO} 构建成功 #### 🎉 ${DRONE_REPO} 生产环境构建成功
> Branch: ${DRONE_BRANCH}
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) > Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK})
> Author: ${DRONE_COMMIT_AUTHOR} > Author: ${DRONE_COMMIT_AUTHOR}
> [点击查看](${DRONE_BUILD_LINK}) > [点击查看](${DRONE_BUILD_LINK})
{{else}} {{else}}
#### ❌ ${DRONE_REPO} 构建失败 #### ❌ ${DRONE_REPO} 生产环境构建失败
> Branch: ${DRONE_BRANCH}
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) > Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK})
> Author: ${DRONE_COMMIT_AUTHOR} > Author: ${DRONE_COMMIT_AUTHOR}
> 请立即修复!!! > 请立即修复!!!

Loading…
Cancel
Save