|
@@ -300,27 +300,27 @@ steps:
|
|
|
msg_url: ${DRONE_BUILD_LINK}
|
|
|
btn_txt: bt
|
|
|
|
|
|
-- name: webhook
|
|
|
- image: plugins/webhook
|
|
|
- settings:
|
|
|
- username: myusername
|
|
|
- password: mypassword
|
|
|
- urls: https://your.webhook/...
|
|
|
- content_type: application/json
|
|
|
- template: |
|
|
|
- {
|
|
|
- "msgtype": "markdown",
|
|
|
- "markdown": {
|
|
|
- "content": "{{#success build.status}}✅{{else}}❌{{/success}}**{{ repo.owner }}/{{ repo.name }}** (Build #{{build.number}})\n
|
|
|
- >**构建结果**: {{ build.status }}
|
|
|
- >**构建详情**: [点击查看]({{ build.link }})
|
|
|
- >**代码分支**: {{ build.branch }}
|
|
|
- >**提交标识**: {{ build.commit }}
|
|
|
- >**提交发起**: {{ build.author }}
|
|
|
- >**提交信息**: {{ build.message }}
|
|
|
- "
|
|
|
- }
|
|
|
- }
|
|
|
+#- name: webhook
|
|
|
+# image: plugins/webhook
|
|
|
+# settings:
|
|
|
+# username: myusername
|
|
|
+# password: mypassword
|
|
|
+# urls: https://oapi.dingtalk.com/robot/send?access_token=
|
|
|
+# content_type: application/json
|
|
|
+# template: |
|
|
|
+# {
|
|
|
+# "msgtype": "markdown",
|
|
|
+# "markdown": {
|
|
|
+# "content": "{{#success build.status}}✅{{else}}❌{{/success}}**{{ repo.owner }}/{{ repo.name }}** (Build #{{build.number}})\n
|
|
|
+# >**构建结果**: {{ build.status }}
|
|
|
+# >**构建详情**: [点击查看]({{ build.link }})
|
|
|
+# >**代码分支**: {{ build.branch }}
|
|
|
+# >**提交标识**: {{ build.commit }}
|
|
|
+# >**提交发起**: {{ build.author }}
|
|
|
+# >**提交信息**: {{ build.message }}
|
|
|
+# "
|
|
|
+# }
|
|
|
+# }
|
|
|
|
|
|
volumes:
|
|
|
- name: mvnCache
|